declarative_mapper 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/module_helper.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dbe99d6a2caf950b9b51a765eb4af884c5eab7d4f303137561cb0a88379951f
|
4
|
+
data.tar.gz: 05576feaf08041098823846d34b0babeb8b49cb0d735b809190c647709e47978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 253ce2b5204204f264e63832c0b57d95d3f68f18f05118f064949288111d85a1cb9fdb03673ab6862271583763e85e501de7c26bd224e456b46cfcfa01c1ffe7
|
7
|
+
data.tar.gz: a5e14322d05e45afd61af0a3cef24f16c697099d074caf4dfe97ebe589bbd87e5734b824a19f300f088aa1dd5edad6b6bc886de85597edcb00a092fdc74aa17f
|
data/lib/module_helper.rb
CHANGED
@@ -11,7 +11,7 @@ module ModuleHelper
|
|
11
11
|
result = {arguments: match[2].gsub(/,\s+/, ',').split(',')}
|
12
12
|
|
13
13
|
if shared_method?(signature)
|
14
|
-
path = match[1].split('/')
|
14
|
+
path = ['shared'] + match[1].split('/')
|
15
15
|
|
16
16
|
result[:method_name] = path.pop.to_sym
|
17
17
|
result[:path] = path
|
@@ -24,7 +24,7 @@ module ModuleHelper
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.shared_method?(signature)
|
27
|
-
!!(signature =~
|
27
|
+
!!(signature =~ /^.+\(.*\)/)
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.needs_method?(signature)
|