1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

Mongoid V4 uses bson v2 which is not compatible with mongo and therefore mongo_mapper

This commit is contained in:
Reid Morrison 2015-02-14 14:59:46 -05:00
parent 453595586a
commit 4a7a87bcc5
9 changed files with 57 additions and 16 deletions

View file

@ -10,7 +10,7 @@ rvm:
- 2.1 - 2.1
- 2.2 - 2.2
# - jruby-18mode # JRuby in 1.8 mode # - 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 - rbx-2.2.1
services: mongodb services: mongodb
@ -18,13 +18,16 @@ services: mongodb
gemfile: gemfile:
- gemfiles/rails_3.2.gemfile - gemfiles/rails_3.2.gemfile
- gemfiles/rails_4.0.gemfile - gemfiles/rails_4.0.gemfile
- gemfiles/rails_4.0_bson1.gemfile
- gemfiles/rails_4.1.gemfile - gemfiles/rails_4.1.gemfile
- gemfiles/rails_4.1_bson1.gemfile
- gemfiles/rails_4.2.gemfile - gemfiles/rails_4.2.gemfile
- gemfiles/rails_4.2_bson1.gemfile
matrix: matrix:
allow_failures: allow_failures:
- rvm: rbx-2.2.1 - rvm: rbx-2.2.1
- rvm: jruby-19mode - rvm: jruby-1.7
exclude: exclude:
- rvm: 1.9.3 - rvm: 1.9.3
gemfile: gemfiles/rails_4.1.gemfile gemfile: gemfiles/rails_4.1.gemfile

View file

@ -6,9 +6,11 @@ gem 'rubysl', :platforms => :rbx
gem "jruby-openssl", :platforms => :jruby gem "jruby-openssl", :platforms => :jruby
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
gem "rails", "~>4.1" 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 'sequel'
gem 'mongo_mapper', '~> 0.13' # Since mongoid V4 requires incompatible bson V2, cannot have mongoid (V4 or greater)
gem 'bson_ext', :platforms => :ruby # and mongo_mapper ( or mongo ) in the same application
#gem 'mongo_mapper', '~> 0.13'
#gem 'bson_ext', :platforms => :ruby
gemspec gemspec

View file

@ -7,9 +7,9 @@ gem 'rubinius-developer_tools', :platforms => :rbx
gem "jruby-openssl", :platforms => :jruby gem "jruby-openssl", :platforms => :jruby
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
gem "rails", "3.2.21" 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 'sequel'
gem 'mongo_mapper', '~> 0.13' gem 'mongo_mapper', '~>0.13'
gem 'bson_ext', :platforms => :ruby gem 'bson_ext', :platforms => :ruby
gemspec :path => "../" gemspec :path => "../"

View file

@ -7,9 +7,7 @@ gem 'rubinius-developer_tools', :platforms => :rbx
gem "jruby-openssl", :platforms => :jruby gem "jruby-openssl", :platforms => :jruby
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
gem "rails", "4.0.13" 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 'sequel'
gem 'mongo_mapper', '~> 0.13'
gem 'bson_ext', :platforms => :ruby
gemspec :path => "../" gemspec :path => "../"

View file

@ -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 => "../"

View file

@ -7,9 +7,7 @@ gem 'rubinius-developer_tools', :platforms => :rbx
gem "jruby-openssl", :platforms => :jruby gem "jruby-openssl", :platforms => :jruby
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
gem "rails", "4.1.9" 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 'sequel'
gem 'mongo_mapper', '~> 0.13'
gem 'bson_ext', :platforms => :ruby
gemspec :path => "../" gemspec :path => "../"

View file

@ -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 => "../"

View file

@ -7,9 +7,7 @@ gem 'rubinius-developer_tools', :platforms => :rbx
gem "jruby-openssl", :platforms => :jruby gem "jruby-openssl", :platforms => :jruby
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
gem "rails", "4.2.0" 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 'sequel'
gem 'mongo_mapper', '~> 0.13'
gem 'bson_ext', :platforms => :ruby
gemspec :path => "../" gemspec :path => "../"

View file

@ -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 => "../"