seatsio 52.6.0 → 52.7.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
  SHA256:
3
- metadata.gz: c7232371511500f0d036b1cb39977a72cc134052f8284b85d994c09d2cdfec53
4
- data.tar.gz: 88e0de7482984f20510c197be93efbfe6d99cd581d896651d856164a78ef531b
3
+ metadata.gz: cb35ede78874f4b8dcacf0804d1bb4c94181cce48b29c36db434dfce325e367b
4
+ data.tar.gz: fd8c471ae28f3a654586c9bec5b8eca388f5754a48255cd12e42ae7b4e698186
5
5
  SHA512:
6
- metadata.gz: aaeccd75d0ea11d6845f18835aecd5c9a6fc980c2fc01ad7e15be53e6755b9e8780f933aa51540cf11d44f662a7eb85c97bedc86cdcee11d6065f6a8b174d4a2
7
- data.tar.gz: 4cb5b98db4a00247219fda645a9f5e5f70e0a4142e841abc79e6adaaec348b674845519a1a18df9a5e55e1ac16b6c2ba562ea718b336cfb7f7726f959bb7b66c
6
+ metadata.gz: 0f2d51c7d0ad01d4e7397c086d8255cdcc52f4d663be95bcb4f78c590f0eea09276477d7953cba736dcca6dceca8b01fe9bf8dc85baab9262ed28510ea7d389b
7
+ data.tar.gz: 467eefee69e64e1d31203c30aeeff342976ba8b4d9f2d455d0833679fb95de7d590403ca3c7e0ff7667c26e7d7953037382ca6d8e71850bc1c96fbf95e188459
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (52.6.0)
4
+ seatsio (52.7.0)
5
5
  base64 (>= 0.2, < 0.4)
6
6
  rest-client (~> 2.0, >= 2.0.2)
7
7
 
@@ -55,13 +55,14 @@ module Seatsio
55
55
  def self.channels_to_request(channels)
56
56
  result = []
57
57
  channels.each do |channel|
58
+ ch = channel.transform_keys(&:to_s)
58
59
  r = {}
59
- r["key"] = channel.key
60
- r["name"] = channel.name
61
- r["color"] = channel.color
62
- r["index"] = channel.index if channel.index != nil
63
- r["objects"] = channel.objects if channel.objects != nil
64
- r["areaPlaces"] = channel.area_places if channel.area_places != nil
60
+ r["key"] = ch["key"]
61
+ r["name"] = ch["name"]
62
+ r["color"] = ch["color"]
63
+ r["index"] = ch["index"] if ch["index"] != nil
64
+ r["objects"] = ch["objects"] if ch["objects"] != nil
65
+ r["areaPlaces"] = ch["areaPlaces"] || ch["area_places"] if (ch["areaPlaces"] || ch["area_places"]) != nil
65
66
  result.push(r)
66
67
  end
67
68
  result
@@ -195,9 +195,10 @@ module Seatsio
195
195
  end
196
196
 
197
197
  class Channel
198
- attr_reader :key, :name, :color, :index, :objects, :area_places
198
+ attr_reader :id, :key, :name, :color, :index, :objects, :area_places
199
199
 
200
- def initialize(key, name, color, index, objects = [], area_places = {})
200
+ def initialize(key, id, name, color, index, objects, area_places)
201
+ @id = id
201
202
  @key = key
202
203
  @name = name
203
204
  @color = color
@@ -206,13 +207,18 @@ module Seatsio
206
207
  @area_places = area_places
207
208
  end
208
209
 
210
+ def area_partition_label(area_label)
211
+ "#{area_label}###{@id}"
212
+ end
213
+
209
214
  def == (other)
215
+ id == other.id &&
210
216
  key == other.key &&
211
- name == other.name &&
212
- color == other.color &&
213
- index == other.index &&
214
- objects == other.objects &&
215
- area_places == other.area_places
217
+ name == other.name &&
218
+ color == other.color &&
219
+ index == other.index &&
220
+ objects == other.objects &&
221
+ area_places == other.area_places
216
222
  end
217
223
 
218
224
  end
@@ -237,7 +243,7 @@ module Seatsio
237
243
  @created_on = parse_date(data['createdOn'])
238
244
  @updated_on = parse_date(data['updatedOn'])
239
245
  @channels = data['channels'].map {
240
- |d| Channel.new(d['key'], d['name'], d['color'], d['index'], d['objects'], d['areaPlaces'])
246
+ |d| Channel.new(d['key'], d['id'], d['name'], d['color'], d['index'], d['objects'], d['areaPlaces'])
241
247
  } if data['channels']
242
248
  @is_top_level_season = data['isTopLevelSeason']
243
249
  @is_partial_season = data['isPartialSeason']
@@ -530,7 +536,7 @@ module Seatsio
530
536
  usage << UsageSummaryForMonth.new(item)
531
537
  end
532
538
  @usage = usage
533
- @usage_cutoff_date = DateTime.iso8601(data['usageCutoffDate'])
539
+ @usage_cutoff_date = DateTime.iso8601(data['usageCutoffDate'])
534
540
  end
535
541
  end
536
542
 
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "52.6.0"
2
+ VERSION = "52.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seatsio
3
3
  version: !ruby/object:Gem::Version
4
- version: 52.6.0
4
+ version: 52.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seats.io
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-21 00:00:00.000000000 Z
11
+ date: 2026-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client