magic_data 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/magic_data/magic_data.rb +1 -1
- data/magic_data.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07fc168b160164df4b4d1ecce134e2e531a52a12
|
4
|
+
data.tar.gz: 222479db7900fdb52d534be386ecd384fa6b68c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43f8d72b688e22c9b569a738dfd09bb52461e32f7dcef9cace94ec7c799a31ebee42dee2e9815231efa34cd860c1ae31617f4da3472ff732d7ba8b3c78dcb1bd
|
7
|
+
data.tar.gz: fbe8a28ccd446ba41ece25a9c556d2e055e4dfde93025f360ab3a277dace409488c70c3619c6b4f1d00e50204c243c66e868ee07717f96c48486351695901bb7
|
@@ -10,7 +10,7 @@ class MagicData
|
|
10
10
|
def process(fields, diff_only=false)
|
11
11
|
modified = {}
|
12
12
|
fields.each do |key, value|
|
13
|
-
@saved["latest_#{value}"]= modified[key] = @magic[value].call if @
|
13
|
+
@saved["latest_#{value}"]= modified[key] = @magic[value].call if @magic.key?(value)
|
14
14
|
modified[key] = @saved[value] if @saved.key?(value)
|
15
15
|
end
|
16
16
|
diff_only ? modified : fields.merge(modified)
|
data/magic_data.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'magic_data'
|
7
|
-
spec.version = '1.0.
|
7
|
+
spec.version = '1.0.3'
|
8
8
|
spec.authors = ['Justin Commu']
|
9
9
|
spec.email = ['Justin.Commu@loblaw.ca']
|
10
10
|
spec.summary = 'Dynamic data library for Ruby.'
|