forward-calendar 0.8.2 → 0.9.0

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: 0325e00f6b0d42e5a3ca1b999badacb6b38a4366
4
- data.tar.gz: b0c7956fc29290fb0362ee24dab249400afc46c2
3
+ metadata.gz: 2c5d06e501810c62eb854a73261273919a6d2437
4
+ data.tar.gz: 55bc258285ce97544598540ccea091916126fd65
5
5
  SHA512:
6
- metadata.gz: 603d305c2bc988f9deaa680fe6042f67e5459020525157ed0a7a2f582a73bcca6407b9368ac45b98e31733cfc8c91beaac077d0b5937a9511330124e415ee646
7
- data.tar.gz: f1d56019482f60f87a567b7b88ad9f30f0885e99d40f725b1da8cd8b59e6da7d51f94c674dc53bc8f45d718463527cff29c7386ea6db42d433a020ad6a0f90ea
6
+ metadata.gz: ae0dbc79bf9d4ac8e2eb4e274917d6d30661c444947f44c0952b632853ffaec0514cf69d2b7254d19c8a6257311910c0c15400ad0abd9e61292f424a22701a6c
7
+ data.tar.gz: 1e9bb2cd56df3196f717c548d48486d0a9252d6d898b470dcaaa77f33d7d9a6f07d25c8aafe7801c409e2e368ab20704e2482773bdf97b785c18efeda37de3c7
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'forward-calendar'
5
- s.version = '0.8.2'
6
- s.date = '2018-11-02'
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.8.2
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: 2018-11-02 00:00:00.000000000 Z
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