Manage gemfiles with appraisal
This commit is contained in:
parent
eef918bca4
commit
f812ea5f45
|
@ -1,3 +1,4 @@
|
|||
gemfiles/*.lock
|
||||
NOTES
|
||||
test/debug.log
|
||||
test/paper_trail_plugin.sqlite3.db
|
||||
|
|
|
@ -24,11 +24,14 @@ before_script:
|
|||
- sh -c "if [ \"$DB\" = 'postgres' ]; then psql -c 'create database paper_trail_foo;' -U postgres; fi"
|
||||
|
||||
gemfile:
|
||||
- Gemfile
|
||||
- gemfiles/3.0.gemfile
|
||||
- gemfiles/ar3.gemfile
|
||||
- gemfiles/ar4.gemfile
|
||||
- gemfiles/ar5.gemfile
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
exclude:
|
||||
- gemfile: gemfiles/ar5.gemfile
|
||||
|
||||
addons:
|
||||
postgresql: "9.4"
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
# Specify here only version constraints that differ from
|
||||
# `paper_trail.gemspec`.
|
||||
#
|
||||
# > The dependencies in your Appraisals file are combined with dependencies in
|
||||
# > your Gemfile, so you don"t need to repeat anything that"s the same for each
|
||||
# > appraisal. If something is specified in both the Gemfile and an appraisal,
|
||||
# > the version from the appraisal takes precedence.
|
||||
# > https://github.com/thoughtbot/appraisal
|
||||
|
||||
appraise "ar3" do
|
||||
gem "activerecord", "~> 3.2"
|
||||
gem "i18n", "~> 0.6.11"
|
||||
gem "request_store", "~> 1.1.0"
|
||||
|
||||
group :development, :test do
|
||||
gem 'railties', '~> 3.0'
|
||||
gem 'test-unit', '~> 3.0'
|
||||
platforms :ruby do
|
||||
gem 'mysql2', '~> 0.3.20'
|
||||
gem 'pg', '~> 0.17.1'
|
||||
end
|
||||
platforms :jruby do
|
||||
gem 'activerecord-jdbcsqlite3-adapter', '~> 1.3'
|
||||
gem 'activerecord-jdbcpostgresql-adapter', '~> 1.3'
|
||||
gem 'activerecord-jdbcmysql-adapter', '~> 1.3'
|
||||
gem 'activerecord-jdbc-adapter', '1.3.15'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
appraise "ar4" do
|
||||
gem "activerecord", "~> 4.2"
|
||||
end
|
||||
|
||||
appraise "ar5" do
|
||||
gem "activerecord", "5.0.0.beta1"
|
||||
gem "activemodel", "5.0.0.beta1"
|
||||
gem "actionpack", "5.0.0.beta1"
|
||||
gem "railties", "5.0.0.beta1"
|
||||
gem "rspec-rails", github: "rspec/rspec-rails"
|
||||
gem "rspec-core", github: "rspec/rspec-core"
|
||||
gem "rspec-expectations", github: "rspec/rspec-expectations"
|
||||
gem "rspec-mocks", github: "rspec/rspec-mocks"
|
||||
gem "rspec-support", github: "rspec/rspec-support"
|
||||
end
|
|
@ -1,40 +0,0 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
gem 'activerecord', '~> 3.0'
|
||||
gem 'i18n', '~> 0.6.11'
|
||||
gem 'request_store', '~> 1.1.0'
|
||||
|
||||
group :development, :test do
|
||||
gem 'rake', '~> 10.4.2'
|
||||
gem 'rubocop', '~> 0.35.1'
|
||||
gem 'shoulda', '~> 3.5'
|
||||
gem 'ffaker', '~> 2.1.0'
|
||||
gem 'timecop'
|
||||
|
||||
# Testing of Rails
|
||||
gem 'railties', '~> 3.0'
|
||||
|
||||
# Testing of Sinatra
|
||||
gem 'sinatra', '~> 1.0'
|
||||
gem 'rack-test', '>= 0.6'
|
||||
|
||||
# RSpec testing
|
||||
gem 'rspec-rails', '~> 3.4.0'
|
||||
gem 'generator_spec'
|
||||
|
||||
# To do proper transactional testing with ActiveSupport::TestCase on MySQL
|
||||
gem 'database_cleaner', '~> 1.2.0'
|
||||
|
||||
platforms :ruby do
|
||||
gem 'sqlite3', '~> 1.2'
|
||||
gem 'mysql2', '~> 0.3.20' # activerecord < 4.2.5 must use mysql2 < 0.4
|
||||
gem 'pg', '~> 0.17.1'
|
||||
end
|
||||
|
||||
platforms :jruby do
|
||||
gem 'activerecord-jdbcsqlite3-adapter', '~> 1.3'
|
||||
gem 'activerecord-jdbcpostgresql-adapter', '~> 1.3'
|
||||
gem 'activerecord-jdbcmysql-adapter', '~> 1.3'
|
||||
gem 'activerecord-jdbc-adapter', '1.3.15'
|
||||
end
|
||||
end
|
|
@ -0,0 +1,26 @@
|
|||
# This file was generated by Appraisal
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "activerecord", "~> 3.2"
|
||||
gem "i18n", "~> 0.6.11"
|
||||
gem "request_store", "~> 1.1.0"
|
||||
|
||||
group :development, :test do
|
||||
gem "railties", "~> 3.0"
|
||||
gem "test-unit", "~> 3.0"
|
||||
|
||||
platforms :ruby do
|
||||
gem "mysql2", "~> 0.3.20"
|
||||
gem "pg", "~> 0.17.1"
|
||||
end
|
||||
|
||||
platforms :jruby do
|
||||
gem "activerecord-jdbcsqlite3-adapter", "~> 1.3"
|
||||
gem "activerecord-jdbcpostgresql-adapter", "~> 1.3"
|
||||
gem "activerecord-jdbcmysql-adapter", "~> 1.3"
|
||||
gem "activerecord-jdbc-adapter", "1.3.15"
|
||||
end
|
||||
end
|
||||
|
||||
gemspec :path => "../"
|
|
@ -0,0 +1,7 @@
|
|||
# This file was generated by Appraisal
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "activerecord", "~> 4.2"
|
||||
|
||||
gemspec :path => "../"
|
|
@ -0,0 +1,15 @@
|
|||
# This file was generated by Appraisal
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "activerecord", "5.0.0.beta1"
|
||||
gem "activemodel", "5.0.0.beta1"
|
||||
gem "actionpack", "5.0.0.beta1"
|
||||
gem "railties", "5.0.0.beta1"
|
||||
gem "rspec-rails", :github => "rspec/rspec-rails"
|
||||
gem "rspec-core", :github => "rspec/rspec-core"
|
||||
gem "rspec-expectations", :github => "rspec/rspec-expectations"
|
||||
gem "rspec-mocks", :github => "rspec/rspec-mocks"
|
||||
gem "rspec-support", :github => "rspec/rspec-support"
|
||||
|
||||
gemspec :path => "../"
|
|
@ -24,6 +24,7 @@ Gem::Specification.new do |s|
|
|||
s.add_dependency 'activesupport', ['>= 3.0', '< 6.0']
|
||||
s.add_dependency 'request_store', '~> 1.1'
|
||||
|
||||
s.add_development_dependency 'appraisal', '~> 2.1'
|
||||
s.add_development_dependency 'rake', '~> 10.4.2'
|
||||
s.add_development_dependency 'shoulda', '~> 3.5'
|
||||
s.add_development_dependency 'ffaker', '~> 2.1.0'
|
||||
|
|
Loading…
Reference in New Issue