forward-calendar 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/forward-calendar.gemspec +2 -2
- data/lib/forward_calendar/event.rb +1 -1
- data/lib/forward_calendar/forward_calendar.rb +2 -1
- 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: 1bac59fa9893ecc8d053f156a7d12ef0a04003a9
|
4
|
+
data.tar.gz: 2b418fbf194d8506cd83ccd79fe542565da034a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fe5e2cd74d6f361c277beef088e205e0457f369cc8d1effe6b6b82440bef6fe7f3fa046ab02a3c6461cc9530a9b19061e0b62d805bff3a82590b91009e70cba
|
7
|
+
data.tar.gz: 5c4dfa8ac51a8aeeca203c7acf4abafcd935000bb9177eaafb83c773c724d904f1e76ea26fa4333a0184e620bc79ad4784b2a7f68b7be928ab6f399a6e0af309
|
data/forward-calendar.gemspec
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'forward-calendar'
|
5
|
-
s.version = '0.7.
|
6
|
-
s.date = '2018-07-
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|