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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/seatsio/channels.rb +7 -6
- data/lib/seatsio/domain.rb +15 -9
- data/lib/seatsio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb35ede78874f4b8dcacf0804d1bb4c94181cce48b29c36db434dfce325e367b
|
|
4
|
+
data.tar.gz: fd8c471ae28f3a654586c9bec5b8eca388f5754a48255cd12e42ae7b4e698186
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f2d51c7d0ad01d4e7397c086d8255cdcc52f4d663be95bcb4f78c590f0eea09276477d7953cba736dcca6dceca8b01fe9bf8dc85baab9262ed28510ea7d389b
|
|
7
|
+
data.tar.gz: 467eefee69e64e1d31203c30aeeff342976ba8b4d9f2d455d0833679fb95de7d590403ca3c7e0ff7667c26e7d7953037382ca6d8e71850bc1c96fbf95e188459
|
data/Gemfile.lock
CHANGED
data/lib/seatsio/channels.rb
CHANGED
|
@@ -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"] =
|
|
60
|
-
r["name"] =
|
|
61
|
-
r["color"] =
|
|
62
|
-
r["index"] =
|
|
63
|
-
r["objects"] =
|
|
64
|
-
r["areaPlaces"] =
|
|
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
|
data/lib/seatsio/domain.rb
CHANGED
|
@@ -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
|
|
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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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 =
|
|
539
|
+
@usage_cutoff_date = DateTime.iso8601(data['usageCutoffDate'])
|
|
534
540
|
end
|
|
535
541
|
end
|
|
536
542
|
|
data/lib/seatsio/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-05-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|