tickethub 0.3.62 → 0.3.63

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: f15bf5130a830d59ee5e3e22f1cf11ea7d6f1a31
4
- data.tar.gz: 8809f4fdc4cf6985714b9a22c921d38b37b7ab8e
3
+ metadata.gz: b9a749cf9eb2dcf290e7ff4577edf82a69c7cfea
4
+ data.tar.gz: d3501110563b555a2b15f82b04670ae0773143a6
5
5
  SHA512:
6
- metadata.gz: ec50e27aee5e6b49e6aff7ae0607dce16e172cbc7d76a5f873276841cbca74e919bc8b2cfa6b2f7411884bb6de6c92673fe0ad8862ef362c1117d3919e03f10e
7
- data.tar.gz: ab63a3cbd7ae89b670b86df3186461267af66a56f75fe68c2718aef650d414cb612c182512994fd388c1a8324ca19d67e276dadcd32a265cd7d8e132c839f098
6
+ metadata.gz: 8dca6c8a41d7215fa0bd9f1b85ef730f03643d3180bbc6f6ef7326fc7839f485e01ae728bc268ef26646a36bceb6f811977c35e22555aabb11b2c32d68f0b914
7
+ data.tar.gz: e4aa9ea79990a8c226e707dec7027ce48d28286302d40c03c7f4489d1efe36b4da34a07bc946dee40b84e5e9378051f0d9703a3a3b025f85c2c16fe42b04706e
@@ -1,7 +1,7 @@
1
1
  module Tickethub
2
2
  class Aggregate
3
3
 
4
- def initialize(collection, group = [])
4
+ def initialize(collection, group)
5
5
  @group = Array group.dup
6
6
  @collection = collection
7
7
  end
@@ -151,6 +151,7 @@ module Tickethub
151
151
  end
152
152
 
153
153
  def aggregate(*group)
154
+ raise ArgumentError, 'group cannot be empty' if group.empty?
154
155
  Tickethub::Aggregate.new self, group
155
156
  end
156
157
 
@@ -30,6 +30,7 @@ module Tickethub
30
30
  require_relative 'supplier/channel'
31
31
  require_relative 'supplier/discount'
32
32
  require_relative 'supplier/partner'
33
+ require_relative 'supplier/session'
33
34
 
34
35
  require_relative 'contact'
35
36
  require_relative 'address'
@@ -64,6 +65,7 @@ module Tickethub
64
65
  collection :channels, Channel
65
66
  collection :discounts, Discount
66
67
  collection :partners, Partner
68
+ collection :sessions, Session
67
69
 
68
70
  association :address, Tickethub::Address
69
71
  association :contact, Tickethub::Contact
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.3.62'
2
+ VERSION = '0.3.63'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tickethub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.62
4
+ version: 0.3.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Morgan