Skip to content

Commit 7d2e413

Browse files
authored
Merge pull request #25 from teamsimplepay/master
support more activerecord and PostgreSQL versions
2 parents bedd7ef + 6006a8a commit 7d2e413

10 files changed

Lines changed: 77 additions & 1 deletion

File tree

lib/schema_dev/travis.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ module Travis
2626
addons: { apt: { packages: %w[postgresql-12 postgresql-client-12] } },
2727
env: 'POSTGRESQL_DB_USER=travis PGPORT=5433'
2828
},
29+
'13' => {
30+
addons: { apt: { packages: %w[postgresql-13 postgresql-client-13] } },
31+
env: 'POSTGRESQL_DB_USER=travis PGPORT=5433'
32+
},
33+
'14' => {
34+
addons: { apt: { packages: %w[postgresql-14 postgresql-client-14] } },
35+
env: 'POSTGRESQL_DB_USER=travis PGPORT=5433'
36+
},
2937
}
3038
}.freeze
3139

schema_dev.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
2020

2121
gem.required_ruby_version = ">= 2.5.0"
2222

23-
gem.add_dependency "activesupport", "~> 5.0"
23+
gem.add_dependency "activesupport", ">= 5.2", "< 6.2"
2424
gem.add_dependency "coveralls_reborn", "~> 0.23"
2525
gem.add_dependency "faraday", "~> 0.9"
2626
gem.add_dependency "fastandand", "~> 1.0"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
base_gemfile = File.expand_path('../../Gemfile.base', __FILE__)
2+
eval File.read(base_gemfile)
3+
4+
gem "activerecord", ">= 6.0", "< 6.1"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2+
eval File.read(base_gemfile), binding, base_gemfile
3+
4+
platform :ruby do
5+
gem "mysql2"
6+
end
7+
8+
platform :jruby do
9+
gem 'activerecord-jdbcmysql-adapter'
10+
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2+
eval File.read(base_gemfile), binding, base_gemfile
3+
4+
platform :ruby do
5+
gem "pg"
6+
end
7+
8+
platform :jruby do
9+
gem 'activerecord-jdbcpostgresql-adapter'
10+
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2+
eval File.read(base_gemfile), binding, base_gemfile
3+
4+
platform :ruby do
5+
gem "sqlite3"
6+
end
7+
8+
platform :jruby do
9+
gem 'activerecord-jdbcsqlite3-adapter', '>=1.3.0.beta2'
10+
end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
base_gemfile = File.expand_path('../../Gemfile.base', __FILE__)
2+
eval File.read(base_gemfile)
3+
4+
gem "activerecord", ">= 6.1", "< 6.2"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2+
eval File.read(base_gemfile), binding, base_gemfile
3+
4+
platform :ruby do
5+
gem "mysql2"
6+
end
7+
8+
platform :jruby do
9+
gem 'activerecord-jdbcmysql-adapter'
10+
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2+
eval File.read(base_gemfile), binding, base_gemfile
3+
4+
platform :ruby do
5+
gem "pg"
6+
end
7+
8+
platform :jruby do
9+
gem 'activerecord-jdbcpostgresql-adapter'
10+
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2+
eval File.read(base_gemfile), binding, base_gemfile
3+
4+
platform :ruby do
5+
gem "sqlite3"
6+
end
7+
8+
platform :jruby do
9+
gem 'activerecord-jdbcsqlite3-adapter', '>=1.3.0.beta2'
10+
end

0 commit comments

Comments
 (0)