forward-calendar 0.4.0 → 0.5.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: cfa5fbf546ed31d4156ed77d5df65b5b12850229
4
- data.tar.gz: 6e8a654f3107a1ae98f58aee5140f3454a59f5cb
3
+ metadata.gz: 10a794f07016f568089c5382a3b820fbd365ef2f
4
+ data.tar.gz: 0c873ea74379ce2eec1ff0f3834fb37f0cecad04
5
5
  SHA512:
6
- metadata.gz: 2b68a5b062c01107dc09498e414db9b32d7588869e0b7d996d79c0268ef4209933425f9f57dac694d58477c7f3951e0089b9a6c39fbeba875930c6241f587c5c
7
- data.tar.gz: da6bbc2a5830acb2274f0f9c7dca06c4e2dfe8acd9214e08a8e03522d1ef1056608f89f237373bb270d0c3887fc106c7cfc62765402d0f3da0d013570b02769d
6
+ metadata.gz: 3997d4145735d06a0fc44b5fe7eb721c307226495d82352d70a4ec926f48e5638b7f0b055c20445d9081acd5569437694f794df22b4e22c4969be2b11c192067
7
+ data.tar.gz: a6c01d50c73282afd63a00557f994d7194a9e33cce3c2bc33cd18722829017d36695833f62d3734009cda217ed20c54ef0c89c1c56796ede01d0c6fbcc7ac8ce
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'forward-calendar'
5
- s.version = '0.4.0'
6
- s.date = '2018-04-10'
5
+ s.version = '0.5.0'
6
+ s.date = '2018-05-15'
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'
@@ -3,6 +3,7 @@
3
3
  require 'happymapper'
4
4
  require_relative 'node'
5
5
  require_relative 'identifier'
6
+ require_relative 'participant'
6
7
 
7
8
  module ForwardCalendar
8
9
  class Company < Node
@@ -10,6 +11,7 @@ module ForwardCalendar
10
11
  tag 'company'
11
12
 
12
13
  has_many :identifiers, Identifier, tag: 'identifier'
14
+ has_many :participants, Participant, tag: 'companyParticipants/participant'
13
15
 
14
16
  element :name, String, tag: 'companyName'
15
17
  element :is_public, Boolean, tag: 'isPublic'
@@ -5,6 +5,7 @@ require_relative 'node'
5
5
  require_relative './location'
6
6
  require_relative './company'
7
7
  require_relative './entitlement_group'
8
+ require_relative './participant'
8
9
  require_relative './helper/normalized_string'
9
10
 
10
11
  module ForwardCalendar
@@ -15,6 +16,7 @@ module ForwardCalendar
15
16
  has_many :locations, Location, tag: 'eventLocation'
16
17
  has_many :entitlement_groups, EntitlementGroup, tag: 'entitlementGroup'
17
18
  has_many :companies, Company, tag: 'company'
19
+ has_many :broker_participants, Participant, tag: 'brokerParticipants/participant'
18
20
 
19
21
  element :id, Integer, tag: 'eventID'
20
22
  element :type, Helper::NormalizedString, tag: 'eventType'
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'happymapper'
4
+ require_relative 'node'
5
+ require_relative 'person'
6
+ require_relative './helper/normalized_string'
7
+
8
+ module ForwardCalendar
9
+ class Participant < Node
10
+ include HappyMapper
11
+ tag 'participant'
12
+
13
+ has_one :person, Person, tag: 'person'
14
+
15
+ element :role, Helper::NormalizedString, tag: 'role'
16
+ end
17
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'happymapper'
4
+ require_relative 'node'
5
+ require_relative './helper/normalized_string'
6
+
7
+ module ForwardCalendar
8
+ class Person < Node
9
+ include HappyMapper
10
+ tag 'person'
11
+
12
+ element :first_name, String, tag: 'firstName'
13
+ element :last_name, String, tag: 'lastName'
14
+ element :email, String, tag: 'email'
15
+ element :phone, String, tag: 'phone'
16
+ element :title, String, tag: 'title'
17
+ end
18
+ 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.0
4
+ version: 0.5.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-04-10 00:00:00.000000000 Z
11
+ date: 2018-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -196,6 +196,8 @@ files:
196
196
  - lib/forward_calendar/location_time.rb
197
197
  - lib/forward_calendar/meeting_type.rb
198
198
  - lib/forward_calendar/node.rb
199
+ - lib/forward_calendar/participant.rb
200
+ - lib/forward_calendar/person.rb
199
201
  - lib/forward_calendar/updated.rb
200
202
  - release
201
203
  homepage: https://github.com/AlphaExchange/forward-calendar-rb