Skip to content

Commit

Permalink
Make work with Rails 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning committed Jul 1, 2016
1 parent 34b2a44 commit 6963d38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
- RAILS_VERSION="~> 4.0.0"
- RAILS_VERSION="~> 4.1.0"
- RAILS_VERSION="~> 4.2.0"
- RAILS_VERSION="~> 5.0.0"

matrix:
allow_failures:
Expand All @@ -26,3 +27,7 @@ matrix:
env: RAILS_VERSION="~> 3.1.0"
- rvm: 2.3.0
env: RAILS_VERSION="~> 3.2.0"
- rvm: 2.0.0
env: RAILS_VERSION="~> 5.0.0"
- rvm: 2.1.8
env: RAILS_VERSION="~> 5.0.0"
2 changes: 1 addition & 1 deletion lib/genspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if defined?(Rails)
if Rails::VERSION::MAJOR == 2
raise "Use genspec 0.1.x for Rails 2; this version is for Rails 3."
elsif [3, 4].include? Rails::VERSION::MAJOR
elsif [3, 4, 5].include? Rails::VERSION::MAJOR
require 'rails/generators'
else
raise "Unsupported Rails version: #{Rails::VERSION::STRING}"
Expand Down

0 comments on commit 6963d38

Please sign in to comment.