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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5aa1c5e476bdc70f1cc9ad800ba71dc142f9c7b1
4
- data.tar.gz: dd3c856659067c897b1a3fd7f949e74bf24be00b
3
+ metadata.gz: 07fc168b160164df4b4d1ecce134e2e531a52a12
4
+ data.tar.gz: 222479db7900fdb52d534be386ecd384fa6b68c0
5
5
  SHA512:
6
- metadata.gz: 142a81c318a29fb121c39bb9efcdf51da8c9db1f1d6fd74c86a5f4c6162739451b8646702595e0ce12c79abce54bdd14a6a26431c0f5d51525a03dd576bcc006
7
- data.tar.gz: e2c3f8feb24417ce9b694c3a369efb96a03a5307f81b4f54fcbdfc8ca845cfab846970cd74f8d1539272ba843ce19c5929318cf734440aa6aae1285c79e03f36
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 @Magic.key?(value)
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.2'
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.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Commu