Skip to content

Commit 51d898d

Browse files
authored
Updates danger. (#348)
* Updates danger. - adds TOC - adds CHANGELOG entry * Corrects TOC. - corrects rubocop action
1 parent 06dbb02 commit 51d898d

File tree

4 files changed

+50
-6
lines changed

4 files changed

+50
-6
lines changed

.github/workflows/rubocop.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Rubocop
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
410

511
jobs:
612
rubocop:

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
#### Features
44

55
* Your contribution here.
6-
* [#342](https://github.com/ruby-grape/grape-entity/pull/342): Adds ruby 3.0.0 to travis - [@LeFnord](https://github.com/LeFnord).
6+
7+
* [#348](https://github.com/ruby-grape/grape-entity/pull/348): Updates danger - [@LeFnord](https://github.com/LeFnord).
8+
* [#346](https://github.com/ruby-grape/grape-entity/pull/346): Adds GH actions - [@LeFnord](https://github.com/LeFnord).
79

810
#### Fixes
911

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ group :test do
1515
gem 'guard-bundler'
1616
gem 'guard-rspec'
1717
gem 'rb-fsevent'
18-
gem 'ruby-grape-danger', '~> 0.1.1', require: false
18+
gem 'ruby-grape-danger', '~> 0.2', require: false
1919
gem 'simplecov', require: false
2020
end

README.md

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,46 @@
1-
# Grape::Entity
2-
31
[![Gem Version](http://img.shields.io/gem/v/grape-entity.svg)](http://badge.fury.io/rb/grape-entity)
4-
[![Build Status](http://img.shields.io/travis/ruby-grape/grape-entity.svg)](https://travis-ci.org/ruby-grape/grape-entity)
2+
![Ruby](https://github.com/ruby-grape/grape-entity/workflows/Ruby/badge.svg)
53
[![Coverage Status](https://coveralls.io/repos/github/ruby-grape/grape-entity/badge.svg?branch=master)](https://coveralls.io/github/ruby-grape/grape-entity?branch=master)
64
[![Code Climate](https://codeclimate.com/github/ruby-grape/grape-entity.svg)](https://codeclimate.com/github/ruby-grape/grape-entity)
75

6+
# Table of Contents
7+
8+
- [Grape::Entity](#grapeentity)
9+
- [Introduction](#introduction)
10+
- [Example](#example)
11+
- [Reusable Responses with Entities](#reusable-responses-with-entities)
12+
- [Defining Entities](#defining-entities)
13+
- [Basic Exposure](#basic-exposure)
14+
- [Exposing with a Presenter](#exposing-with-a-presenter)
15+
- [Conditional Exposure](#conditional-exposure)
16+
- [Safe Exposure](#safe-exposure)
17+
- [Nested Exposure](#nested-exposure)
18+
- [Collection Exposure](#collection-exposure)
19+
- [Merge Fields](#merge-fields)
20+
- [Runtime Exposure](#runtime-exposure)
21+
- [Unexpose](#unexpose)
22+
- [Overriding exposures](#overriding-exposures)
23+
- [Returning only the fields you want](#returning-only-the-fields-you-want)
24+
- [Aliases](#aliases)
25+
- [Format Before Exposing](#format-before-exposing)
26+
- [Expose Nil](#expose-nil)
27+
- [Documentation](#documentation)
28+
- [Options Hash](#options-hash)
29+
- [Passing Additional Option To Nested Exposure](#passing-additional-option-to-nested-exposure)
30+
- [Attribute Path Tracking](#attribute-path-tracking)
31+
- [Using the Exposure DSL](#using-the-exposure-dsl)
32+
- [Using Entities](#using-entities)
33+
- [Entity Organization](#entity-organization)
34+
- [Caveats](#caveats)
35+
- [Installation](#installation)
36+
- [Testing with Entities](#testing-with-entities)
37+
- [Project Resources](#project-resources)
38+
- [Contributing](#contributing)
39+
- [License](#license)
40+
- [Copyright](#copyright)
41+
42+
# Grape::Entity
43+
844
## Introduction
945

1046
This gem adds Entity support to API frameworks, such as [Grape](https://github.com/ruby-grape/grape). Grape's Entity is an API focused facade that sits on top of an object model.

0 commit comments

Comments
 (0)