scrubdeku 0.2.0.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/scrubdeku.rb +8 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 146cb3dd929461b059da92ef2c9139b0d00361d6
4
- data.tar.gz: 4912ceac09c8e5c9e847a7ebc4c7631b7efd3046
3
+ metadata.gz: d11fca1b4475469bc063760ca9d10f81f896437d
4
+ data.tar.gz: 06bfef9c74825477295580dcca96bcefa9a1e7ba
5
5
  SHA512:
6
- metadata.gz: a9ded179f3773dfa4424a8599eaebf86bb9dab069b921193a961b6eb842bef7b4d48406af699eb8bef73df95744fbc14f4c7a69c9d7a5d2b0703a9a3c97a078d
7
- data.tar.gz: 36c34b747157cd605225ff8a9ea60b8bb43c50f834d9963c1ed9defe91c8737bd84f7378cb38af893dd7f4cf4eea2b852740844dbe26c1a6b8193978a76c6af2
6
+ metadata.gz: 9f67717d585088331d0ed2be082e1193c1dec1878d500537f73ebc1b1ec0445e68790ab0bc6147f44379caa370cc5c0de263f9b008b8bfd0c6fa8f6764ee40e1
7
+ data.tar.gz: '08620a372403319c3a27aea8947806983ba4bc0694f189324758118b3d0f66dd64e17aaeac2729ac13c9849f2086eeb2253785214bbcd34ba5a34947ef7f334a'
@@ -156,11 +156,15 @@ module Scrub
156
156
  orderData = @data[:order][:items][:order_item]
157
157
  if orderData.kind_of? Array
158
158
  orderData.each do |item|
159
- buildout = {}
160
- item[:bundle_items][:order_bundle_item].each do |bundleItem|
161
- buildout.merge!("#{bundleItem[:product_id]}" => {'qtyEach' => bundleItem[:qty], 'qtyTotal' => bundleItem[:total_qty]})
159
+ begin
160
+ buildout = {}
161
+ item[:bundle_items][:order_bundle_item].each do |bundleItem|
162
+ buildout.merge!("#{bundleItem[:product_id]}" => {'qtyEach' => bundleItem[:qty], 'qtyTotal' => bundleItem[:total_qty]})
163
+ end
164
+ productTable[item[:product_id]] = {"qty" => item[:qty], "description" => item[:display_name], 'components' => buildout}
165
+ rescue NoMethodError
166
+ next
162
167
  end
163
- productTable[item[:product_id]] = {"qty" => item[:qty], "description" => item[:display_name], 'components' => buildout}
164
168
  end
165
169
  elsif orderData.kind_of? Hash
166
170
  buildout = {}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrubdeku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harold Schreckengost