Skip to content

Commit

Permalink
Adjust adapter gem versions to required versions in Rails
Browse files Browse the repository at this point in the history
It was impossible to run tests on Travis CI due too lose requirements
on gem versions. Bundler was loading version too new for specific
Rails version.
  • Loading branch information
barthez committed Aug 6, 2018
1 parent 89eefa2 commit c43cbe1
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 33 deletions.
23 changes: 17 additions & 6 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,28 +1,39 @@
appraise "activerecord-3.2" do
gem "activerecord", "~> 3.2.0"
gem "mysql", "~> 2.9.1"
gem "mysql2", "~> 0.3.11"
gem "mysql", "~> 2.8"
gem "mysql2", "~> 0.3.10"
gem 'pg', '~> 0.11'
gem "sqlite3", "~> 1.3.5"
end

appraise "activerecord-4.0" do
gem "activerecord", "~> 4.0.0"
gem "mysql", "~> 2.9.1"
gem "mysql2", "~> 0.3.11"
gem "mysql", "~> 2.8"
gem "mysql2", "~> 0.3.10"
gem 'pg', '~> 0.11'
gem "sqlite3", "~> 1.3.6"

end

appraise "activerecord-4.2" do
gem "activerecord", "~> 4.2.0"
gem "mysql", "~> 2.9.1"
gem "mysql2", "~> 0.3.11"
gem 'mysql', '~> 2.9'
gem 'mysql2', '>= 0.3.13', '< 0.5'
gem 'pg', '~> 0.15'
gem "sqlite3", "~> 1.3.6"
end

appraise "activerecord-5.0" do
gem "activerecord", "~> 5.0.0"
gem "mysql2", "~> 0.4.4"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 1.3.6"
end

appraise "activerecord-edge" do
gem "arel", github: "rails/arel"
gem "activerecord", github: "rails/rails"
gem "mysql2", "~> 0.3.11"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 1.3.6"
end
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ end
group :test do
gem 'rake', '~> 10.0'
gem 'rspec', '~> 2.14.0'
gem 'pg', '>= 0.15.1'
gem 'sqlite3', '>= 1.3.7'
end
10 changes: 5 additions & 5 deletions gemfiles/activerecord_3.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
source "http://rubygems.org"

gem "activerecord", "~> 3.2.0"
gem "mysql", "~> 2.9.1"
gem "mysql2", "~> 0.3.11"
gem "mysql", "~> 2.8"
gem "mysql2", "~> 0.3.10"
gem "pg", "~> 0.11"
gem "sqlite3", "~> 1.3.5"

group :development do
gem "appraisal"
Expand All @@ -14,8 +16,6 @@ end
group :test do
gem "rake", "~> 10.0"
gem "rspec", "~> 2.14.0"
gem "pg", ">= 0.15.1"
gem "sqlite3", ">= 1.3.7"
end

gemspec :path => "../"
gemspec path: "../"
10 changes: 5 additions & 5 deletions gemfiles/activerecord_4.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
source "http://rubygems.org"

gem "activerecord", "~> 4.0.0"
gem "mysql", "~> 2.9.1"
gem "mysql2", "~> 0.3.11"
gem "mysql", "~> 2.8"
gem "mysql2", "~> 0.3.10"
gem "pg", "~> 0.11"
gem "sqlite3", "~> 1.3.6"

group :development do
gem "appraisal"
Expand All @@ -14,8 +16,6 @@ end
group :test do
gem "rake", "~> 10.0"
gem "rspec", "~> 2.14.0"
gem "pg", ">= 0.15.1"
gem "sqlite3", ">= 1.3.7"
end

gemspec :path => "../"
gemspec path: "../"
10 changes: 5 additions & 5 deletions gemfiles/activerecord_4.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
source "http://rubygems.org"

gem "activerecord", "~> 4.2.0"
gem "mysql", "~> 2.9.1"
gem "mysql2", "~> 0.3.11"
gem "mysql", "~> 2.9"
gem "mysql2", ">= 0.3.13", "< 0.5"
gem "pg", "~> 0.15"
gem "sqlite3", "~> 1.3.6"

group :development do
gem "appraisal"
Expand All @@ -14,8 +16,6 @@ end
group :test do
gem "rake", "~> 10.0"
gem "rspec", "~> 2.14.0"
gem "pg", ">= 0.15.1"
gem "sqlite3", ">= 1.3.7"
end

gemspec :path => "../"
gemspec path: "../"
6 changes: 3 additions & 3 deletions gemfiles/activerecord_5.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ source "http://rubygems.org"

gem "activerecord", "~> 5.0.0"
gem "mysql2", "~> 0.4.4"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 1.3.6"

group :development do
gem "appraisal"
Expand All @@ -13,8 +15,6 @@ end
group :test do
gem "rake", "~> 10.0"
gem "rspec", "~> 2.14.0"
gem "pg", ">= 0.15.1"
gem "sqlite3", ">= 1.3.7"
end

gemspec :path => "../"
gemspec path: "../"
4 changes: 2 additions & 2 deletions gemfiles/activerecord_5.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ end
group :test do
gem "rake", "~> 10.0"
gem "rspec", "~> 2.14.0"
gem "pg", ">= 0.15.1"
gem "sqlite3", ">= 1.3.7"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 1.3.6"
end

gemspec :path => "../"
10 changes: 5 additions & 5 deletions gemfiles/activerecord_edge.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

source "http://rubygems.org"

gem "arel", :github => "rails/arel"
gem "activerecord", :github => "rails/rails"
gem "arel", github: "rails/arel"
gem "activerecord", github: "rails/rails"
gem "mysql2", "~> 0.3.11"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 1.3.6"

group :development do
gem "appraisal"
Expand All @@ -14,8 +16,6 @@ end
group :test do
gem "rake", "~> 10.0"
gem "rspec", "~> 2.14.0"
gem "pg", ">= 0.15.1"
gem "sqlite3", ">= 1.3.7"
end

gemspec :path => "../"
gemspec path: "../"

0 comments on commit c43cbe1

Please sign in to comment.