basho/riak-ruby-client — Issue #14: 1.0.0.beta on rubygems doesn't work with 1.8
Author: bkerley
Created: 2012-02-01 23:36:46+00:00
State: open
Labels: bug

http://rubygems.org/gems/riak-client/versions/1.0.0.beta uses syntax that doesn't work in Ruby 1.8:

```
/Users/bkerley/.rbenv/versions/ree-1.8.7-2011.12/lib/ruby/gems/1.8/gems/riak-client-1.0.0.beta/lib/riak.rb:3:in `require': /Users/bkerley/.rbenv/versions/ree-1.8.7-2011.12/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/",
^
/Users/bkerley/.rbenv/versions/ree-1.8.7-2011.12/lib/ruby/gems/1.8/gems/riak-client-1.0.0.beta/lib/riak/client.rb:89: syntax error, unexpected ':', expecting '}'
prefix: options[:prefix] || "/riak/",
^
/Users/bkerley/.rbenv/versions/ree-1.8.7-2011.12/lib/ruby/gems/1.8/gems/riak-client-1.0.0.beta/lib/riak/client.rb:89: syntax error, unexpected ',', expecting kEND
/Users/bkerley/.rbenv/versions/ree-1.8.7-2011.12/lib/ruby/gems/1.8/gems/riak-client-1.0.0.beta/lib/riak/client.rb:90: syntax error, unexpected ',', expecting kEND
/Users/bkerley/.rbenv/versions/ree-1.8.7-2011.12/lib/ruby/gems/1.8/gems/riak-client-1.0.0.beta/lib/riak/client.rb:91: syntax error, unexpected ',', expecting kEND
/Users/bkerley/.rbenv/versions/ree-1.8.7-2011.12/lib/ruby/gems/1.8/gems/riak-client-1.0.0.beta/lib/riak/client.rb:93: syntax error, unexpected '}', expecting kEND
}.merge(options[:http_paths] || {})
^
```

The gemspec for the gem should set a required ruby version:

```
s.required_ruby_version = '~> 1.9.2'
```