Skip to content

Commit

Permalink
Merge bb9f658 into b6ba8a9
Browse files Browse the repository at this point in the history
  • Loading branch information
urkle committed Dec 15, 2018
2 parents b6ba8a9 + bb9f658 commit 3441b55
Show file tree
Hide file tree
Showing 14 changed files with 88 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Expand Up @@ -5,10 +5,16 @@
---
sudo: false
rvm:
- 2.1.5
- 2.3.1
gemfile:
- gemfiles/activerecord-4.2/Gemfile.mysql2
- gemfiles/activerecord-4.2/Gemfile.postgresql
- gemfiles/activerecord-5.0/Gemfile.mysql2
- gemfiles/activerecord-5.0/Gemfile.postgresql
- gemfiles/activerecord-5.1/Gemfile.mysql2
- gemfiles/activerecord-5.1/Gemfile.postgresql
- gemfiles/activerecord-5.2/Gemfile.mysql2
- gemfiles/activerecord-5.2/Gemfile.postgresql
env: POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis
addons:
postgresql: '9.4'
Expand Down
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -41,7 +41,10 @@ SchemaPlus::DbDefault is tested on:

<!-- SCHEMA_DEV: MATRIX - begin -->
<!-- These lines are auto-generated by schema_dev based on schema_dev.yml -->
* ruby **2.1.5** with activerecord **4.2**, using **mysql2** and **postgresql**
* ruby **2.3.1** with activerecord **4.2**, using **mysql2** and **postgresql**
* ruby **2.3.1** with activerecord **5.0**, using **mysql2** and **postgresql**
* ruby **2.3.1** with activerecord **5.1**, using **mysql2** and **postgresql**
* ruby **2.3.1** with activerecord **5.2**, using **mysql2** and **postgresql**

<!-- SCHEMA_DEV: MATRIX - end -->

Expand Down
4 changes: 2 additions & 2 deletions gemfiles/activerecord-4.2/Gemfile.postgresql
Expand Up @@ -2,9 +2,9 @@ require "pathname"
eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)

platform :ruby do
gem "pg"
gem "pg", "< 1"
end

platform :jruby do
gem 'activerecord-jdbcpostgresql-adapter'
end
end
3 changes: 3 additions & 0 deletions gemfiles/activerecord-5.0/Gemfile.base
@@ -0,0 +1,3 @@
eval File.read File.expand_path('../../Gemfile.base', __FILE__)

gem "activerecord", "~> 5.0.1"
10 changes: 10 additions & 0 deletions gemfiles/activerecord-5.0/Gemfile.mysql2
@@ -0,0 +1,10 @@
require "pathname"
eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)

platform :ruby do
gem "mysql2"
end

platform :jruby do
gem 'activerecord-jdbcmysql-adapter'
end
10 changes: 10 additions & 0 deletions gemfiles/activerecord-5.0/Gemfile.postgresql
@@ -0,0 +1,10 @@
require "pathname"
eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)

platform :ruby do
gem "pg", "< 1"
end

platform :jruby do
gem 'activerecord-jdbcpostgresql-adapter'
end
3 changes: 3 additions & 0 deletions gemfiles/activerecord-5.1/Gemfile.base
@@ -0,0 +1,3 @@
eval File.read File.expand_path('../../Gemfile.base', __FILE__)

gem "activerecord", "~> 5.1.0"
10 changes: 10 additions & 0 deletions gemfiles/activerecord-5.1/Gemfile.mysql2
@@ -0,0 +1,10 @@
require "pathname"
eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)

platform :ruby do
gem "mysql2"
end

platform :jruby do
gem 'activerecord-jdbcmysql-adapter'
end
10 changes: 10 additions & 0 deletions gemfiles/activerecord-5.1/Gemfile.postgresql
@@ -0,0 +1,10 @@
require "pathname"
eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)

platform :ruby do
gem "pg", "< 1"
end

platform :jruby do
gem 'activerecord-jdbcpostgresql-adapter'
end
3 changes: 3 additions & 0 deletions gemfiles/activerecord-5.2/Gemfile.base
@@ -0,0 +1,3 @@
eval File.read File.expand_path('../../Gemfile.base', __FILE__)

gem "activerecord", ">= 5.2.0.beta0", "< 5.3"
10 changes: 10 additions & 0 deletions gemfiles/activerecord-5.2/Gemfile.mysql2
@@ -0,0 +1,10 @@
require "pathname"
eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)

platform :ruby do
gem "mysql2"
end

platform :jruby do
gem 'activerecord-jdbcmysql-adapter'
end
10 changes: 10 additions & 0 deletions gemfiles/activerecord-5.2/Gemfile.postgresql
@@ -0,0 +1,10 @@
require "pathname"
eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)

platform :ruby do
gem "pg"
end

platform :jruby do
gem 'activerecord-jdbcpostgresql-adapter'
end
5 changes: 4 additions & 1 deletion schema_dev.yml
@@ -1,7 +1,10 @@
ruby:
- 2.1.5
- 2.3.1
activerecord:
- 4.2
- 5.0
- 5.1
- 5.2
db:
- mysql2
- postgresql
4 changes: 2 additions & 2 deletions schema_plus_db_default.gemspec
Expand Up @@ -18,8 +18,8 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]

gem.add_dependency "activerecord", "~> 4.2"
gem.add_dependency "schema_plus_core", "~> 1.0"
gem.add_dependency "activerecord", ">= 4.2", "< 5.3"
gem.add_dependency "schema_plus_core"

gem.add_development_dependency "bundler", "~> 1.7"
gem.add_development_dependency "rake", "~> 10.0"
Expand Down

0 comments on commit 3441b55

Please sign in to comment.