dozer 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dozer/mapperable.rb +1 -1
- data/lib/dozer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e680861f2a21ec0d718ba6369b0915de1bbbcadce54992186df483fbe985eb8
|
4
|
+
data.tar.gz: b8443f913b615371c7fc6fb090f02eea76501bf8cb827140702e83ebe3594eca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10c9e24bf72fd131fd4c4f71ea883ec75a2fca4c5c6cf6cbd003ac8d32666198d35e5baf5afadf183861b6896f93d37574ec03c3e326599947111208fa276f8b
|
7
|
+
data.tar.gz: ac562a007a21a391ef87816192729c600c4f8eb0b7fc4bc40d0e3b85ac89e4a13a5cc6cc72007283a5bfb63b7f9e2ed808edc976c5f7036df7c06b64ce7eeb6d
|
data/lib/dozer/mapperable.rb
CHANGED
@@ -10,7 +10,7 @@ module Dozer
|
|
10
10
|
|
11
11
|
def transform(input, options={})
|
12
12
|
input, output = input.with_indifferent_access, ActiveSupport::HashWithIndifferentAccess.new
|
13
|
-
kvs = all_rules.map { |rule| rule.apply(input) }.compact
|
13
|
+
kvs = all_rules.map { |rule| rule.apply(input) }.compact
|
14
14
|
kvs.each do |kv|
|
15
15
|
key, value = kv.first, kv.last
|
16
16
|
output[key] = value
|
data/lib/dozer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dozer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Workstream.us
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|