huginn_acumen_product_agent 1.2.2 → 1.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a99adb8ef72e51a149b349a6acf70a67e5508d54288d5d06e560e1cc686748a
4
- data.tar.gz: ff73fc37c85d3a181348b0494d4844e5b30fa96db548c554c1d2a46c59e1fc21
3
+ metadata.gz: 3a2a9317b51b817d6775c95035855b22438b01400558f21bcee9690ed4f7c450
4
+ data.tar.gz: 1cfb155d43958d761bbe9ada14c539d8b04be072eaa6a5a5d582103133de566f
5
5
  SHA512:
6
- metadata.gz: cae798dcb83e98878a4537ae76727233faac0d6ee375172fcbb0ba23a639e489d7035546220da5136ccdac3adbf56f222f0f4451632991e04528de3198e5fbb7
7
- data.tar.gz: 5d7177a669c4ab7f990f0d19cd5e6ffa9f35bd837a2d044f8bd8bc6cd8e92061261405e006d2285d3679549ac2e1de7f156e9c2d0894b048be909a16c968c734
6
+ metadata.gz: 736252a03674bbc2a8daf65e88cec69f5db0000b473d402698a23ef0656768a24bb54aadb2c5e7c479c0a532f54bf253aa47ef62b17c98ba4f8d499c56816662
7
+ data.tar.gz: e840b5679c381db5d916157f1833e0f0eae5c114d53cb142b22c5683b78c6e7b73d8b67de85c7461989fd01a707f92b80a77ac782a45bbabd192c0cac0af13ae
@@ -384,8 +384,8 @@ module AcumenProductQueryConcern
384
384
  physical_formats.each do |val|
385
385
  match = product['model'].select { |v| v[field_value(product, 'Inv_Product.Category')] == val }
386
386
 
387
- if match
388
- match['isDefault'] = true
387
+ if match && match.length > 0
388
+ match[0]['isDefault'] = true
389
389
  break
390
390
  end
391
391
  end
@@ -393,8 +393,8 @@ module AcumenProductQueryConcern
393
393
  digital_formats.each do |val|
394
394
  match = product['model'].select { |v| v[field_value(product, 'Inv_Product.Category')] == val }
395
395
 
396
- if match
397
- match['isDefault'] = true
396
+ if match && match.length > 0
397
+ match[0]['isDefault'] = true
398
398
  break
399
399
  end
400
400
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: huginn_acumen_product_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Spizziri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-27 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler