wedge 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wedge/component.rb +12 -1
- data/lib/wedge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35edb502cf776cda6643f5c81da571d6906f111e
|
4
|
+
data.tar.gz: bb6d159ada2f5c822d1c242f6f46d65c9fde46c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5b78718fd9a17ecf7f2df87264aa5e2655195ee2d0887055a93b61343c89d9d85b0cb8745d4511b71b46c05572a825d9de7fbeffc1148d899de56761d8c2c51
|
7
|
+
data.tar.gz: 155bde2750753e1c48cad29f31fa798074a50a4f2214cbd18b40acc00e21b55c81da15bd0379de5c62d2a46186f22a5bbfa9ae8b915e3d66abf6f57be0c2780d
|
data/lib/wedge/component.rb
CHANGED
@@ -63,7 +63,18 @@ module Wedge
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
obj
|
66
|
+
if obj.wedge_opts.call
|
67
|
+
method_args = args.first
|
68
|
+
method_called = method_args.delete(:call)
|
69
|
+
|
70
|
+
if method_args.any?
|
71
|
+
obj.send(method_called, method_args)
|
72
|
+
else
|
73
|
+
obj.send(method_called)
|
74
|
+
end
|
75
|
+
else
|
76
|
+
obj
|
77
|
+
end
|
67
78
|
end
|
68
79
|
|
69
80
|
# Used to setup the component with default options.
|
data/lib/wedge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wedge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|