rixml 0.5.5 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ecdb382a64d80df552f7b9715ef847a9b77d8be
4
- data.tar.gz: 61769e0d2c7cf9c8e059c1d937841cff4bc6332d
3
+ metadata.gz: d2c991efe312a7f413992fc9b2bb04c279a84a08
4
+ data.tar.gz: b9bdbac243e41719b5e6a889dc933b22e0cfba67
5
5
  SHA512:
6
- metadata.gz: a3d922373427b1f2b663837ad79a6536e44b8c8e409d60211bdbc7fdf09c2f71bcb9258b76edf93b2f0fa7539b9cecc3ffd060009059174d2edcc9e1c0f41410
7
- data.tar.gz: a498268ba5c24be8c1466bcdcd101b12d8149169f827c609b6f048e83ffe3cac86bbc2483b295e06947e35616c487d42532c6f78b35ebf27a4f14092c9d77849
6
+ metadata.gz: b4d8adecbe395cb6d2f91fd390f81b98bdcfeb451d2d486cb943d563551f0a6d8686351b4f87cc823ec1caf00b24ed4e21a4f6043df9ccb47e17a14d727fcd4c
7
+ data.tar.gz: 475aef3beede6232490994d74e23a6d90d717ffeaacb4e45ff83111aaa26d76a601d3a4042a8772d668a914730256baf4cc4e44e789ebb28ef7e57002e9c27c5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rixml (0.0.0)
4
+ rixml (0.5.6)
5
5
  activesupport (>= 4.0.0)
6
6
  nokogiri (~> 1.5)
7
7
  nokogiri-happymapper (~> 0.6.0)
@@ -18,7 +18,8 @@ GEM
18
18
  byebug (9.0.6)
19
19
  concurrent-ruby (1.0.5)
20
20
  diff-lcs (1.3)
21
- i18n (0.8.6)
21
+ i18n (0.9.0)
22
+ concurrent-ruby (~> 1.0)
22
23
  mini_portile2 (2.3.0)
23
24
  minitest (5.10.1)
24
25
  nokogiri (1.8.1)
@@ -6,6 +6,7 @@ require_relative './asset_class'
6
6
  require_relative './asset_type'
7
7
  require_relative './country'
8
8
  require_relative './region'
9
+ require_relative './sector_industry'
9
10
 
10
11
  module RixmlDocument
11
12
  class ProductClassifications < Node
@@ -16,5 +17,6 @@ module RixmlDocument
16
17
  has_many :asset_types, AssetType, tag: 'AssetType', xpath: './'
17
18
  has_many :countries, Country, tag: 'Country', xpath: './'
18
19
  has_many :regions, Region, tag: 'Region', xpath: './'
20
+ has_many :sector_industries, SectorIndustry, tag: 'SectorIndustry', xpath: './'
19
21
  end
20
22
  end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'happymapper'
4
+ require_relative './node'
5
+ require_relative './rixml_type/normalized_string'
6
+ require_relative './rixml_type/upcase_string'
7
+ require_relative './rixml_type/yes_no_boolean'
8
+
9
+ module RixmlDocument
10
+ class SectorIndustry < Node
11
+ include HappyMapper
12
+ tag 'SectorIndustry'
13
+
14
+ has_many :sector_industries, SectorIndustry, tag: 'SectorIndustry', xpath: './'
15
+
16
+ attribute :primary_indicator, RixmlType::YesNoBoolean, tag: 'primaryIndicator'
17
+ attribute :focus_level, RixmlType::YesNoBoolean, tag: 'focusLevel'
18
+ attribute :classification_type, RixmlType::NormalizedString, tag: 'classificationType'
19
+ attribute :level, RixmlType::NormalizedString
20
+ attribute :code, String
21
+ element :name, String, tag: 'Name'
22
+ end
23
+ end
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.5.5'
5
- s.date = '2017-10-20'
4
+ s.version = '0.5.6'
5
+ s.date = '2017-10-22'
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.5.5
4
+ version: 0.5.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-10-20 00:00:00.000000000 Z
12
+ date: 2017-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -180,6 +180,7 @@ files:
180
180
  - lib/rixml_document/rixml_type/normalized_string.rb
181
181
  - lib/rixml_document/rixml_type/upcase_string.rb
182
182
  - lib/rixml_document/rixml_type/yes_no_boolean.rb
183
+ - lib/rixml_document/sector_industry.rb
183
184
  - lib/rixml_document/security.rb
184
185
  - lib/rixml_document/security_id.rb
185
186
  - lib/rixml_document/security_type.rb