rixml 0.4.7 → 0.4.8

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rixml.rb +3 -1
  3. data/rixml.gemspec +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8845e241347fc96859add967aa3f6a47cb59f7bb
4
- data.tar.gz: 1025ab975104eb8853e7eddc5e9537c3761240f1
3
+ metadata.gz: db768cb2bf306f25477e1ab267bfbf4833018449
4
+ data.tar.gz: 188bda789fe4b822116fc6d38b9e42ea0a5c3606
5
5
  SHA512:
6
- metadata.gz: 6c45dc3510cd8f756332a24bfece35c2811000bfe4fba8f3779419002321c55d8f412b08fd37322a0f4379b1c967c5a80260025b5cfafabcaa0e235b52fa8bf4
7
- data.tar.gz: bf361daf21cdb69a8fc8dc3af66d9d2423b3e9689dfe827675f67e05893e32f5bfd49ddec6aa7e0ec80757983f1b2eb0d0d177e9a443f4bf71a7954122b581ff
6
+ metadata.gz: 7269c45ffaa2b497b5f9b0610ca3664f2c3e2b968cc61056424937cd4061427aeadf46fbf52ad6ab2e4325fae9e4bf2ddf26cd855c2b60e4b6210eef3455b781
7
+ data.tar.gz: a9808fa3c482eaa12bf36f227a18c0b036d9779f660ad4f2a5c3ca17fb1b212c517bfae535496869563d43d480bb21ba3b376fd3ee549968d798b9cd1b6ca87e
@@ -160,7 +160,9 @@ class RIXML
160
160
  end
161
161
 
162
162
  def parse_product_category_from_context(context)
163
- context.dig('ProductDetails', 'ProductCategory', 'productCategory')
163
+ product_category = context.dig('ProductDetails', 'ProductCategory')
164
+ return product_category['productCategory'] if product_category.is_a?(Hash)
165
+ product_category
164
166
  end
165
167
 
166
168
  def parse_publication_date_from_context(context)
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'rixml'
4
- s.version = '0.4.7'
5
- s.date = '2017-09-17'
4
+ s.version = '0.4.8'
5
+ s.date = '2017-09-25'
6
6
  s.summary = 'RIXML Parser'
7
7
  s.description = 'Parse RIXML files'
8
8
  s.homepage = 'https://github.com/AlphaExchange/rixml'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rixml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Correia Santos
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-17 00:00:00.000000000 Z
12
+ date: 2017-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler