davidsons 5.0.0 → 5.0.1

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: 19e23304e1aaa80a1a477972bab1113d2cb9c442
4
- data.tar.gz: ded35d0426e562130b3d23396256a673e5ea94bf
3
+ metadata.gz: 412d169a955ca01bd2f988ed956873c24e141415
4
+ data.tar.gz: 984b7f63c5b74a6e694b4f9e5c9a9d280a1b86a7
5
5
  SHA512:
6
- metadata.gz: f4435834e31c4bf5c0174e62d896c4cb747a93acfca1d18f7085481775c604fffcd43c119d5443651911391f7e2ee1b56560a830577ad1a5e070742bafdc4071
7
- data.tar.gz: a011ec589fc7f04ebbe8aa24e4bc528ebd6e797844a37fed2d947f0f0ac83b687bbc8177c5759b6de7af0fbf817e1317c68d32f9ba668f0381fb266c2e1d2a04
6
+ metadata.gz: 1335d44af62e7ea974bdd5b4029f388432c38a09c4098cbd9a4f9b81118113006545528028ae78acb292d1dc76b3e0c56760a1feb58992e9687678b2e3286675
7
+ data.tar.gz: f8fa924866a82cffd3c2bf9a40633adef9e1f14a7f2c7201fb8e65e461c1723a896e36c3de76e461fd851aa0fa1f4ddac5b771a7fb0f8b260ffe730bfb008202
@@ -39,8 +39,8 @@ module Davidsons
39
39
 
40
40
  SmarterCSV.process(tempfile, DEFAULT_SMART_OPTS) do |chunk|
41
41
  chunk.each do |item|
42
- item[:msrp].tr!('$', '')
43
- item[:upc].tr!('#', '')
42
+ item[:msrp]&.tr!('$', '')
43
+ item[:upc]&.tr!('#', '')
44
44
 
45
45
  item[:price] = lowest_price(item)
46
46
  item[:mfg_number] = item[:item_identifier]
@@ -71,7 +71,7 @@ module Davidsons
71
71
 
72
72
  SmarterCSV.process(tempfile, DEFAULT_WHOLE_CATALOG_SMART_OPTS) do |chunk|
73
73
  chunk.each do |item|
74
- item[:upc].tr!('#', '')
74
+ item[:upc]&.tr!('#', '')
75
75
 
76
76
  item[:price] = lowest_price(item)
77
77
  item[:quantity] = item[:quantity].to_i
@@ -1,3 +1,3 @@
1
1
  module Davidsons
2
- VERSION = '5.0.0'.freeze
2
+ VERSION = '5.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davidsons
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Knight
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-27 00:00:00.000000000 Z
11
+ date: 2020-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon