Sha256: cfa866e6b451c1e6f360bd775f7c6770efff856e53d01df322c81db6e8fc17c3

Contents?: true

Size: 1.87 KB

Versions: 4

Compression:

Stored size: 1.87 KB

Contents

boilerplate_gems = <<-BOILERPLATE
  gem 'rack'
  gem 'i18n', '< 0.7.0' if RUBY_VERSION < '1.9.3' # i18n >= 0.7.0 only works on Ruby 1.9.3 and newer

  if RUBY_PLATFORM == 'java'
    gem "activerecord-jdbcmysql-adapter"
  elsif RUBY_VERSION <= '1.9.3'
    gem 'mysql'
  else
    gem 'mysql2', '~> 0.3.20'
  end
BOILERPLATE

if RUBY_VERSION >= '2.2.2' && RUBY_PLATFORM != 'java'
  gemfile <<-RB
    gem 'activerecord', '~> 5.0.0beta3'
    gem 'minitest', '~> 5.2.3'
    #{boilerplate_gems}
  RB
end

if RUBY_VERSION >= '1.9.3'
  gemfile <<-RB
    gem 'activerecord', '~> 4.2.0'
    gem 'minitest', '~> 5.2.3'
    #{boilerplate_gems}
  RB

  gemfile <<-RB
    gem 'activerecord', '~> 4.1.6'
    gem 'minitest', '~> 5.2.3'
    #{boilerplate_gems}
  RB

  gemfile <<-RB
    gem 'activerecord', '~> 4.0.11'
    #{boilerplate_gems}
  RB
end

# AR 3.x does not have official support for Ruby 2.2, and there are several
# known issues, including https://github.com/rails/rails/issues/18991, so
# skip 3.x versions on 2.2.
#
if RUBY_VERSION < '2.2.0'
  gemfile <<-RB
    gem 'activerecord', '~> 3.2.19'
    #{boilerplate_gems}
  RB

  gemfile <<-RB
    gem 'activerecord', '~> 3.1.12'
    #{boilerplate_gems}
  RB

  gemfile <<-RB
    gem 'activerecord', '~> 3.0.20'
    gem 'activerecord-mysql2-adapter' if RUBY_PLATFORM != 'java'
    #{boilerplate_gems}
  RB
end

# We pull in Rails on the older verions because ActiveRecord didn't have all
# the tasks we need for setup, and there are some TestUnit vs Minitest oddities
#
# JRuby testing with 1.7 on Rails 2.x has issues and was already excluded in
# test:env
if RUBY_VERSION <= '1.9.3' && (!defined?(RUBY_ENGINE) || RUBY_ENGINE != 'jruby')
gemfile <<-RB
  gem 'rails', '~> 2.3.18'
  #{boilerplate_gems}
RB

gemfile <<-RB
  gem "rails", "~> 2.2.3"
  #{boilerplate_gems}
RB
end

if RUBY_VERSION < '1.9.2'
gemfile <<-RB
  gem "rails", "~> 2.1.2"
  #{boilerplate_gems}
RB
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
newrelic_rpm-3.16.0.318 test/multiverse/suites/active_record/Envfile
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-3.15.2.317/test/multiverse/suites/active_record/Envfile
newrelic_rpm-3.15.2.317 test/multiverse/suites/active_record/Envfile
newrelic_rpm-3.15.1.316 test/multiverse/suites/active_record/Envfile