if RUBY_VERSION >= '2.2.2' && RUBY_PLATFORM != 'java' gemfile <<-RB gem 'rails', '5.0.0' gem 'haml', :require => false gem 'minitest', '5.2.3' RB end if RUBY_VERSION >= '1.9.3' && RUBY_VERSION < '2.4.0' gemfile <<-RB gem 'rails', '~>4.2.1' gem 'haml', :require => false gem 'minitest', '5.2.3' gem 'nokogiri', '< 1.7' if RUBY_VERSION < '2.1.0' # nokogiri 1.7.0 only supports >= 2.1.0 RB gemfile <<-RB gem 'rails', '~>4.1.10' # Multiverse has an incompatibility with Minitest 5.3.0, so lock here for # now gem 'minitest', '5.2.3' # Load error with beta haml + rails, so hold require until test needs it. gem 'haml', '~>4.1.0.beta1', :require => false RB gemfile <<-RB gem 'rails', '~>4.0.13' gem 'haml', '4.0.2' # Getting load issues with haml 4.0.3 RB end if RUBY_VERSION < '2.4.0' gemfile <<-RB gem 'rails', '~>3.2.22.2' gem 'i18n', '~>0.6.11' gem 'haml', '4.0.2' # Getting load issues with haml 4.0.3 gem 'minitest_tu_shim', :require => false gem 'rack-cache', '< 1.3' if RUBY_VERSION < '1.9.3' # rack-cache 1.3.0 only supports >= 1.9.3 RB gemfile <<-RB gem 'rails', '~>3.2.22.2' gem 'i18n', '~>0.6.11' gem 'sinatra', '~> 1.4.5' gem 'haml', '4.0.2' # Getting load issues with haml 4.0.3 gem 'minitest_tu_shim', :require => false gem 'rack-cache', '< 1.3' if RUBY_VERSION < '1.9.3' # rack-cache 1.3.0 only supports >= 1.9.3 RB gemfile <<-RB gem 'rails', '~>3.1.12' gem 'i18n', '~>0.6.11' gem 'haml', '4.0.2' # Getting load issues with haml 4.0.3 gem 'minitest_tu_shim', :require => false gem 'rack-cache', '< 1.3' if RUBY_VERSION < '1.9.3' # rack-cache 1.3.0 only supports >= 1.9.3 RB gemfile <<-RB gem 'rails', '~>3.0.20' gem 'haml', '4.0.2' # Getting load issues with haml 4.0.3 gem 'minitest_tu_shim', :require => false gem 'rack-cache', '< 1.3' if RUBY_VERSION < '1.9.3' # rack-cache 1.3.0 only supports >= 1.9.3 RB end if RUBY_VERSION <= '1.9.3' && (!defined?(RUBY_ENGINE) || RUBY_ENGINE != 'jruby') gemfile <<-RB gem 'newrelic_rpm', :require => false, :path => File.expand_path('../../../../') gem 'rails', '~> 2.3.18' gem 'haml', '~> 3.1.0' # last haml version that supports Rails 2 gem 'minitest_tu_shim', :require => false gem 'sqlite3' gem 'i18n', '0.6.11' gem 'rack-cache', '< 1.3' if RUBY_VERSION < '1.9.3' # rack-cache 1.3.0 only supports >= 1.9.3 RB end # vim: ft=ruby