jasonmk / datastax_rails

A Ruby-on-Rails interface to Datastax Enterprise. Replaces the majority of ActiveRecord functionality.
MIT License
23 stars 9 forks source link

Broken dependencies with Rails 4.1 #17

Closed trushkevich closed 10 years ago

trushkevich commented 10 years ago

I'm running ruby 2.1.1 and Rails 4.1.0

"rake ds:migrate" (as well as "rails c" etc.) causes

LoadError: cannot load such file -- active_record/deprecated_finders/dynamic_matchers /home/antoha/.rvm/gems/ruby-2.1.1/gems/datastax_rails-1.2.3/lib/datastax_rails/base.rb:6:in 'require' /home/antoha/.rvm/gems/ruby-2.1.1/gems/datastax_rails-1.2.3/lib/datastax_rails/base.rb:6:in '[top (required)]' /home/antoha/.rvm/gems/ruby-2.1.1/gems/datastax_rails-1.2.3/lib/datastax_rails.rb:98:in '[top (required)]' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in 'require' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in 'block (2 levels) in require' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in 'each' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in 'block in require' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in 'each' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in 'require' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler.rb:131:in 'require'

after installing "activerecord-deprecated_finders" gem, this error happens:

NameError: uninitialized constant ActiveModel::DeprecatedMassAssignmentSecurity /home/antoha/.rvm/gems/ruby-2.1.1/gems/datastax_rails-1.2.3/lib/datastax_rails/attribute_assignment.rb:9:in '[module:AttributeAssignment]' /home/antoha/.rvm/gems/ruby-2.1.1/gems/datastax_rails-1.2.3/lib/datastax_rails/attribute_assignment.rb:4:in '[module:DatastaxRails]' /home/antoha/.rvm/gems/ruby-2.1.1/gems/datastax_rails-1.2.3/lib/datastax_rails/attribute_assignment.rb:3:in '[top (required)]' /home/antoha/.rvm/gems/ruby-2.1.1/gems/datastax_rails-1.2.3/lib/datastax_rails/base.rb:334:in '[class:Base]' /home/antoha/.rvm/gems/ruby-2.1.1/gems/datastax_rails-1.2.3/lib/datastax_rails/base.rb:324:in '[module:DatastaxRails]' /home/antoha/.rvm/gems/ruby-2.1.1/gems/datastax_rails-1.2.3/lib/datastax_rails/base.rb:10:in '[top (required)]' /home/antoha/.rvm/gems/ruby-2.1.1/gems/datastax_rails-1.2.3/lib/datastax_rails.rb:98:in '[top (required)]' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in 'require' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in 'block (2 levels) in require' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in 'each' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in 'block in require' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in 'each' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in 'require' /home/antoha/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler.rb:131:in 'require'

davidkelley commented 10 years ago

@jasonmk , any information on when this might be solved? This is a great gem and I would love to be able to use it.

I see you're working on the cql-rb branch, but it has a gem dependency on Rails ~> 4.0.0.

jasonmk commented 10 years ago

cql-rb has been merged into master and now marks version 2.0. There was one minor thing that failed when running against 4.1.1, but I fixed that, so 2.0.1 should work (or at least the specs pass). Give it a try and let me know how it goes.