Closed PeterBengtson closed 12 years ago
OK, digging around further reveals that the published gem, which I used, is 0.9.5, whilst the github version is 1.0.0. Is there a reason that 1.0.0 hasn't been published yet?
Specifying the following in the gem file allows installation to proceed:
git "git://github.com/seancribbs/ripple.git" do gem 'ripple' end
(The gem line requiring the client has been removed as it can't be located. The 1.0.0.beta version of the client seems to load anyway.)
However, when running the generator ("rails g ripple"), the following is produced:
/opt/local/lib/ruby/gems/1.8/gems/riak-client-1.0.0.beta/lib/riak.rb:3:in `require': /opt/local/lib/ruby/gems/1.8/gems/riak-client-1.0.0.beta/lib/riak/client.rb:89: odd number list for Hash (SyntaxError) prefix: options[:prefix] || "/riak/",
... which seems to indicate that the newer gem version uses the new hash syntax, which only is available in Ruby >=1.9.
What to do I do to install Ripple under Ruby 1.8.7?
It seems that an explicit load of the client, which has been moved to another place on GitHub, is required:
git "git://github.com/basho/riak-ruby-client.git" do gem 'riak-client' end
This allows the generator to run as expected.
Thank you - I will verify that these issues have been resolved. There should be a new gem Real Soon Now.
Thanks for the speedy reply! :)
looks like that the stable version of the gem still has this problem. not resolved yet?
Bundler could not find compatible versions for gem "activemodel": In Gemfile: ripple (>= 0) ruby depends on activemodel (= 3.0.0.beta) ruby