Skip to content

Commit

Permalink
allow for AR versions > 5
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronLasseigne committed Oct 26, 2016
1 parent 451c06f commit 23df0a7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
27 changes: 18 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
before_install: gem update bundler
env: RAKE_TASK=spec
language: ruby
matrix:
include:
- gemfile: gemfiles/activemodel3.rb
# test lastest config
- rvm: 2.3

# test versions of ActiveRecord
- gemfile: gemfiles/activerecord4.rb
rvm: 2.3
- gemfile: gemfiles/activerecord3.rb
rvm: 2.3

# test versions of MRI
- gemfile: gemfiles/activerecord4.rb
rvm: 2.2
rvm:
- 2.2
- 2.1
- 2.0
- 1.9
- rbx-2
script: bundle exec rake $RAKE_TASK
- gemfile: gemfiles/activerecord4.rb
rvm: 2.1
- gemfile: gemfiles/activerecord4.rb
rvm: 2.0
- gemfile: gemfiles/activerecord4.rb
rvm: 1.9
script: bundle exec rake spec
7 changes: 7 additions & 0 deletions gemfiles/activerecord3.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# coding: utf-8

source 'https://rubygems.org'

gemspec path: '..'

gem 'activerecord', '~> 3.0'
2 changes: 1 addition & 1 deletion gemfiles/activemodel3.rb → gemfiles/activerecord4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

gemspec path: '..'

gem 'activemodel', '~> 3.0'
gem 'activemodel', '~> 4.0'
2 changes: 1 addition & 1 deletion sqlite3_ar_regexp.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 1.9.3'

spec.add_dependency 'sqlite3'
spec.add_dependency 'activerecord', '>= 3.2', '< 5'
spec.add_dependency 'activerecord', '>= 3.2'

spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec'
Expand Down

0 comments on commit 23df0a7

Please sign in to comment.