field_mapper 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/field_mapper/custom/plat.rb +8 -0
- data/lib/field_mapper/version.rb +1 -1
- data/test/custom/plat_example.rb +1 -0
- data/test/custom/plat_test.rb +4 -0
- data/test/standard/plat_example.rb +4 -0
- 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: 73a3b9030b81d91ba6892c32aa09ae5349cc840c
|
4
|
+
data.tar.gz: ac3cffd1c268087695783c11aa5e01ed19a1e155
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa8c586e3c5896c067100985b325ebd8ce29d2f710c6d53e109b70b804f165b3a2181df7081274b36dd86b33802f98508f534e4653ff159b7a99688a77a38e11
|
7
|
+
data.tar.gz: 6e259cf21a400af2a0370d4e8721ebc21b38b38b837df27e944c693c4ceaab9768812edf4bc13d77a474df07e415febeb3b0724cff7e7452818399d9579f0b1b
|
@@ -50,6 +50,14 @@ module FieldMapper
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
+
def basic_mapped_fields(*names)
|
54
|
+
names.each { |name| basic_mapped_field(name) }
|
55
|
+
end
|
56
|
+
|
57
|
+
def basic_mapped_field(name)
|
58
|
+
field name, standard: name
|
59
|
+
end
|
60
|
+
|
53
61
|
def find_mapped_fields(standard_field)
|
54
62
|
fields.values.select { |field| field.standard_field == standard_field }
|
55
63
|
end
|
data/lib/field_mapper/version.rb
CHANGED
data/test/custom/plat_example.rb
CHANGED
data/test/custom/plat_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: field_mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Hopkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|