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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/module_helper.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62dac84089ee16267c61962e89e0b8e3b8ec2802409bbac0747903d37544f7a7
4
- data.tar.gz: dbeecf0ea54d74159bbd6d9cd9fc62205d08ca0a6e55997ce273790c5d9ba1e8
3
+ metadata.gz: 8dbe99d6a2caf950b9b51a765eb4af884c5eab7d4f303137561cb0a88379951f
4
+ data.tar.gz: 05576feaf08041098823846d34b0babeb8b49cb0d735b809190c647709e47978
5
5
  SHA512:
6
- metadata.gz: a4326086134ea116953757d343e78c7ca2fff70a2a0fe1215472156ead8997d272ace9936ebd7a3083e701623ec6bb83407bb9512300816510217da7caa18364
7
- data.tar.gz: 64080ee3656bab8cb19549edd9cebc5a1b33cce3671fc19727b026cca172d85706c58b1f1bea3e3c7896edc499e1be17640ff7f5a2451253b77b377614b64015
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 =~ /^shared\//)
27
+ !!(signature =~ /^.+\(.*\)/)
28
28
  end
29
29
 
30
30
  def self.needs_method?(signature)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: declarative_mapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nemytchenko