stackable_flash.gemspec in stackable_flash-0.0.7 vs stackable_flash.gemspec in stackable_flash-0.1.1

- old
+ new

@@ -14,14 +14,51 @@ gem.name = "stackable_flash" gem.require_paths = ["lib"] gem.version = StackableFlash::VERSION # Development Dependencies - gem.add_development_dependency(%q<rails>, ["> 3"]) - gem.add_development_dependency(%q<activesupport>, ["> 3"]) - gem.add_development_dependency(%q<rspec-rails>, [">= 2.11.0"]) - gem.add_development_dependency(%q<reek>, [">= 1.2.8"]) - gem.add_development_dependency(%q<roodi>, [">= 2.1.0"]) - gem.add_development_dependency(%q<rake>, [">= 0"]) + # http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#ruby-versions + # Rails 5 requires Ruby 2.2.2 or newer. + # Rails 4 prefers Ruby 2.0 and requires 1.9.3 or newer. + # Rails 3.2.x is the last branch to support Ruby 1.8.7. + # Rails 3 and above require Ruby 1.8.7 or higher. Support for all of the previous Ruby versions has been dropped officially. You should upgrade as early as possible. + if RUBY_VERSION <= '2.1' # 2.0.0-p648 + gem.add_development_dependency(%q<rails>, ['> 3', '< 4.0']) + gem.add_development_dependency(%q<activesupport>, ['> 3', '< 4.0']) + gem.add_development_dependency(%q<rspec-rails>, ['2.11.0', '< 2.14.0']) + gem.add_development_dependency(%q<reek>, ['>= 1.2.8', '< 4.0']) + elsif RUBY_VERSION <= '2.2' # 2.1.10 + gem.add_development_dependency(%q<rails>, ['> 3', '< 4.0']) + gem.add_development_dependency(%q<activesupport>, ['> 3', '< 4.0']) + gem.add_development_dependency(%q<rspec-rails>, ['2.99']) + gem.add_development_dependency(%q<reek>, ['>= 4.6']) + elsif RUBY_VERSION <= '2.4' # 2.2.7 & 2.3.4 + # Any Rails 4 upgrades will have to be done in this Ruby version. + gem.add_development_dependency(%q<rails>, ['> 3', '< 5.0']) + gem.add_development_dependency(%q<activesupport>, ['> 3', '< 5.0']) + gem.add_development_dependency(%q<rspec-rails>, ['2.99']) + gem.add_development_dependency(%q<reek>, ['>= 4.6']) + + # LoadError: Ruby 2.2+ has removed test/unit from the core library. Rails requires this as a dependency. Please add test-unit gem to your Gemfile: `gem 'test-unit', '~> 3.0'` (cannot load such file -- test/unit)" + gem.add_development_dependency(%q<test-unit>, ['>= 3.2']) + elsif RUBY_VERSION <= '2.5' # 2.4.1 + gem.add_development_dependency(%q<rails>, ['> 4', '< 5.0']) + gem.add_development_dependency(%q<activesupport>, ['> 4', '< 5.0']) + gem.add_development_dependency(%q<rspec-rails>, ['2.99']) + gem.add_development_dependency(%q<reek>, ['>= 4.6']) + + # LoadError: Ruby 2.2+ has removed test/unit from the core library. Rails requires this as a dependency. Please add test-unit gem to your Gemfile: `gem 'test-unit', '~> 3.0'` (cannot load such file -- test/unit)" + gem.add_development_dependency(%q<test-unit>, ['>= 3.2']) + elsif RUBY_VERSION > '2.5' + gem.add_development_dependency(%q<rails>, ['> 5', '< 6.0']) + gem.add_development_dependency(%q<activesupport>, ['> 5', '< 6.0']) + gem.add_development_dependency(%q<rspec-rails>, ['2.99']) + gem.add_development_dependency(%q<reek>, ['>= 4.6']) + + # LoadError: Ruby 2.2+ has removed test/unit from the core library. Rails requires this as a dependency. Please add test-unit gem to your Gemfile: `gem 'test-unit', '~> 3.0'` (cannot load such file -- test/unit)" + gem.add_development_dependency(%q<test-unit>, ['>= 3.2']) + end + gem.add_development_dependency(%q<roodi>, ['>= 2.1.0']) + gem.add_development_dependency(%q<rake>, ['>= 0']) end