seatsio 48.7.0 → 48.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44c226c772bca0a0c6087ad8860cec799ecdb45103259352d70748b75527d985
4
- data.tar.gz: 865f4fd84a6bd9981ce0115db2d0680ae5e0cdaa72a845c9c0fb5d862dc9e7f4
3
+ metadata.gz: 265673654065736f58842c8b4583375cabcc228612812b3174f50578298c5137
4
+ data.tar.gz: 04de0076bd1f3552a4dbcc3ee52ee998e973df1a5bc0d92f48052b2d5be4bbe2
5
5
  SHA512:
6
- metadata.gz: 7d4266b4a4267f1101e77dc780be168bf7cb353ac8f681292540b0926382c69b3f3370939cd7f11e08754e61be57c49549ed5dc1d7d1e8e72d1159a134b84825
7
- data.tar.gz: ae7e73608e0ad48ba6235667fc72173554e91835eb35323895720085d5573027a79353f0aa8abbe0ed9c71b05e6f01d7b47e98ad3c3073101e194066d7a77fbc
6
+ metadata.gz: 21d5ab48516a7a740fc081cce956a8dbc19c343f5f9ddb122e106d02dde86c42dd31df1b2f561b4d6136726435a4467ca394642aacab1ae9880225ffb38e4461
7
+ data.tar.gz: 3076a4bd78fda08d4e41c4433aa10ea89e6cff162d23b33212f704db1426fedb2baf8411a588454a2cf3718c1c63a6d02bf5eb368ac67a76adae2540104673c6
@@ -27,13 +27,11 @@ jobs:
27
27
  - uses: actions/setup-node@v4
28
28
  with:
29
29
  node-version: 20
30
- - id: install-zx
31
- run: npm i -g zx
32
- - id: install-semver-tool
33
- run: |
34
- wget -O /usr/local/bin/semver https://raw.githubusercontent.com/fsaintjacques/semver-tool/master/src/semver
35
- chmod +x /usr/local/bin/semver
36
- - run: zx ./release.mjs -v $VERSION_TO_BUMP
30
+ registry-url: https://registry.npmjs.org/
31
+ - name: Install dependencies
32
+ run: yarn add -D -E zx@8.1.4 semver@7.6.3
33
+ - name: Run release script
34
+ run: yarn zx ./release.mjs -v $VERSION_TO_BUMP
37
35
  env:
38
36
  VERSION_TO_BUMP: ${{ inputs.versionToBump }}
39
37
  GH_TOKEN: ${{ github.token }}
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (48.7.0)
4
+ seatsio (48.8.0)
5
5
  rest-client (~> 2.0, >= 2.0.2)
6
6
 
7
7
  GEM
@@ -21,7 +21,7 @@ GEM
21
21
  mime-types (3.5.2)
22
22
  mime-types-data (~> 3.2015)
23
23
  mime-types-data (3.2024.0702)
24
- minitest (5.24.1)
24
+ minitest (5.25.1)
25
25
  netrc (0.11.0)
26
26
  parallel (1.25.1)
27
27
  parallel_tests (4.7.1)
@@ -33,7 +33,7 @@ GEM
33
33
  http-cookie (>= 1.0.2, < 2.0)
34
34
  mime-types (>= 1.16, < 4.0)
35
35
  netrc (~> 0.8)
36
- rexml (3.3.1)
36
+ rexml (3.3.6)
37
37
  strscan
38
38
  strscan (3.1.0)
39
39
  webmock (3.23.1)
@@ -1,4 +1,5 @@
1
- def create_change_best_available_object_status_request(number, status, categories, zone, extra_data, ticket_types, hold_token, order_id, keep_extra_data, ignore_channels, channel_keys, try_to_prevent_orphan_seats)
1
+ def create_change_best_available_object_status_request(number, status, categories, zone, extra_data, ticket_types, hold_token, order_id, keep_extra_data,
2
+ ignore_channels, channel_keys, try_to_prevent_orphan_seats, accessible_seats)
2
3
  result = {}
3
4
  best_available = {'number': number}
4
5
  best_available[:categories] = categories if categories != nil
@@ -6,6 +7,7 @@ def create_change_best_available_object_status_request(number, status, categorie
6
7
  best_available[:extraData] = extra_data if extra_data != nil
7
8
  best_available[:ticketTypes] = ticket_types if ticket_types != nil
8
9
  best_available[:tryToPreventOrphanSeats] = try_to_prevent_orphan_seats if try_to_prevent_orphan_seats != nil
10
+ best_available[:accessibleSeats] = accessible_seats if accessible_seats != nil
9
11
  result[:status] = status
10
12
  result[:bestAvailable] = best_available
11
13
  result[:holdToken] = hold_token if hold_token != nil
@@ -98,8 +98,8 @@ module Seatsio
98
98
  change_object_status(event_key_or_keys, object_or_objects, Seatsio::EventObjectInfo::HELD, hold_token: hold_token, order_id: order_id, keep_extra_data: keep_extra_data, ignore_channels: ignore_channels, channel_keys: channel_keys)
99
99
  end
100
100
 
101
- def change_best_available_object_status(key, number, status, categories: nil, hold_token: nil, extra_data: nil, ticket_types: nil, order_id: nil, keep_extra_data: nil, ignore_channels: nil, channel_keys: nil, try_to_prevent_orphan_seats: nil, zone: nil)
102
- request = create_change_best_available_object_status_request(number, status, categories, zone, extra_data, ticket_types, hold_token, order_id, keep_extra_data, ignore_channels, channel_keys, try_to_prevent_orphan_seats)
101
+ def change_best_available_object_status(key, number, status, categories: nil, hold_token: nil, extra_data: nil, ticket_types: nil, order_id: nil, keep_extra_data: nil, ignore_channels: nil, channel_keys: nil, try_to_prevent_orphan_seats: nil, zone: nil, accessible_seats: nil)
102
+ request = create_change_best_available_object_status_request(number, status, categories, zone, extra_data, ticket_types, hold_token, order_id, keep_extra_data, ignore_channels, channel_keys, try_to_prevent_orphan_seats, accessible_seats)
103
103
  response = @http_client.post("events/#{key}/actions/change-object-status", request)
104
104
  BestAvailableObjects.new(response)
105
105
  end
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "48.7.0"
2
+ VERSION = "48.8.0"
3
3
  end
data/release.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env zx
2
2
 
3
3
  /*
4
- * Script to release the seats.io java lib.
4
+ * Script to release the seats.io ruby lib.
5
5
  * - changes the version number in README.md
6
6
  * - changes the version number in build.gradle
7
7
  * - creates the release in Gihub (using gh cli)
@@ -10,15 +10,15 @@
10
10
  * Prerequisites:
11
11
  * - zx installed (https://github.com/google/zx)
12
12
  * - gh cli installed (https://cli.github.com/)
13
- * - semver cli installed (https://github.com/fsaintjacques/semver-tool)
14
13
  *
15
14
  * Usage:
16
- * zx ./release.mjs -v major/minor -n "release notes"
15
+ * yarn zx ./release.mjs -v major/minor -n "release notes"
17
16
  * */
18
17
 
19
18
  // don't output the commands themselves
20
19
  $.verbose = false
21
20
 
21
+ const semver = require('semver')
22
22
  const versionToBump = getVersionToBump()
23
23
  const latestReleaseTag = await fetchLatestReleasedVersionNumber()
24
24
  const latestVersion = removeLeadingV(latestReleaseTag)
@@ -49,7 +49,7 @@ async function fetchLatestReleasedVersionNumber() {
49
49
  }
50
50
 
51
51
  async function determineNextVersionNumber(previous) {
52
- return (await $`semver bump ${versionToBump} ${previous}`).stdout.trim()
52
+ return semver.inc(previous, versionToBump)
53
53
  }
54
54
 
55
55
  async function bumpVersionInFiles() {
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: 48.7.0
4
+ version: 48.8.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: 2024-07-18 00:00:00.000000000 Z
11
+ date: 2024-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client