casting 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36b6f16e582747ee905c40b1880686d5507f6477
4
- data.tar.gz: b6744f050563f49a8249d9f24c2e5ed44bc2721f
3
+ metadata.gz: 053778d6e1b80af5e267c189ecfe145f453c8f6d
4
+ data.tar.gz: 9f0fdfbe82cda37f8c17421cf63f4c4f794680e6
5
5
  SHA512:
6
- metadata.gz: 21d2c3c82fd8a0ae01c458ae0f03cdd26a14248cf04e9f87796f8f7e184b27587ce71d793e2ef7b8548848dd820b806f2de0ca8a9dc462e6c6c7d35ece0abd26
7
- data.tar.gz: 246369ff76c6c5a3c03c5ac78a7c60ef3187354a3df01f1d614218ec22444a587409c73d1c357f686f4e05f0249c1468682624979595047f258fef09974fa06e
6
+ metadata.gz: a0a6a89aab3638e817ff4c57d91bac7cec21519c0697d3aa3237f40fe5be7fb93881acbdf82eceedc8a7af70a3e8505627b09591ab5debc89c15573d9201b29d
7
+ data.tar.gz: 0e93c438e769f07061be8b45b0d766b87a44e9634a5ea513162bf0fadb9d224f0c212e0d4d98bbda11b1d54b4b116596b1f5c33d8500b4a95f967b8fe2c2c648
@@ -45,8 +45,9 @@ module Casting
45
45
  end
46
46
 
47
47
  def method_missing(meth, *args, &block)
48
- if !!method_delegate(meth)
49
- delegate(meth, method_delegate(meth), *args, &block)
48
+ attendant = method_delegate(meth)
49
+ if !!attendant
50
+ delegate(meth, attendant, *args, &block)
50
51
  else
51
52
  super
52
53
  end
@@ -13,8 +13,9 @@ module Casting
13
13
  end
14
14
 
15
15
  def method_missing(meth, *args, &block)
16
- if !!method_class_delegate(meth)
17
- delegate(meth, method_class_delegate(meth), *args, &block)
16
+ attendant = method_class_delegate(meth)
17
+ if !!attendant
18
+ delegate(meth, attendant, *args, &block)
18
19
  else
19
20
  super
20
21
  end
@@ -1,3 +1,3 @@
1
1
  module Casting
2
- VERSION = '0.6.4'
2
+ VERSION = '0.6.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: casting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-14 00:00:00.000000000 Z
11
+ date: 2014-01-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Casting assists in method delegation which preserves the binding of 'self' to the object receiving a message.
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  requirements: []
59
59
  rubyforge_project:
60
- rubygems_version: 2.0.3
60
+ rubygems_version: 2.0.14
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: Proper method delegation.