Skip to content

Commit

Permalink
Merge pull request #389 from maclover7/jm-rails-51
Browse files Browse the repository at this point in the history
Add Rails 5.1 support to JBuilder
  • Loading branch information
rafaelfranca authored Feb 24, 2017
2 parents b4d9bb5 + a1d0d10 commit 80e078e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ gemfile:
- gemfiles/rails_4_1.gemfile
- gemfiles/rails_4_2.gemfile
- gemfiles/rails_5_0.gemfile
- gemfiles/rails_5_1.gemfile

matrix:
allow_failures:
Expand All @@ -32,14 +33,24 @@ matrix:
exclude:
- rvm: 1.9
gemfile: gemfiles/rails_5_0.gemfile
- rvm: 1.9
gemfile: gemfiles/rails_5_1.gemfile
- rvm: 2.0
gemfile: gemfiles/rails_5_0.gemfile
- rvm: 2.0
gemfile: gemfiles/rails_5_1.gemfile
- rvm: 2.1
gemfile: gemfiles/rails_5_0.gemfile
- rvm: 2.1
gemfile: gemfiles/rails_5_1.gemfile
- rvm: jruby-19mode
gemfile: gemfiles/rails_5_0.gemfile
- rvm: jruby-19mode
gemfile: gemfiles/rails_5_1.gemfile
- rvm: rbx
gemfile: gemfiles/rails_5_0.gemfile
- rvm: rbx
gemfile: gemfiles/rails_5_1.gemfile
- rvm: 2.4.0
gemfile: gemfiles/rails_3_0.gemfile
- rvm: 2.4.0
Expand Down
6 changes: 6 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ appraise "rails-5-0" do
gem "actionpack", "~> 5.0.0"
gem "activemodel", "~> 5.0.0"
end

appraise "rails-5-1" do
gem "railties", ">= 5.1.0.beta1", "< 5.2"
gem "actionpack", ">= 5.1.0.beta1", "< 5.2"
gem "activemodel", ">= 5.1.0.beta1", "< 5.2"
end
13 changes: 13 additions & 0 deletions gemfiles/rails_5_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rake"
gem "mocha", :require => false
gem "appraisal"
gem "pry"
gem "railties", ">= 5.1.0.beta1", "< 5.2"
gem "actionpack", ">= 5.1.0.beta1", "< 5.2"
gem "activemodel", ">= 5.1.0.beta1", "< 5.2"

gemspec :path => "../"
2 changes: 1 addition & 1 deletion jbuilder.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|

s.required_ruby_version = '>= 1.9.3'

s.add_dependency 'activesupport', '>= 3.0.0', '< 5.1'
s.add_dependency 'activesupport', '>= 3.0.0', '< 5.2'
s.add_dependency 'multi_json', '~> 1.2'

s.files = `git ls-files`.split("\n")
Expand Down

0 comments on commit 80e078e

Please sign in to comment.