forward-calendar 0.8.2 → 0.9.0
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/forward-calendar.gemspec +2 -2
- data/lib/forward_calendar/broker.rb +14 -0
- data/lib/forward_calendar/event.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c5d06e501810c62eb854a73261273919a6d2437
|
4
|
+
data.tar.gz: 55bc258285ce97544598540ccea091916126fd65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae0dbc79bf9d4ac8e2eb4e274917d6d30661c444947f44c0952b632853ffaec0514cf69d2b7254d19c8a6257311910c0c15400ad0abd9e61292f424a22701a6c
|
7
|
+
data.tar.gz: 1e9bb2cd56df3196f717c548d48486d0a9252d6d898b470dcaaa77f33d7d9a6f07d25c8aafe7801c409e2e368ab20704e2482773bdf97b785c18efeda37de3c7
|
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.
|
6
|
-
s.date = '
|
5
|
+
s.version = '0.9.0'
|
6
|
+
s.date = '2019-03-26'
|
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'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'happymapper'
|
4
|
+
require_relative 'node'
|
5
|
+
|
6
|
+
module ForwardCalendar
|
7
|
+
class Broker < Node
|
8
|
+
include HappyMapper
|
9
|
+
tag 'broker'
|
10
|
+
|
11
|
+
element :name, String, tag: 'orgName'
|
12
|
+
element :id, Integer, tag: 'orgId'
|
13
|
+
end
|
14
|
+
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'happymapper'
|
4
4
|
require_relative 'node'
|
5
|
+
require_relative './broker'
|
5
6
|
require_relative './location'
|
6
7
|
require_relative './company'
|
7
8
|
require_relative './sector'
|
@@ -22,12 +23,12 @@ module ForwardCalendar
|
|
22
23
|
has_many :broker_participants, Participant, tag: 'participant', xpath: 'brokerParticipants'
|
23
24
|
has_many :third_party_participants, Participant, tag: 'participant', xpath: 'thirdPartyParticipants'
|
24
25
|
has_many :sectors, Sector, tag: 'sector', xpath: 'sectors'
|
26
|
+
has_one :broker, Broker, tag: 'broker'
|
25
27
|
|
26
28
|
element :id, Integer, tag: 'eventID'
|
27
29
|
element :type, Helper::NormalizedString, tag: 'eventType'
|
28
30
|
element :title, String, tag: 'eventTitle'
|
29
31
|
element :status, Helper::NormalizedString, tag: 'eventStatus'
|
30
|
-
element :broker, String, tag: 'broker'
|
31
32
|
element :description, String, tag: 'eventDescription'
|
32
33
|
element :start, Date, tag: 'start'
|
33
34
|
element :end, Date, tag: '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.
|
4
|
+
version: 0.9.0
|
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:
|
11
|
+
date: 2019-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- lib/forward-calendar.rb
|
201
201
|
- lib/forward_calendar.rb
|
202
202
|
- lib/forward_calendar/address.rb
|
203
|
+
- lib/forward_calendar/broker.rb
|
203
204
|
- lib/forward_calendar/company.rb
|
204
205
|
- lib/forward_calendar/entitlement_group.rb
|
205
206
|
- lib/forward_calendar/event.rb
|