huginn_acumen_product_agent 1.2.3 → 1.4.0

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: 3a2a9317b51b817d6775c95035855b22438b01400558f21bcee9690ed4f7c450
4
- data.tar.gz: 1cfb155d43958d761bbe9ada14c539d8b04be072eaa6a5a5d582103133de566f
3
+ metadata.gz: 73be297fed0a6ced22645adc0a259180dc4980dd70c746f4057b8572e1ee7863
4
+ data.tar.gz: b04844533621d1e320ec95b39c6458aa8a846dbb765c4e00c84be958696aaef9
5
5
  SHA512:
6
- metadata.gz: 736252a03674bbc2a8daf65e88cec69f5db0000b473d402698a23ef0656768a24bb54aadb2c5e7c479c0a532f54bf253aa47ef62b17c98ba4f8d499c56816662
7
- data.tar.gz: e840b5679c381db5d916157f1833e0f0eae5c114d53cb142b22c5683b78c6e7b73d8b67de85c7461989fd01a707f92b80a77ac782a45bbabd192c0cac0af13ae
6
+ metadata.gz: 9cc986209beb97de37544ec3c563d5f7a5de88e9597afbd7b95cf2cada6c409ce084492d706b6db92e2382bbb12a60e9ec0d064a51aa4009145ba6f4e11739ca
7
+ data.tar.gz: 443ab6792a17decfe5da76d424bfda9f84b4c8d30daa45fdebbdb20c880b093babdfbac4dc7eacd56d501ffff2394d165cf541c1ac66afc5e39c1a52fa536735
@@ -141,6 +141,7 @@ class AcumenClient
141
141
  <column_name>ProdMkt.Info_Text_01</column_name>
142
142
  <column_name>ProdMkt.Info_Text_02</column_name>
143
143
  <column_name>ProdMkt.Religious_Text_Identifier</column_name>
144
+ <column_name>ProdMkt.Info_Alpha_07</column_name>
144
145
  </requested_output>
145
146
  </acusoapRequest>
146
147
  XML
@@ -223,6 +223,7 @@ module AcumenProductQueryConcern
223
223
  'ProdMkt.Info_Text_01' => 'info_text_01',
224
224
  'ProdMkt.Info_Text_02' => 'info_text_02',
225
225
  'ProdMkt.Religious_Text_Identifier' => 'religious_text_identifier',
226
+ 'ProdMkt.Info_Alpha_07' => 'info_alpha_07',
226
227
  })
227
228
 
228
229
  results[mapped['product_id']] = mapped
@@ -276,6 +277,7 @@ module AcumenProductQueryConcern
276
277
  product['acumenAttributes']['extent_value'] = marketing['extent_value']
277
278
  product['acumenAttributes']['info_text_01'] = marketing['info_text_01']
278
279
  product['acumenAttributes']['info_text_02'] = marketing['info_text_02']
280
+ product['acumenAttributes']['info_alpha_07'] = marketing['info_alpha_07']
279
281
  product['acumenAttributes']['meta_description'] = marketing['meta_description']
280
282
  product['acumenAttributes']['religious_text_identifier'] = marketing['religious_text_identifier']
281
283
  product['acumenAttributes']['status'] = marketing['status']
@@ -293,9 +295,11 @@ module AcumenProductQueryConcern
293
295
  variant['depth'] = quantitative_value(
294
296
  marketing['thickness'], marketing['dimensions_unit_measure']
295
297
  )
296
- variant['weight'] = quantitative_value(
297
- marketing['weight'], marketing['weight_unit_measure']
298
- )
298
+ if variant['weight']['value'] == '0'
299
+ variant['weight'] = quantitative_value(
300
+ marketing['weight'], marketing['weight_unit_measure']
301
+ )
302
+ end
299
303
  end
300
304
  end
301
305
 
@@ -382,7 +386,7 @@ module AcumenProductQueryConcern
382
386
  next
383
387
  else
384
388
  physical_formats.each do |val|
385
- match = product['model'].select { |v| v[field_value(product, 'Inv_Product.Category')] == val }
389
+ match = product['model'].select { |v| v['acumenAttributes']['category'] == val }
386
390
 
387
391
  if match && match.length > 0
388
392
  match[0]['isDefault'] = true
@@ -391,7 +395,7 @@ module AcumenProductQueryConcern
391
395
  end
392
396
 
393
397
  digital_formats.each do |val|
394
- match = product['model'].select { |v| v[field_value(product, 'Inv_Product.Category')] == val }
398
+ match = product['model'].select { |v| v['acumenAttributes']['category'] == val }
395
399
 
396
400
  if match && match.length > 0
397
401
  match[0]['isDefault'] = true
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.3
4
+ version: 1.4.0
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-28 00:00:00.000000000 Z
11
+ date: 2020-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler