Skip to content
Browse files

rename to memcache-lock

  • Loading branch information...
1 parent ed23ef8 commit c0f75e9cb092ccd747ebcdb266a297d1fe06549c @jamesgolick committed Oct 11, 2009
View
10 Rakefile
@@ -4,11 +4,11 @@ require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
- gem.name = "memcached-lock"
- gem.summary = %Q{TODO: one-line summary of your gem}
- gem.description = %Q{TODO: longer description of your gem}
+ gem.name = "memcache-lock"
+ gem.summary = %Q{Memcache key lock, extracted from cache-money.}
+ gem.description = %Q{Memcache key lock, extracted from cache-money.}
gem.email = "james@giraffesoft.ca"
- gem.homepage = "http://github.com/giraffesoft/memcached-lock"
+ gem.homepage = "http://github.com/giraffesoft/memcache-lock"
gem.authors = ["James Golick"]
gem.add_development_dependency "rspec"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
@@ -42,7 +42,7 @@ Rake::RDocTask.new do |rdoc|
end
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "memcached-lock #{version}"
+ rdoc.title = "memcache-lock #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
View
2 lib/memcached-lock.rb → lib/memcache-lock.rb
@@ -1,4 +1,4 @@
-class MemcachedLock
+class MemcacheLock
class Error < RuntimeError; end
DEFAULT_RETRY = 5
View
2 spec/memcached-lock_spec.rb → spec/memcache-lock_spec.rb
@@ -1,6 +1,6 @@
require File.join(File.dirname(__FILE__), 'spec_helper')
-describe MemcachedLock do
+describe MemcacheLock do
describe '#synchronize' do
it "yields the block" do
block_was_called = false
View
0 spec/memcached.yml → spec/memcache.yml
File renamed without changes.
View
6 spec/spec_helper.rb
@@ -1,6 +1,6 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-require 'memcached-lock'
+require 'memcache-lock'
require 'rubygems'
require 'memcache'
require 'spec'
@@ -9,10 +9,10 @@
Spec::Runner.configure do |config|
config.mock_with :rr
config.before :suite do
- config = YAML.load(IO.read((File.expand_path(File.dirname(__FILE__) + "/memcached.yml"))))['test']
+ config = YAML.load(IO.read((File.expand_path(File.dirname(__FILE__) + "/memcache.yml"))))['test']
$memcache = MemCache.new(config)
$memcache.servers = config['servers']
- $lock = MemcachedLock.new($memcache)
+ $lock = MemcacheLock.new($memcache)
end
config.before :each do

0 comments on commit c0f75e9

Please sign in to comment.
Something went wrong with that request. Please try again.