rixml 0.4.5 → 0.4.6
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 +4 -4
- data/lib/rixml.rb +6 -1
- data/rixml.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cbf52afd7ee5b9ba7972a7fa01e6ae340f10f00
|
4
|
+
data.tar.gz: 96a6d6bfe25f1e47082c9a54d2ceef36344681ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f98cea37b0ce723213472e22db13190fa364644dd8f2d759c804b4d87f8140d31f5172b5a70e9a68744b0984bc9b002f53df7514d835d9f21cb1d2a70e4dd244
|
7
|
+
data.tar.gz: 866bd8bed74d7fa821982eacc93b69f7bc4f7def9b0b598cd113ed7fa0c7546a2c8d5e0e434e949c3ec492d0efc8a351861b25a6570da08843f64bb1ade5dda5
|
data/lib/rixml.rb
CHANGED
@@ -83,7 +83,8 @@ class RIXML
|
|
83
83
|
{
|
84
84
|
companies: parse_companies_from_context(context),
|
85
85
|
sectors: parse_sectors_from_context(context),
|
86
|
-
countries: parse_countries_from_context(context)
|
86
|
+
countries: parse_countries_from_context(context),
|
87
|
+
category: parse_product_category_from_context(context)
|
87
88
|
}
|
88
89
|
end
|
89
90
|
|
@@ -141,6 +142,10 @@ class RIXML
|
|
141
142
|
companies.flatten
|
142
143
|
end
|
143
144
|
|
145
|
+
def parse_product_category_from_context(context)
|
146
|
+
context.dig('ProductDetails', 'ProductCategory', 'productCategory')
|
147
|
+
end
|
148
|
+
|
144
149
|
def parse_company_info(company)
|
145
150
|
securities = company.dig('SecurityDetails', 'Security')
|
146
151
|
securities = [securities].compact unless securities.is_a? Array
|
data/rixml.gemspec
CHANGED
@@ -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.
|
5
|
-
s.date = '2017-
|
4
|
+
s.version = '0.4.6'
|
5
|
+
s.date = '2017-09-11'
|
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.
|
4
|
+
version: 0.4.6
|
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-
|
12
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|