forward-calendar 0.6.0 → 0.6.1

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: 32c985d9acd862c082132b88d7338143561841bf
4
- data.tar.gz: 976ea3293615d5ca4fe24909aedf777b3369fb83
3
+ metadata.gz: 48805c64c6b33daa5d8e4f3a609454d7f2ff61d7
4
+ data.tar.gz: 7ecccd71a6e16687bf0841570d77ab2025f62705
5
5
  SHA512:
6
- metadata.gz: aa5a83c5591b1779a6e44000063bfce3f24e163db7ea3f80d1abf536e1ce8c3420d48e0dd319471414d233220ff66b876dcdcce7fc3c23e24c4a3ac37c27a19d
7
- data.tar.gz: e964fbc5fff05faad8926a3cfbba7228874d2d0c70b86a18251053725cb18c7f7c861eb0519bfe178c855a745d6e28c92d885ba468abdcf37eb8c84c7351830a
6
+ metadata.gz: 0ad715dabf41426c51c341747ee254afd778068f614e934ff4fa3a2115e7f181c194e05a34aa45de9d102fe8d5d85ca7d430215c82e1e724fef8bc74f36fb38b
7
+ data.tar.gz: 2609497dad065080e35b2b360911113f3b55be1c4a3e629d05f00e8424b036fb19e6b8af2c6afcd02891a49d82cf570d7ac53f52a7e074727167426df3caea3b
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'forward-calendar'
5
- s.version = '0.6.0'
6
- s.date = '2018-05-21'
5
+ s.version = '0.6.1'
6
+ s.date = '2018-05-29'
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
+ require_relative 'participant'
6
+
7
+ module ForwardCalendar
8
+ class BrokerParticipants < Node
9
+ include HappyMapper
10
+ tag 'brokerParticipants'
11
+
12
+ has_many :participants, Participant, tag: 'participant', xpath: './'
13
+ end
14
+ end
@@ -3,7 +3,7 @@
3
3
  require 'happymapper'
4
4
  require_relative 'node'
5
5
  require_relative 'identifier'
6
- require_relative 'participant'
6
+ require_relative 'company_participants'
7
7
 
8
8
  module ForwardCalendar
9
9
  class Company < Node
@@ -11,7 +11,7 @@ module ForwardCalendar
11
11
  tag 'company'
12
12
 
13
13
  has_many :identifiers, Identifier, tag: 'identifier'
14
- has_many :participants, Participant, tag: 'companyParticipants/participant'
14
+ has_one :company_participants, CompanyParticipants, tag: 'companyParticipants'
15
15
 
16
16
  element :name, String, tag: 'companyName'
17
17
  element :is_public, Boolean, tag: 'isPublic'
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'happymapper'
4
+ require_relative 'node'
5
+ require_relative 'participant'
6
+
7
+ module ForwardCalendar
8
+ class CompanyParticipants < Node
9
+ include HappyMapper
10
+ tag 'companyParticipants'
11
+
12
+ has_many :participants, Participant, tag: 'participant', xpath: './'
13
+ end
14
+ end
@@ -5,7 +5,8 @@ require_relative 'node'
5
5
  require_relative './location'
6
6
  require_relative './company'
7
7
  require_relative './entitlement_group'
8
- require_relative './participant'
8
+ require_relative './broker_participants'
9
+ require_relative './third_party_participants'
9
10
  require_relative './helper/normalized_string'
10
11
 
11
12
  module ForwardCalendar
@@ -16,8 +17,8 @@ module ForwardCalendar
16
17
  has_many :locations, Location, tag: 'eventLocation'
17
18
  has_many :entitlement_groups, EntitlementGroup, tag: 'entitlementGroup'
18
19
  has_many :companies, Company, tag: 'company'
19
- has_many :broker_participants, Participant, tag: 'brokerParticipants/participant'
20
- has_many :third_party_participants, Participant, tag: 'thirdPartyParticipants/participant'
20
+ has_one :broker_participants, BrokerParticipants, tag: 'brokerParticipants', xpath: '.'
21
+ has_one :third_party_participants, ThirdPartyParticipants, tag: 'thirdPartyParticipants', xpath: '.'
21
22
 
22
23
  element :id, Integer, tag: 'eventID'
23
24
  element :type, Helper::NormalizedString, tag: 'eventType'
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'happymapper'
4
+ require_relative 'node'
5
+ require_relative 'participant'
6
+
7
+ module ForwardCalendar
8
+ class ThirdPartyParticipants < Node
9
+ include HappyMapper
10
+ tag 'thirdPartyParticipants'
11
+
12
+ has_many :participants, Participant, tag: 'participant', xpath: './'
13
+ end
14
+ 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.6.0
4
+ version: 0.6.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-05-21 00:00:00.000000000 Z
11
+ date: 2018-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -183,7 +183,9 @@ files:
183
183
  - lib/forward-calendar.rb
184
184
  - lib/forward_calendar.rb
185
185
  - lib/forward_calendar/address.rb
186
+ - lib/forward_calendar/broker_participants.rb
186
187
  - lib/forward_calendar/company.rb
188
+ - lib/forward_calendar/company_participants.rb
187
189
  - lib/forward_calendar/entitlement_group.rb
188
190
  - lib/forward_calendar/event.rb
189
191
  - lib/forward_calendar/forward_calendar.rb
@@ -198,6 +200,7 @@ files:
198
200
  - lib/forward_calendar/node.rb
199
201
  - lib/forward_calendar/participant.rb
200
202
  - lib/forward_calendar/person.rb
203
+ - lib/forward_calendar/third_party_participants.rb
201
204
  - lib/forward_calendar/updated.rb
202
205
  - release
203
206
  homepage: https://github.com/AlphaExchange/forward-calendar-rb