lib/slave.rb in slave-1.2.0 vs lib/slave.rb in slave-1.2.1
- old
+ new
@@ -38,11 +38,11 @@
#
# of the two 'b' is preferred.
#
class Slave
#--{{{
- VERSION = '1.2.0'
+ VERSION = '1.2.1'
def self.version() VERSION end
#
# env config
#
DEFAULT_SOCKET_CREATION_ATTEMPTS = Integer(ENV['SLAVE_SOCKET_CREATION_ATTEMPTS'] || 42)
@@ -124,22 +124,22 @@
# calls are now thread safe. this is the mechanism behind the
# 'threadsafe'/:threadsafe keyword to Slave#initialize
#
class ThreadSafe
#--{{{
- instance_methods.each{|m| undef_method unless m[%r/__/]}
+ instance_methods.each{|m| undef_method m.to_sym unless m[%r/__/]}
def initialize object
@object = object
@sync = Sync.new
end
def ex
@sync.synchronize{ yield }
end
def method_missing m, *a, &b
ex{ @object.send m, *a, &b }
end
- def respond_to? m
- ex{ @object.respond_to? m }
+ def respond_to? *a, &b
+ ex{ @object.respond_to? *a, &b }
end
def inspect
ex{ @object.inspect }
end
def class