synchronizable 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,11 +16,9 @@ module Synchronizable
16
16
  original_method = obj.method(m)
17
17
  next if IGNORABLE_METHOD_OWNERS.include?(original_method.owner)
18
18
 
19
- without_sync_method = "#{original_method.name}_without_sync"
20
- obj.define_singleton_method(without_sync_method, original_method)
21
19
  obj.define_singleton_method(m) do |*args, &block|
22
20
  __lock.synchronize do
23
- send(without_sync_method, *args, &block)
21
+ original_method.call(*args, &block)
24
22
  end
25
23
  end
26
24
  end
@@ -1,3 +1,3 @@
1
1
  module Synchronizable
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: synchronizable
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ryan LeCompte