Skip to content

Commit

Permalink
Rails 6 Support (#841)
Browse files Browse the repository at this point in the history
## Description
The current gemspec restricts Draper to Rails versions no higher than 5.x.

This change to the gemspec allows any versions including or greater than 5.x, and as such allows Draper to be used with Rails 6.

I'm using this branch against an actively developed project which we're now developing against Rails 6 with no issues so far.

## Testing
Existing tests should suffice as there are no changes in Rails 6 which should affect Draper.
  • Loading branch information
pacso authored and codebycliff committed Jan 31, 2019
1 parent 7e3ace0 commit 472dd9e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions draper.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ Gem::Specification.new do |s|

s.required_ruby_version = '>= 2.2.2'

s.add_dependency 'activesupport', '~> 5.0'
s.add_dependency 'actionpack', '~> 5.0'
s.add_dependency 'request_store', '~> 1.0'
s.add_dependency 'activemodel', '~> 5.0'
s.add_dependency 'activemodel-serializers-xml', '~> 1.0'
s.add_dependency 'activesupport', '>= 5.0'
s.add_dependency 'actionpack', '>= 5.0'
s.add_dependency 'request_store', '>= 1.0'
s.add_dependency 'activemodel', '>= 5.0'
s.add_dependency 'activemodel-serializers-xml', '>= 1.0'

s.add_development_dependency 'ammeter'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec-rails'
s.add_development_dependency 'minitest-rails'
s.add_development_dependency 'capybara'
s.add_development_dependency 'active_model_serializers', '~> 0.10'
s.add_development_dependency 'active_model_serializers', '>= 0.10'
s.add_development_dependency 'rubocop'
end

0 comments on commit 472dd9e

Please sign in to comment.