forward-calendar 0.7.1 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bac59fa9893ecc8d053f156a7d12ef0a04003a9
4
- data.tar.gz: 2b418fbf194d8506cd83ccd79fe542565da034a2
3
+ metadata.gz: 5f1a1c68b4b8e8ae772fe79905bf9cfb9032bd89
4
+ data.tar.gz: 7d13afabec7864e0482688f950eeaaa5d11d9406
5
5
  SHA512:
6
- metadata.gz: 5fe5e2cd74d6f361c277beef088e205e0457f369cc8d1effe6b6b82440bef6fe7f3fa046ab02a3c6461cc9530a9b19061e0b62d805bff3a82590b91009e70cba
7
- data.tar.gz: 5c4dfa8ac51a8aeeca203c7acf4abafcd935000bb9177eaafb83c773c724d904f1e76ea26fa4333a0184e620bc79ad4784b2a7f68b7be928ab6f399a6e0af309
6
+ metadata.gz: 57d1bd77b47cb68070a7e9e4ef20898a438c8454022083d5399dcd8c0c54953b5d334bb01e4697f60976bbf379ba3d3c1944ca6496648c5ab31d51e914b23b06
7
+ data.tar.gz: bdd0e15484d43e9c674d3b49ace937aad2ce6ba4d1adb5d0dce36013e3c985016a6af9ea99d5944a78f265c340d69e63715782e57bbe17b9c9dd17205c82f5dd
@@ -50,6 +50,9 @@ GEM
50
50
  rspec-expectations (3.7.0)
51
51
  diff-lcs (>= 1.2.0, < 2.0)
52
52
  rspec-support (~> 3.7.0)
53
+ rspec-its (1.2.0)
54
+ rspec-core (>= 3.0.0)
55
+ rspec-expectations (>= 3.0.0)
53
56
  rspec-mocks (3.7.0)
54
57
  diff-lcs (>= 1.2.0, < 2.0)
55
58
  rspec-support (~> 3.7.0)
@@ -89,10 +92,11 @@ DEPENDENCIES
89
92
  forward-calendar!
90
93
  rake (~> 11.3)
91
94
  rspec (~> 3.6)
95
+ rspec-its
92
96
  rubocop (~> 0.45.0)
93
97
  simplecov
94
98
  simplecov-console
95
99
  webmock (~> 3.0.1)
96
100
 
97
101
  BUNDLED WITH
98
- 1.14.6
102
+ 1.16.1
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'forward-calendar'
5
- s.version = '0.7.1'
6
- s.date = '2018-07-13'
5
+ s.version = '0.8.0'
6
+ s.date = '2018-09-07'
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'
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.add_development_dependency 'bundler', '~> 1.12'
19
19
  s.add_development_dependency 'rspec', '~> 3.6'
20
+ s.add_development_dependency 'rspec-its'
20
21
  s.add_development_dependency 'rake', '~> 11.3'
21
22
  s.add_development_dependency 'rubocop', '~> 0.45.0'
22
23
  s.add_development_dependency 'webmock', '~> 3.0.1'
@@ -3,7 +3,7 @@
3
3
  require 'happymapper'
4
4
  require_relative 'node'
5
5
  require_relative 'identifier'
6
- require_relative 'company_participants'
6
+ require_relative 'participant'
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_one :company_participants, CompanyParticipants, tag: 'companyParticipants'
14
+ has_many :participants, Participant, tag: 'participant'
15
15
 
16
16
  element :name, String, tag: 'companyName'
17
17
  element :is_public, Boolean, tag: 'isPublic'
@@ -4,9 +4,9 @@ require 'happymapper'
4
4
  require_relative 'node'
5
5
  require_relative './location'
6
6
  require_relative './company'
7
+ require_relative './sector'
7
8
  require_relative './entitlement_group'
8
- require_relative './broker_participants'
9
- require_relative './third_party_participants'
9
+ require_relative './participant'
10
10
  require_relative './helper/normalized_string'
11
11
 
12
12
  module ForwardCalendar
@@ -17,8 +17,9 @@ module ForwardCalendar
17
17
  has_many :locations, Location, tag: 'eventLocation'
18
18
  has_many :entitlement_groups, EntitlementGroup, tag: 'entitlementGroup'
19
19
  has_many :companies, Company, tag: 'company', xpath: 'companies'
20
- has_one :broker_participants, BrokerParticipants, tag: 'brokerParticipants', xpath: '.'
21
- has_one :third_party_participants, ThirdPartyParticipants, tag: 'thirdPartyParticipants', xpath: '.'
20
+ has_many :broker_participants, Participant, tag: 'participant', xpath: 'brokerParticipants'
21
+ has_many :third_party_participants, Participant, tag: 'participant', xpath: 'thirdPartyParticipants'
22
+ has_many :sectors, Sector, tag: 'sector', xpath: 'sectors'
22
23
 
23
24
  element :id, Integer, tag: 'eventID'
24
25
  element :type, Helper::NormalizedString, tag: 'eventType'
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'happymapper'
4
+ require_relative 'node'
5
+
6
+ module ForwardCalendar
7
+ class Sector < Node
8
+ include HappyMapper
9
+ tag 'sector'
10
+
11
+ attribute :description, String
12
+ content :value, Integer
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.7.1
4
+ version: 0.8.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-07-13 00:00:00.000000000 Z
11
+ date: 2018-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-its
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -183,9 +197,7 @@ files:
183
197
  - lib/forward-calendar.rb
184
198
  - lib/forward_calendar.rb
185
199
  - lib/forward_calendar/address.rb
186
- - lib/forward_calendar/broker_participants.rb
187
200
  - lib/forward_calendar/company.rb
188
- - lib/forward_calendar/company_participants.rb
189
201
  - lib/forward_calendar/entitlement_group.rb
190
202
  - lib/forward_calendar/event.rb
191
203
  - lib/forward_calendar/forward_calendar.rb
@@ -200,7 +212,7 @@ files:
200
212
  - lib/forward_calendar/node.rb
201
213
  - lib/forward_calendar/participant.rb
202
214
  - lib/forward_calendar/person.rb
203
- - lib/forward_calendar/third_party_participants.rb
215
+ - lib/forward_calendar/sector.rb
204
216
  - lib/forward_calendar/updated.rb
205
217
  - release
206
218
  homepage: https://github.com/AlphaExchange/forward-calendar-rb
@@ -223,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
235
  version: '0'
224
236
  requirements: []
225
237
  rubyforge_project:
226
- rubygems_version: 2.5.2
238
+ rubygems_version: 2.6.11
227
239
  signing_key:
228
240
  specification_version: 4
229
241
  summary: Forward Calendar XML parser
@@ -1,14 +0,0 @@
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
@@ -1,14 +0,0 @@
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
@@ -1,14 +0,0 @@
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