Skip to content

Commit 9d313b2

Browse files
authored
Added danger, PR linter. (#68)
1 parent d443bfd commit 9d313b2

File tree

4 files changed

+39
-17
lines changed

4 files changed

+39
-17
lines changed

.travis.yml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,35 @@ language: ruby
88

99
cache: bundler
1010

11-
rvm:
12-
- 2.2.3
13-
- 2.1.7
14-
- 2.0.0
15-
- 1.9.3
16-
17-
env:
18-
- GRAPE_SWAGGER_VERSION=0.8.0
19-
- GRAPE_SWAGGER_VERSION=0.9.0
20-
- GRAPE_SWAGGER_VERSION=0.11.0
21-
- GRAPE_SWAGGER_VERSION=0.20.2
22-
- GRAPE_SWAGGER_VERSION=HEAD
23-
2411
matrix:
12+
include:
13+
- rvm: 2.3.1
14+
script:
15+
- bundle exec danger
16+
- rvm: 2.3.1
17+
env:
18+
- GRAPE_SWAGGER_VERSION=0.8.0
19+
- rvm: 2.3.1
20+
env:
21+
- GRAPE_SWAGGER_VERSION=0.9.0
22+
- rvm: 2.3.1
23+
env:
24+
- GRAPE_SWAGGER_VERSION=0.11.0
25+
- rvm: 2.3.1
26+
env:
27+
- GRAPE_SWAGGER_VERSION=0.20.2
28+
- rvm: 2.3.1
29+
env:
30+
- GRAPE_SWAGGER_VERSION=HEAD
31+
- rvm: 2.3.0
32+
- rvm: 2.2.5
33+
- rvm: 2.0.0
34+
- rvm: rbx-2
35+
- rvm: ruby-head
36+
- rvm: jruby-head
2537
allow_failures:
2638
- env: GRAPE_SWAGGER_VERSION=HEAD
39+
- rvm: ruby-head
40+
- rvm: jruby-head
41+
- rvm: rbx-2
42+

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### 0.2.3 (Next)
22

3+
* [#68](https://github.com/ruby-grape/grape-swagger-rails/pull/68): Added danger, PR linter - [@dblock](https://github.com/dblock).
34
* Your contribution here.
45

56
### 0.2.2 (July 13, 2016)
@@ -27,13 +28,13 @@
2728

2829
### 0.1.0 (February 5, 2015)
2930

30-
* [41](https://github.com/BrandyMint/grape-swagger-rails/pull/41): Compatibility with grape-swagger 0.8.0 and 0.9.0 - [@dblock](https://github.com/dblock).
31+
* [#41](https://github.com/BrandyMint/grape-swagger-rails/pull/41): Compatibility with grape-swagger 0.8.0 and 0.9.0 - [@dblock](https://github.com/dblock).
3132

3233
### 0.0.10 (September 30, 2014)
3334

34-
* [33](https://github.com/BrandyMint/grape-swagger-rails/pull/33): Fix: make the dummy app runnable - [@dblock](https://github.com/dblock).
35-
* [33](https://github.com/BrandyMint/grape-swagger-rails/pull/33): Fix: headers default to nil - [@dblock](https://github.com/dblock).
36-
* [33](https://github.com/BrandyMint/grape-swagger-rails/pull/33): Added support for GrapeSwaggerRails.options.headers - [@dblock](https://github.com/dblock).
35+
* [#33](https://github.com/BrandyMint/grape-swagger-rails/pull/33): Fix: make the dummy app runnable - [@dblock](https://github.com/dblock).
36+
* [#33](https://github.com/BrandyMint/grape-swagger-rails/pull/33): Fix: headers default to nil - [@dblock](https://github.com/dblock).
37+
* [#33](https://github.com/BrandyMint/grape-swagger-rails/pull/33): Added support for GrapeSwaggerRails.options.headers - [@dblock](https://github.com/dblock).
3738
* [#31](https://github.com/BrandyMint/grape-swagger-rails/pull/31): Get Swagger-UI from dist - [@dblock](https://github.com/dblock).
3839
* [#29](https://github.com/BrandyMint/grape-swagger-rails/pull/29): Add Rails 4.1 support - [@aaronchi](https://github.com/aaronchi).
3940
* [#21](https://github.com/BrandyMint/grape-swagger-rails/pull/21): Corrected initializer paths - [@mrclmrvn](https://github.com/mrclmrvn).

Dangerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
danger.import_dangerfile(gem: 'ruby-grape-danger')

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ when '0.20.2'
2020
else
2121
gem 'grape-swagger', version
2222
end
23+
24+
group :test do
25+
gem 'ruby-grape-danger', '~> 0.1.0', require: false
26+
end

0 commit comments

Comments
 (0)