source 'http://rubygems.org'

group :development do
  gem 'juwelier', '~> 2.0'
  gem 'rspec_junit_formatter'
end

group :test, :development do
  gem 'rake', '>= 10.0'
  gem 'rspec', '~> 3.1'

  unless ENV['NO_ACTIVERECORD']
    gem 'activerecord', '~> 4.2.0'
    gem 'activerecord-oracle_enhanced-adapter', '~> 1.6.0'
    gem 'simplecov', '>= 0'
  end

  platforms :ruby, :mswin, :mingw do
    gem 'ruby-oci8', '~> 2.1'
  end
end

source 'http://rubygems.org'

group :development do
  gem 'juwelier', '~> 2.0'
  gem 'rspec_junit_formatter'
end

group :test, :development do
  gem 'rake', '>= 10.0'
  gem 'rspec', '~> 3.1'

  unless ENV['NO_ACTIVERECORD']
    if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.4.0')
      gem 'activerecord', github: 'rails/rails', branch: '4-2-stable'
    else
      gem 'activerecord', '~> 4.2.0'
    end
    gem 'activerecord-oracle_enhanced-adapter', '~> 1.6.0'
    gem 'simplecov', '>= 0'
  end

  platforms :ruby, :mswin, :mingw do
    gem 'ruby-oci8', '~> 2.1'
  end
end

Use 4-2-stable activerecord branch if ruby >= 2.4
Use 4-2-stable activerecord branch if ruby >= 2.4

Use 4-2-stable git branch for ruby >= 2.4 and ~> 4.2.0 official release
for lower ruby versions.
