Skip to content

Commit 5736a8a

Browse files
authored
Merge pull request #1813 from darren987469/update_ruby_version_in_travis
Add ruby 2.5 support, drop 2.2.
2 parents f4eb30c + 022a642 commit 5736a8a

File tree

7 files changed

+29
-28
lines changed

7 files changed

+29
-28
lines changed

.travis.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,51 @@ sudo: false
44

55
matrix:
66
include:
7-
- rvm: 2.4.2
7+
- rvm: 2.5.3
88
script:
99
- bundle exec danger
10-
- rvm: 2.4.2
10+
- rvm: 2.5.3
1111
gemfile: Gemfile
12-
- rvm: 2.4.2
12+
- rvm: 2.5.3
1313
gemfile: gemfiles/rack_edge.gemfile
14-
- rvm: 2.4.2
15-
gemfile: gemfiles/rack_1.5.2.gemfile
16-
- rvm: 2.4.2
14+
- rvm: 2.5.3
15+
gemfile: gemfiles/rack_1.5.5.gemfile
16+
- rvm: 2.5.3
1717
gemfile: gemfiles/rails_edge.gemfile
18-
- rvm: 2.4.2
18+
- rvm: 2.5.3
1919
gemfile: gemfiles/rails_5.gemfile
20-
- rvm: 2.4.2
20+
- rvm: 2.5.3
2121
gemfile: gemfiles/multi_json.gemfile
2222
script:
2323
- bundle exec rake
2424
- bundle exec rspec spec/integration/multi_json
25-
- rvm: 2.4.2
25+
- rvm: 2.5.3
2626
gemfile: gemfiles/multi_xml.gemfile
2727
script:
2828
- bundle exec rake
2929
- bundle exec rspec spec/integration/multi_xml
30-
- rvm: 2.3.5
30+
- rvm: 2.4.5
3131
gemfile: Gemfile
32-
- rvm: 2.3.5
32+
- rvm: 2.4.5
3333
gemfile: gemfiles/rack_edge.gemfile
34-
- rvm: 2.3.5
35-
gemfile: gemfiles/rack_1.5.2.gemfile
36-
- rvm: 2.3.5
34+
- rvm: 2.4.5
35+
gemfile: gemfiles/rack_1.5.5.gemfile
36+
- rvm: 2.4.5
3737
gemfile: gemfiles/rails_5.gemfile
38-
- rvm: 2.2.8
38+
- rvm: 2.3.8
3939
gemfile: Gemfile
40-
- rvm: 2.2.8
41-
gemfile: gemfiles/rack_1.5.2.gemfile
42-
- rvm: 2.2.8
40+
- rvm: 2.3.8
41+
gemfile: gemfiles/rack_edge.gemfile
42+
- rvm: 2.3.8
43+
gemfile: gemfiles/rack_1.5.5.gemfile
44+
- rvm: 2.3.8
4345
gemfile: gemfiles/rails_5.gemfile
44-
- rvm: 2.2.8
45-
gemfile: gemfiles/rails_4.gemfile
46-
- rvm: 2.2.8
47-
gemfile: gemfiles/rails_3.gemfile
46+
- rvm: 2.2.10
4847
- rvm: ruby-head
4948
- rvm: jruby-head
5049
- rvm: rbx-3
5150
allow_failures:
51+
- rvm: 2.2.10
5252
- rvm: ruby-head
5353
- rvm: jruby-head
5454
- rvm: rbx-3

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#### Features
44

55
* Your contribution here.
6-
* [#1795](https://github.com/ruby-grape/grape/pull/1803): Adds the ability to re-mount all endpoints in any location - [@myxoh](https://github.com/bschmeck).
6+
* [#1813](https://github.com/ruby-grape/grape/pull/1813): Add ruby 2.5 support, drop 2.2. Update rails version in travis - [@darren987469](https://github.com/darren987469).
7+
* [#1803](https://github.com/ruby-grape/grape/pull/1803): Adds the ability to re-mount all endpoints in any location - [@myxoh](https://github.com/bschmeck).
78
* [#1795](https://github.com/ruby-grape/grape/pull/1795): Fix vendor/subtype parsing of an invalid Accept header - [@bschmeck](https://github.com/bschmeck).
89
* [#1791](https://github.com/ruby-grape/grape/pull/1791): Support `summary`, `hidden`, `deprecated`, `is_array`, `nickname`, `produces`, `consumes`, `tags` options in `desc` block - [@darren987469](https://github.com/darren987469).
910

gemfiles/rack_1.5.2.gemfile renamed to gemfiles/rack_1.5.5.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source 'https://rubygems.org'
44

5-
gem 'rack', '1.5.2'
5+
gem 'rack', '1.5.5'
66

77
group :development, :test do
88
gem 'bundler'

gemfiles/rails_3.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source 'https://rubygems.org'
44

5-
gem 'rails', '3.2.19'
5+
gem 'rails', '3.2.22.5'
66
gem 'rack-cache', '<= 1.2'
77

88
group :development, :test do

gemfiles/rails_4.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source 'https://rubygems.org'
44

5-
gem 'rails', '4.1.6'
5+
gem 'rails', '4.2.10'
66

77
group :development, :test do
88
gem 'bundler'

gemfiles/rails_5.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source 'https://rubygems.org'
44

5-
gem 'rails', '5.0.0'
5+
gem 'rails', '5.2.1'
66

77
group :development, :test do
88
gem 'bundler'

spec/grape/integration/rack_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
unless RUBY_PLATFORM == 'java'
2323
major, minor, patch = Rack.release.split('.').map(&:to_i)
2424
patch ||= 0 # rack <= 1.5.2 does not specify patch version
25-
pending 'Rack 1.5.3 or 1.6.1 required' unless major >= 2 || (major >= 1 && ((minor == 5 && patch >= 3) || (minor >= 6)))
25+
pending 'Rack 1.5.5 or 1.6.1 required' unless major >= 2 || (major >= 1 && ((minor == 5 && patch >= 5) || (minor >= 6)))
2626
end
2727

2828
expect(JSON.parse(app.call(env)[2].body.first)['params_keys']).to match_array('test')

0 commit comments

Comments
 (0)