mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
a4045a1f9b
Ruby 1.9.3 will be end-of-lifed on February 23, 2015. We might as well remove support for it now.
72 lines
1.6 KiB
Ruby
72 lines
1.6 KiB
Ruby
ruby_version = Gem::Version.new(RUBY_VERSION + '')
|
|
|
|
shared_dependencies = proc do
|
|
gem 'rspec-rails', '~> 3.0'
|
|
gem 'shoulda-context', '~> 1.2.0'
|
|
gem 'sqlite3', platform: :ruby
|
|
gem 'activerecord-jdbc-adapter', platform: :jruby
|
|
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
|
|
gem 'jdbc-sqlite3', platform: :jruby
|
|
gem 'jruby-openssl', platform: :jruby
|
|
gem 'therubyrhino', platform: :jruby
|
|
end
|
|
|
|
spring = proc do
|
|
gem 'spring'
|
|
gem 'spring-commands-rspec'
|
|
end
|
|
|
|
rails_4 = proc do
|
|
instance_eval(&shared_dependencies)
|
|
instance_eval(&spring)
|
|
gem 'uglifier', '>= 1.3.0'
|
|
gem 'coffee-rails', '~> 4.0.0'
|
|
gem 'jquery-rails'
|
|
gem 'turbolinks'
|
|
gem 'sdoc'
|
|
gem 'activeresource', '4.0.0'
|
|
# Test suite makes heavy use of attr_accessible
|
|
gem 'protected_attributes'
|
|
gem 'minitest-reporters'
|
|
end
|
|
|
|
#---
|
|
|
|
appraise '4.0.0' do
|
|
instance_eval(&rails_4)
|
|
gem 'rails', '4.0.0'
|
|
gem 'jbuilder', '~> 1.2'
|
|
gem 'sass-rails', '~> 4.0.0'
|
|
gem 'bcrypt-ruby', '~> 3.0.0'
|
|
end
|
|
|
|
appraise '4.0.1' do
|
|
instance_eval(&rails_4)
|
|
gem 'rails', '4.0.1'
|
|
gem 'jbuilder', '~> 1.2'
|
|
gem 'sass-rails', '~> 4.0.0'
|
|
gem 'bcrypt-ruby', '~> 3.1.2'
|
|
end
|
|
|
|
appraise '4.1' do
|
|
instance_eval(&rails_4)
|
|
gem 'rails', '~> 4.1.0'
|
|
gem 'jbuilder', '~> 2.0'
|
|
gem 'sass-rails', '~> 4.0.3'
|
|
gem 'sdoc', '~> 0.4.0'
|
|
gem 'bcrypt', '~> 3.1.7'
|
|
gem 'protected_attributes', "~> 1.0.6"
|
|
gem 'spring'
|
|
end
|
|
|
|
appraise '4.2' do
|
|
instance_eval(&rails_4)
|
|
gem 'rails', '~> 4.2.0'
|
|
gem 'sass-rails', '~> 5.0'
|
|
gem 'coffee-rails', '~> 4.1.0'
|
|
gem 'jbuilder', '~> 2.0'
|
|
gem 'sdoc', '~> 0.4.0'
|
|
gem 'bcrypt', '~> 3.1.7'
|
|
gem 'spring'
|
|
gem 'protected_attributes', "~> 1.0.6"
|
|
end
|