diff --git a/.travis.yml b/.travis.yml index d264225..87851f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ rvm: - 2.1 - 2.2 # - jruby-18mode # JRuby in 1.8 mode - - jruby-19mode # JRuby in 1.9 mode + - jruby-1.7 # JRuby in 1.9 mode - rbx-2.2.1 services: mongodb @@ -18,13 +18,16 @@ services: mongodb gemfile: - gemfiles/rails_3.2.gemfile - gemfiles/rails_4.0.gemfile + - gemfiles/rails_4.0_bson1.gemfile - gemfiles/rails_4.1.gemfile + - gemfiles/rails_4.1_bson1.gemfile - gemfiles/rails_4.2.gemfile + - gemfiles/rails_4.2_bson1.gemfile matrix: allow_failures: - rvm: rbx-2.2.1 - - rvm: jruby-19mode + - rvm: jruby-1.7 exclude: - rvm: 1.9.3 gemfile: gemfiles/rails_4.1.gemfile diff --git a/Gemfile b/Gemfile index df92c0d..a9197f6 100644 --- a/Gemfile +++ b/Gemfile @@ -6,9 +6,11 @@ gem 'rubysl', :platforms => :rbx gem "jruby-openssl", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "rails", "~>4.1" -gem 'mongoid' +gem 'mongoid', '~>4.0' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') gem 'sequel' -gem 'mongo_mapper', '~> 0.13' -gem 'bson_ext', :platforms => :ruby +# Since mongoid V4 requires incompatible bson V2, cannot have mongoid (V4 or greater) +# and mongo_mapper ( or mongo ) in the same application +#gem 'mongo_mapper', '~> 0.13' +#gem 'bson_ext', :platforms => :ruby gemspec diff --git a/gemfiles/rails_3.2.gemfile b/gemfiles/rails_3.2.gemfile index 1599145..80ae17b 100644 --- a/gemfiles/rails_3.2.gemfile +++ b/gemfiles/rails_3.2.gemfile @@ -7,9 +7,9 @@ gem 'rubinius-developer_tools', :platforms => :rbx gem "jruby-openssl", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "rails", "3.2.21" -gem 'mongoid' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') +gem 'mongoid', '~>3.1' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') gem 'sequel' -gem 'mongo_mapper', '~> 0.13' +gem 'mongo_mapper', '~>0.13' gem 'bson_ext', :platforms => :ruby gemspec :path => "../" diff --git a/gemfiles/rails_4.0.gemfile b/gemfiles/rails_4.0.gemfile index 885ffc5..02fc2bd 100644 --- a/gemfiles/rails_4.0.gemfile +++ b/gemfiles/rails_4.0.gemfile @@ -7,9 +7,7 @@ gem 'rubinius-developer_tools', :platforms => :rbx gem "jruby-openssl", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "rails", "4.0.13" -gem 'mongoid' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') +gem 'mongoid', '~>4.0' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') gem 'sequel' -gem 'mongo_mapper', '~> 0.13' -gem 'bson_ext', :platforms => :ruby gemspec :path => "../" diff --git a/gemfiles/rails_4.0_bson1.gemfile b/gemfiles/rails_4.0_bson1.gemfile new file mode 100644 index 0000000..51a4de2 --- /dev/null +++ b/gemfiles/rails_4.0_bson1.gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gem "sqlite3", :platforms => :ruby +gem "coveralls" +gem 'rubysl', :platforms => :rbx +gem 'rubinius-developer_tools', :platforms => :rbx +gem "jruby-openssl", :platforms => :jruby +gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby +gem "rails", "4.0.13" +gem 'sequel' +gem 'mongo_mapper', '~>0.13' +gem 'bson_ext', :platforms => :ruby + +gemspec :path => "../" diff --git a/gemfiles/rails_4.1.gemfile b/gemfiles/rails_4.1.gemfile index 6829257..f70501e 100644 --- a/gemfiles/rails_4.1.gemfile +++ b/gemfiles/rails_4.1.gemfile @@ -7,9 +7,7 @@ gem 'rubinius-developer_tools', :platforms => :rbx gem "jruby-openssl", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "rails", "4.1.9" -gem 'mongoid' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') +gem 'mongoid', '~>4.0' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') gem 'sequel' -gem 'mongo_mapper', '~> 0.13' -gem 'bson_ext', :platforms => :ruby gemspec :path => "../" diff --git a/gemfiles/rails_4.1_bson1.gemfile b/gemfiles/rails_4.1_bson1.gemfile new file mode 100644 index 0000000..2e34387 --- /dev/null +++ b/gemfiles/rails_4.1_bson1.gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gem "sqlite3", :platforms => :ruby +gem "coveralls" +gem 'rubysl', :platforms => :rbx +gem 'rubinius-developer_tools', :platforms => :rbx +gem "jruby-openssl", :platforms => :jruby +gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby +gem "rails", "4.1.9" +gem 'sequel' +gem 'mongo_mapper', '~> 0.13' +gem 'bson_ext', :platforms => :ruby + +gemspec :path => "../" diff --git a/gemfiles/rails_4.2.gemfile b/gemfiles/rails_4.2.gemfile index 003a8d2..39176ea 100644 --- a/gemfiles/rails_4.2.gemfile +++ b/gemfiles/rails_4.2.gemfile @@ -7,9 +7,7 @@ gem 'rubinius-developer_tools', :platforms => :rbx gem "jruby-openssl", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "rails", "4.2.0" -gem 'mongoid' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') +gem 'mongoid', '~>4.0' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') gem 'sequel' -gem 'mongo_mapper', '~> 0.13' -gem 'bson_ext', :platforms => :ruby gemspec :path => "../" diff --git a/gemfiles/rails_4.2_bson1.gemfile b/gemfiles/rails_4.2_bson1.gemfile new file mode 100644 index 0000000..23f06e4 --- /dev/null +++ b/gemfiles/rails_4.2_bson1.gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gem "sqlite3", :platforms => :ruby +gem "coveralls" +gem 'rubysl', :platforms => :rbx +gem 'rubinius-developer_tools', :platforms => :rbx +gem "jruby-openssl", :platforms => :jruby +gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby +gem "rails", "4.2.0" +gem 'sequel' +gem 'mongo_mapper' +gem 'bson_ext', :platforms => :ruby + +gemspec :path => "../"