declarative_mapper 0.0.3 → 0.0.4

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/csv_parser.rb +4 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10539dff30e5685fc48c7e114d864b099287be1887103b1f973d406c0bbdb728
4
- data.tar.gz: dd743aabb3b023f133de96501dc3c22bfbd5961356366ee91dc2dbf3938e73c0
3
+ metadata.gz: c53fb6f993020cde650edd5f974ec0a10a6f8376e10799cbab86bb35d029873b
4
+ data.tar.gz: 8e2356cec3faa653fada81a9da233713b86bf435e237187616d45c5d107d43a6
5
5
  SHA512:
6
- metadata.gz: 996424166a6534124e4a6ef57f3f14499f278a2c3283d55bac6fe8f20b18df9df5349c5a2ff6d9012b3865fc5d0e591388a680a043b89eb09e2514ff70fe33aa
7
- data.tar.gz: b38785bfddf2bcd24209834a7e6c7987fae3d57e5ae1901a898c8246c24958b676119835d98e7ef1a67cdd518c7a18597eb3e6079af88d82eda832a40961ef28
6
+ metadata.gz: e28f5c3280eccb997f4781aa04ccf84a2cdbff83d8b99117cb7aefe617221f660e4c5c81f3a54cd53339fcdbfd8c76d138725429dea114f3ea2ac5c9c0aeea69
7
+ data.tar.gz: d3c98ef25efd1f4ad2b006d531215c7f9a392cef42300998479e99c6862561b239d221782e993c018925108ddbd26e10e874689f656e98f3d3b5010a87252fa6
data/lib/csv_parser.rb CHANGED
@@ -28,8 +28,11 @@ class CSVParser
28
28
 
29
29
  args = argument_values(parsed_signature[:arguments], csv_row)
30
30
 
31
+ module_path = parsed_signature[:path]
32
+ module_path += path[0..-2] unless ModuleHelper.shared_method?(csv_field_name)
33
+
31
34
  call_shared_or_client_method(
32
- parsed_signature[:path] + path[0..-2],
35
+ module_path,
33
36
  parsed_signature[:method_name],
34
37
  *args
35
38
  )
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nemytchenko
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-13 00:00:00.000000000 Z
12
+ date: 2019-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport