seatsio 52.5.0 → 52.6.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: 2f26db1ce9db95e8ffa17b2ef37d706606a5ca90c11e0aee854c2ab8752502f1
4
- data.tar.gz: de767f8666182e062734379b9911716eaa3020880c9708872b0a8ec82b53e8c3
3
+ metadata.gz: c7232371511500f0d036b1cb39977a72cc134052f8284b85d994c09d2cdfec53
4
+ data.tar.gz: 88e0de7482984f20510c197be93efbfe6d99cd581d896651d856164a78ef531b
5
5
  SHA512:
6
- metadata.gz: 5f8bd13ee8250cc6ab76c99c862985e2719a95277448c2a20c835c2365d6b72887c336238e2b211f55b6d50a3c1057c18868d2b0d8e6869771676879feccb184
7
- data.tar.gz: fd933cda32717070b3c6bbf77467bb29815f79ae09cdcc6a4c0e4e9d4cf74ffbc45323b5fd9414699cd89214237ab70fdcaae3a39c3488f4afd75e09a04aa0cd
6
+ metadata.gz: aaeccd75d0ea11d6845f18835aecd5c9a6fc980c2fc01ad7e15be53e6755b9e8780f933aa51540cf11d44f662a7eb85c97bedc86cdcee11d6065f6a8b174d4a2
7
+ data.tar.gz: 4cb5b98db4a00247219fda645a9f5e5f70e0a4142e841abc79e6adaaec348b674845519a1a18df9a5e55e1ac16b6c2ba562ea718b336cfb7f7726f959bb7b66c
@@ -11,11 +11,12 @@ jobs:
11
11
 
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
+ fail-fast: false
14
15
  matrix:
15
- ruby-version: ['3.2', '3.4']
16
+ ruby-version: ['3.3', '3.4', '4.0']
16
17
 
17
18
  steps:
18
- - uses: actions/checkout@v2
19
+ - uses: actions/checkout@v4
19
20
  - uses: ruby/setup-ruby@v1
20
21
  with:
21
22
  ruby-version: ${{ matrix.ruby-version }}
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (52.5.0)
4
+ seatsio (52.6.0)
5
5
  base64 (>= 0.2, < 0.4)
6
6
  rest-client (~> 2.0, >= 2.0.2)
7
7
 
@@ -26,16 +26,16 @@ GEM
26
26
  logger
27
27
  mime-types-data (~> 3.2015)
28
28
  mime-types-data (3.2025.0402)
29
- minitest (6.0.3)
29
+ minitest (6.0.6)
30
30
  drb (~> 2.0)
31
31
  prism (~> 1.5)
32
32
  netrc (0.11.0)
33
- parallel (1.27.0)
34
- parallel_tests (5.6.0)
33
+ parallel (2.1.0)
34
+ parallel_tests (5.7.0)
35
35
  parallel
36
36
  prism (1.9.0)
37
37
  public_suffix (7.0.5)
38
- rake (13.3.1)
38
+ rake (13.4.2)
39
39
  rest-client (2.1.0)
40
40
  http-accept (>= 1.7.0, < 2.0)
41
41
  http-cookie (>= 1.0.2, < 2.0)
@@ -53,7 +53,7 @@ PLATFORMS
53
53
  DEPENDENCIES
54
54
  bundler (~> 2.2)
55
55
  minitest (~> 6.0)
56
- parallel_tests (~> 5.6.0)
56
+ parallel_tests (~> 5.7.0)
57
57
  rake (~> 13.0)
58
58
  seatsio!
59
59
  webmock (~> 3.4, >= 3.4.2)
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Build](https://github.com/seatsio/seatsio-ruby/workflows/Build/badge.svg)](https://github.com/seatsio/seatsio-ruby/actions/workflows/build.yml)
4
4
  [![Gem Version](https://badge.fury.io/rb/seatsio.svg)](https://badge.fury.io/rb/seatsio)
5
5
 
6
- This is the official Ruby client library for the [Seats.io V2 REST API](https://docs.seats.io/docs/api-overview), supporting Ruby 3.2+
6
+ This is the official Ruby client library for the [Seats.io V2 REST API](https://docs.seats.io/docs/api-overview), supporting Ruby 3.3 to 4.0
7
7
 
8
8
  ## Versioning
9
9
 
@@ -5,7 +5,7 @@ module Seatsio
5
5
  @http_client = http_client
6
6
  end
7
7
 
8
- def add(event_key:, channel_key:, channel_name:, channel_color:, index: nil, objects: nil)
8
+ def add(event_key:, channel_key:, channel_name:, channel_color:, index: nil, objects: nil, area_places: nil)
9
9
  payload = {
10
10
  key: channel_key,
11
11
  name: channel_name,
@@ -13,6 +13,7 @@ module Seatsio
13
13
  }
14
14
  payload['index'] = index if index != nil
15
15
  payload['objects'] = objects if objects != nil
16
+ payload['areaPlaces'] = area_places if area_places != nil
16
17
  @http_client.post("events/#{event_key}/channels", payload)
17
18
  end
18
19
 
@@ -24,20 +25,27 @@ module Seatsio
24
25
  @http_client.delete("events/#{event_key}/channels/#{channel_key}")
25
26
  end
26
27
 
27
- def update(event_key:, channel_key:, channel_name: nil, channel_color: nil, objects: nil)
28
+ def update(event_key:, channel_key:, channel_name: nil, channel_color: nil, objects: nil, area_places: nil)
28
29
  payload = {}
29
30
  payload['name'] = channel_name if channel_name != nil
30
31
  payload['color'] = channel_color if channel_color != nil
31
32
  payload['objects'] = objects if objects != nil
33
+ payload['areaPlaces'] = area_places if area_places != nil
32
34
  @http_client.post("events/#{event_key}/channels/#{channel_key}", payload)
33
35
  end
34
36
 
35
- def add_objects(event_key:, channel_key:, objects:)
36
- @http_client.post("events/#{event_key}/channels/#{channel_key}/objects", { objects: objects })
37
+ def add_objects(event_key:, channel_key:, objects: nil, area_places: nil)
38
+ payload = {}
39
+ payload['objects'] = objects if objects != nil
40
+ payload['areaPlaces'] = area_places if area_places != nil
41
+ @http_client.post("events/#{event_key}/channels/#{channel_key}/objects", payload)
37
42
  end
38
43
 
39
- def remove_objects(event_key:, channel_key:, objects:)
40
- @http_client.delete("events/#{event_key}/channels/#{channel_key}/objects", { objects: objects })
44
+ def remove_objects(event_key:, channel_key:, objects: nil, area_places: nil)
45
+ payload = {}
46
+ payload['objects'] = objects if objects != nil
47
+ payload['areaPlaces'] = area_places if area_places != nil
48
+ @http_client.delete("events/#{event_key}/channels/#{channel_key}/objects", payload)
41
49
  end
42
50
 
43
51
  def replace(key:, channels:)
@@ -53,6 +61,7 @@ module Seatsio
53
61
  r["color"] = channel.color
54
62
  r["index"] = channel.index if channel.index != nil
55
63
  r["objects"] = channel.objects if channel.objects != nil
64
+ r["areaPlaces"] = channel.area_places if channel.area_places != nil
56
65
  result.push(r)
57
66
  end
58
67
  result
@@ -195,14 +195,15 @@ module Seatsio
195
195
  end
196
196
 
197
197
  class Channel
198
- attr_reader :key, :name, :color, :index, :objects
198
+ attr_reader :key, :name, :color, :index, :objects, :area_places
199
199
 
200
- def initialize(key, name, color, index, objects)
200
+ def initialize(key, name, color, index, objects = [], area_places = {})
201
201
  @key = key
202
202
  @name = name
203
203
  @color = color
204
204
  @index = index
205
205
  @objects = objects
206
+ @area_places = area_places
206
207
  end
207
208
 
208
209
  def == (other)
@@ -210,7 +211,8 @@ module Seatsio
210
211
  name == other.name &&
211
212
  color == other.color &&
212
213
  index == other.index &&
213
- objects == other.objects
214
+ objects == other.objects &&
215
+ area_places == other.area_places
214
216
  end
215
217
 
216
218
  end
@@ -235,7 +237,7 @@ module Seatsio
235
237
  @created_on = parse_date(data['createdOn'])
236
238
  @updated_on = parse_date(data['updatedOn'])
237
239
  @channels = data['channels'].map {
238
- |d| Channel.new(d['key'], d['name'], d['color'], d['index'], d['objects'])
240
+ |d| Channel.new(d['key'], d['name'], d['color'], d['index'], d['objects'], d['areaPlaces'])
239
241
  } if data['channels']
240
242
  @is_top_level_season = data['isTopLevelSeason']
241
243
  @is_partial_season = data['isPartialSeason']
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "52.5.0"
2
+ VERSION = "52.6.0"
3
3
  end
data/seatsio.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.bindir = "exe"
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
+ spec.required_ruby_version = '>= 3.3', '< 4.1'
22
23
 
23
24
  spec.add_runtime_dependency "rest-client", '~> 2.0', '>= 2.0.2'
24
25
  spec.add_runtime_dependency "base64", '>= 0.2', '< 0.4'
@@ -27,5 +28,5 @@ Gem::Specification.new do |spec|
27
28
  spec.add_development_dependency "rake", "~> 13.0"
28
29
  spec.add_development_dependency "minitest", "~> 6.0"
29
30
  spec.add_development_dependency 'webmock', '~> 3.4', '>= 3.4.2'
30
- spec.add_development_dependency 'parallel_tests', '~> 5.6.0'
31
+ spec.add_development_dependency 'parallel_tests', '~> 5.7.0'
31
32
  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.5.0
4
+ version: 52.6.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-04-08 00:00:00.000000000 Z
11
+ date: 2026-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -118,14 +118,14 @@ dependencies:
118
118
  requirements:
119
119
  - - "~>"
120
120
  - !ruby/object:Gem::Version
121
- version: 5.6.0
121
+ version: 5.7.0
122
122
  type: :development
123
123
  prerelease: false
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - "~>"
127
127
  - !ruby/object:Gem::Version
128
- version: 5.6.0
128
+ version: 5.7.0
129
129
  description: This is the official Ruby client library for the Seats.io V2 REST API
130
130
  email:
131
131
  - nahuel@seats.io
@@ -179,7 +179,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - ">="
181
181
  - !ruby/object:Gem::Version
182
- version: '0'
182
+ version: '3.3'
183
+ - - "<"
184
+ - !ruby/object:Gem::Version
185
+ version: '4.1'
183
186
  required_rubygems_version: !ruby/object:Gem::Requirement
184
187
  requirements:
185
188
  - - ">="