Skip to content

Commit

Permalink
Merge a75149a into 01a39fd
Browse files Browse the repository at this point in the history
  • Loading branch information
Edouard-chin committed Mar 19, 2018
2 parents 01a39fd + a75149a commit 98b5c31
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 39 deletions.
24 changes: 10 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
rvm:
- 1.9.3
- 2.0.0
- 2.1.2
- 2.2.2
- 2.3.0
- 2.4.3
- 2.5.0

gemfile:
- Gemfile.activerecord32
- Gemfile.activerecord40
- Gemfile.activerecord41
- Gemfile.activerecord42
- Gemfile.activerecord50
- gemfiles/Gemfile.activerecord50
- gemfiles/Gemfile.activerecord51
- gemfiles/Gemfile.activerecord52
- gemfiles/Gemfile.activerecord-edge

matrix:
exclude:
- rvm: 1.9.3
gemfile: Gemfile.activerecord50
- rvm: 2.0.0
gemfile: Gemfile.activerecord50
- rvm: 2.1.2
gemfile: Gemfile.activerecord50
- rvm: 2.2.2
gemfile: gemfiles/Gemfile.activerecord-edge
- rvm: 2.3.0
gemfile: gemfiles/Gemfile.activerecord-edge

before_script:
- mysql -e 'create database pedant_mysql2_test;'
Expand Down
4 changes: 0 additions & 4 deletions Gemfile.activerecord32

This file was deleted.

4 changes: 0 additions & 4 deletions Gemfile.activerecord40

This file was deleted.

4 changes: 0 additions & 4 deletions Gemfile.activerecord41

This file was deleted.

4 changes: 0 additions & 4 deletions Gemfile.activerecord42

This file was deleted.

4 changes: 3 additions & 1 deletion activerecord-pedantmysql2-adapter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/Shopify/activerecord-pedantmysql2-adapter'
spec.license = 'MIT'

spec.required_ruby_version = '>= 2.2.2'

spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.add_dependency 'activerecord', '>= 3.2'
spec.add_dependency 'activerecord', '>= 5.0'
spec.add_dependency 'mysql2', '>= 0.3.12'
spec.add_development_dependency 'bundler', '~> 1.5'
spec.add_development_dependency 'rake'
Expand Down
4 changes: 4 additions & 0 deletions gemfiles/Gemfile.activerecord-edge
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'
gemspec path: '..'

gem 'activerecord', github: 'rails/rails', branch: 'master'
2 changes: 1 addition & 1 deletion Gemfile.activerecord50 → gemfiles/Gemfile.activerecord50
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'
gemspec
gemspec path: '..'

gem 'activerecord', '~> 5.0.0'
4 changes: 4 additions & 0 deletions gemfiles/Gemfile.activerecord51
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'
gemspec path: '..'

gem 'activerecord', '~> 5.1.0'
4 changes: 4 additions & 0 deletions gemfiles/Gemfile.activerecord52
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'
gemspec path: '..'

gem 'activerecord', github: 'rails/rails', branch: '5-2-stable'
15 changes: 8 additions & 7 deletions spec/support/database.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
ActiveRecord::Base.configurations = {
'test' => {
adapter: 'pedant_mysql2',
database: 'pedant_mysql2_test',
username: 'travis',
encoding: 'utf8',
strict: false,
pool: 5,
},
'adapter' => 'pedant_mysql2',
'database' => 'pedant_mysql2_test',
'username' => 'travis',
'encoding' => 'utf8',
'strict' => false,
'pool' => 5,
}
}

ActiveRecord::Base.establish_connection(:test)

0 comments on commit 98b5c31

Please sign in to comment.