casting 0.6.4 → 0.6.5
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 053778d6e1b80af5e267c189ecfe145f453c8f6d
|
4
|
+
data.tar.gz: 9f0fdfbe82cda37f8c17421cf63f4c4f794680e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
49
|
-
|
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
|
-
|
17
|
-
|
16
|
+
attendant = method_class_delegate(meth)
|
17
|
+
if !!attendant
|
18
|
+
delegate(meth, attendant, *args, &block)
|
18
19
|
else
|
19
20
|
super
|
20
21
|
end
|
data/lib/casting/version.rb
CHANGED
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
|
+
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:
|
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.
|
60
|
+
rubygems_version: 2.0.14
|
61
61
|
signing_key:
|
62
62
|
specification_version: 4
|
63
63
|
summary: Proper method delegation.
|