README in jruby-memcache-client-1.6.0 vs README in jruby-memcache-client-1.6.1
- old
+ new
@@ -13,15 +13,21 @@
As of right now this code only provides a very minimal amount of functionality, but it is enough to use with the Rails cache and cache_fu.
Installation
------------
-This is a ruby gem that can be installed.
+This is a ruby gem that can be installed from gemcutter.org.
-gem sources -a http://gems.github.com
-gem install ikai-jruby-memcache-client --remote
+You will first need to install the gemcutter gem and configure your system to use it:
+jruby -S gem install gemcutter
+jruby -S gem tumble
+
+You will then be able to install the JRuby Memcache Client gem:
+
+jruby -S gem install jruby-memcache-client
+
Replacing Rail's MemCache Client
--------------------------------
Rails ships with a bundled copy of the MemCache client. This client will prevent you from using this gem instead. Adding the following code into your environment.rb file:
@@ -32,14 +38,14 @@
# Unload any previous instance of the class
if Object.const_defined? :MemCache
Object.instance_eval { remove_const :MemCache }
end
# Pull in the exact version we want
- gem 'ikai-jruby-memcache-client', '1.5.0'
+ gem 'jruby-memcache-client', '1.6.1'
# Ensure that the memcache-client path is at the front of the loadpath
$LOAD_PATH.each do |path|
- if path =~ /ikai-jruby-memcache-client/
+ if path =~ /jruby-memcache-client/
$LOAD_PATH.delete(path)
$LOAD_PATH.unshift(path)
end
end
# If Ruby thinks it's already loaded memcache.rb, force