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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14fdff9a126524e75e3a911c9c8352a556bfd72c
4
- data.tar.gz: 97952d7d42f8acd95161ef132f84931d4732ea9a
3
+ metadata.gz: 35edb502cf776cda6643f5c81da571d6906f111e
4
+ data.tar.gz: bb6d159ada2f5c822d1c242f6f46d65c9fde46c5
5
5
  SHA512:
6
- metadata.gz: abe50187cd8c209599edaa98cd99a8950f86e9c262bb94b6bb5ab7311d0e17928880553433a40a371b0f6008d8d3f32578f5c3bfb06db6bdd18b3c6e1b797667
7
- data.tar.gz: f46c90645196a0461a1a624442df04cd0b707ffb831e06ce2e2d7ec8c815c2fa1f4b59a380a800c566bebc5c0b8f29b1e192cc214187647621c41e018833c414
6
+ metadata.gz: c5b78718fd9a17ecf7f2df87264aa5e2655195ee2d0887055a93b61343c89d9d85b0cb8745d4511b71b46c05572a825d9de7fbeffc1148d899de56761d8c2c51
7
+ data.tar.gz: 155bde2750753e1c48cad29f31fa798074a50a4f2214cbd18b40acc00e21b55c81da15bd0379de5c62d2a46186f22a5bbfa9ae8b915e3d66abf6f57be0c2780d
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Wedge
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-28 00:00:00.000000000 Z
11
+ date: 2015-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal