forward-calendar 0.7.0 → 0.7.1

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: ade9867a25750ddfe6c18f07fe5d568a0014f435
4
- data.tar.gz: 40b0b82438916bc0d71c9f15a12647e80fa8d50b
3
+ metadata.gz: 1bac59fa9893ecc8d053f156a7d12ef0a04003a9
4
+ data.tar.gz: 2b418fbf194d8506cd83ccd79fe542565da034a2
5
5
  SHA512:
6
- metadata.gz: 804651def1c0c4eb3a8f9344d15190d312d6591e8b4449b07e29318534e3e5c2e1fb32ea2fcd19c034bfda462a49e033c11ae3e6391e494223680dd839218b30
7
- data.tar.gz: a1188e33638e2f54f4e7a49e5ac2fd0353da2d62bead8aa2fb7c3ec943395769d451769d88551c063574d23e1c4a50cf404fd666d9428b67da9318b54564ee93
6
+ metadata.gz: 5fe5e2cd74d6f361c277beef088e205e0457f369cc8d1effe6b6b82440bef6fe7f3fa046ab02a3c6461cc9530a9b19061e0b62d805bff3a82590b91009e70cba
7
+ data.tar.gz: 5c4dfa8ac51a8aeeca203c7acf4abafcd935000bb9177eaafb83c773c724d904f1e76ea26fa4333a0184e620bc79ad4784b2a7f68b7be928ab6f399a6e0af309
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'forward-calendar'
5
- s.version = '0.7.0'
6
- s.date = '2018-07-04'
5
+ s.version = '0.7.1'
6
+ s.date = '2018-07-13'
7
7
  s.summary = 'Forward Calendar XML parser'
8
8
  s.description = 'Parser for Forward Calendar XML files'
9
9
  s.homepage = 'https://github.com/AlphaExchange/forward-calendar-rb'
@@ -16,7 +16,7 @@ module ForwardCalendar
16
16
 
17
17
  has_many :locations, Location, tag: 'eventLocation'
18
18
  has_many :entitlement_groups, EntitlementGroup, tag: 'entitlementGroup'
19
- has_many :companies, Company, tag: 'company'
19
+ has_many :companies, Company, tag: 'company', xpath: 'companies'
20
20
  has_one :broker_participants, BrokerParticipants, tag: 'brokerParticipants', xpath: '.'
21
21
  has_one :third_party_participants, ThirdPartyParticipants, tag: 'thirdPartyParticipants', xpath: '.'
22
22
 
@@ -28,7 +28,8 @@ module ForwardCalendar
28
28
  def each_event
29
29
  Nokogiri::XML::Reader(@file).each do |node|
30
30
  next unless node.name == 'event' && node.node_type == Nokogiri::XML::Reader::TYPE_ELEMENT
31
- yield Event.parse(Nokogiri::XML(node.outer_xml), single: true)
31
+ parsed_event = Nokogiri::XML.parse(node.outer_xml).remove_namespaces!
32
+ yield Event.parse(parsed_event, single: true)
32
33
  end
33
34
  end
34
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forward-calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Simões
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-04 00:00:00.000000000 Z
11
+ date: 2018-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler