peritor / simply_stored

A convenience wrapper around CouchDB (using CouchPotato) that supports relations and S3 attachments
Other
140 stars 16 forks source link

simply_stored does not appear to be compatible with ruby 1.9.2 #12

Open scottweaver opened 13 years ago

scottweaver commented 13 years ago

Forgive me if this is stated some place else in the docs. I looked and couldn't find any information regarding version compatibility.

Ruby 1.9.2-p180 Ubuntu 10.04 simply_stored (0.5.0)

Stack: scottw@cvgweavers02-linuxvm:~/Projects/o2o-accelerator$ bundle exec rspec spec/ /home/scottw/.rvm/gems/ruby-1.9.2-p180/gems/simply_stored-0.5.0/lib/simply_stored/couch.rb:13:in `require': /home/scottw/.rvm/gems/ruby-1.9.2-p180/gems/simply_stored-0.5.0/lib/simply_stored/couch/finders.rb:45: syntax error, unexpected tSTAR, expecting ')' (SyntaxError) find(:first, :order => :desc, *args) ^ /home/scottw/.rvm/gems/ruby-1.9.2-p180/gems/simply_stored-0.5.0/lib/simply_stored/couch/finders.rb:60: syntax error, unexpected $end, expecting keyword_end

The same thing happens when irb when attempting "require 'simply_stored''

I found this reference: https://gist.github.com/137401 (last entry) which indicates the above is indeed unsupported in Ruby 1.9. There is also this post: http://www.ruby-forum.com/topic/136408

jweiss commented 13 years ago

I pushed some fixes for Ruby 1.9 but I fear this is not enough. It seems you need also a recent CouchPotato to work with Ruby 1.9. But using the latest CouchPotato I get many test failures in SimplyStored.

I guess I have to fix compatibility with the latest CouchPotato first.