rixml 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebbded7cbdb62e413f76130fd4d4cd1ca3fbcfed
4
- data.tar.gz: 3c3ba137664645aff7947bfe7b280041d41cae70
3
+ metadata.gz: 9ecdb382a64d80df552f7b9715ef847a9b77d8be
4
+ data.tar.gz: 61769e0d2c7cf9c8e059c1d937841cff4bc6332d
5
5
  SHA512:
6
- metadata.gz: fb6c64ce0056718094de58b6f96d588fff135ccf59188a9a6c7bc5a35302032f1364686e9ef91c71c4464bd58b1bdc1fb5523179fb1a6a76357a515949713c43
7
- data.tar.gz: ac0bb3301d256bb0c9598ca6845d25cbd78666df5cf1ebbe47292abb55dee61d3ac8bd266852936deaf66f764b3560499b124c3b9ce112ce9368358f91b69955
6
+ metadata.gz: a3d922373427b1f2b663837ad79a6536e44b8c8e409d60211bdbc7fdf09c2f71bcb9258b76edf93b2f0fa7539b9cecc3ffd060009059174d2edcc9e1c0f41410
7
+ data.tar.gz: a498268ba5c24be8c1466bcdcd101b12d8149169f827c609b6f048e83ffe3cac86bbc2483b295e06947e35616c487d42532c6f78b35ebf27a4f14092c9d77849
@@ -1,9 +1,11 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './asset_class'
5
6
  require_relative './asset_type'
6
7
  require_relative './country'
8
+ require_relative './region'
7
9
 
8
10
  module RixmlDocument
9
11
  class ProductClassifications < Node
@@ -13,5 +15,6 @@ module RixmlDocument
13
15
  has_many :asset_classes, AssetClass, tag: 'AssetClass', xpath: './'
14
16
  has_many :asset_types, AssetType, tag: 'AssetType', xpath: './'
15
17
  has_many :countries, Country, tag: 'Country', xpath: './'
18
+ has_many :regions, Region, tag: 'Region', xpath: './'
16
19
  end
17
20
  end
@@ -0,0 +1,17 @@
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/yes_no_boolean'
7
+
8
+ module RixmlDocument
9
+ class Region < Node
10
+ include HappyMapper
11
+ tag 'Region'
12
+
13
+ attribute :region_type, RixmlType::NormalizedString, tag: 'regionType'
14
+ attribute :primary_indicator, RixmlType::YesNoBoolean, tag: 'primaryIndicator'
15
+ attribute :publisher_defined_value, RixmlType::NormalizedString, tag: 'publisherDefinedValue'
16
+ end
17
+ 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.4'
5
- s.date = '2017-10-19'
4
+ s.version = '0.5.5'
5
+ s.date = '2017-10-20'
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.4
4
+ version: 0.5.5
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-19 00:00:00.000000000 Z
12
+ date: 2017-10-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -174,6 +174,7 @@ files:
174
174
  - lib/rixml_document/product_category.rb
175
175
  - lib/rixml_document/product_classifications.rb
176
176
  - lib/rixml_document/product_details.rb
177
+ - lib/rixml_document/region.rb
177
178
  - lib/rixml_document/research.rb
178
179
  - lib/rixml_document/resource.rb
179
180
  - lib/rixml_document/rixml_type/normalized_string.rb