twitter/cassandra — pull request #137 by Sergyenko (2012-02-15 23:07:56+00:00)
Title: Unlock dependency for usage gem thrift_client-0.8.1

To update thrift gem dependency to 0.8.0 we need to add one extra fix to cassandra gem.

We want to use cassandra gem with thrift_client-0.8.1 and thrift-0.8.0. But we can't do this for the reason of locking thrift_client (~> 0.7.0) to use exactly the 0.7.x versions.

As you can see, bundler can't activate correct version of thrift_client, every time we try to launch it:

/home/vagrant/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb:153 :in 'block in replace_gem': can't activate thrift_client (~> 0.7.0), already activated thrift_client-0.8.1. Make sure all dependencies are added to Gemfile. (Gem::LoadError)
from /home/vagrant/.rvm/gems/ruby-1.9.3-p0@rnds/bundler/gems/cassandra-32b7dfd81a4b/lib/cassandra.rb:2 :in ''
...

This patch unlocks usage of gem thirft-0.8.0 and gem thrift_client-0.8.1.

Please take a look.