seatsio 48.3.0 → 48.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +15 -0
- data/Gemfile.lock +5 -3
- data/README.md +9 -0
- data/lib/seatsio/charts.rb +8 -0
- data/lib/seatsio/domain.rb +2 -1
- 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: 99eb2fbbf1aa0abcf8752b8e41dfcdd5008a5d785b59c2eedd98bfad015cf56e
|
4
|
+
data.tar.gz: d49385de3ce04b7d0142248e380afb653680f9e56b80d574c46000757677442d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87b5b2717f52585b1cd0292cbf5098f4cfd2d4056ac57ab72b265ca0ead8f98c5f49dcfdabbc55d5fe9099681720a7fae7049aaed17b2271a2fef2fd8ba099f
|
7
|
+
data.tar.gz: 953e2765d6d999da9eda9ee3d03a0146e9305c5d76e903d64c22c74b81674973070986ba9a679b0be8f7e60cea2df4e54397a41b1a720ecb35d6ce80c9d6b32c
|
@@ -24,6 +24,9 @@ jobs:
|
|
24
24
|
with:
|
25
25
|
fetch-depth: 0
|
26
26
|
- uses: fregante/setup-git-user@v2
|
27
|
+
- uses: actions/setup-node@v4
|
28
|
+
with:
|
29
|
+
node-version: 20
|
27
30
|
- id: install-zx
|
28
31
|
run: npm i -g zx
|
29
32
|
- id: install-semver-tool
|
@@ -44,3 +47,15 @@ jobs:
|
|
44
47
|
env:
|
45
48
|
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
|
46
49
|
|
50
|
+
notify-slack-failure:
|
51
|
+
runs-on: ubuntu-latest
|
52
|
+
needs: [ release ]
|
53
|
+
if: failure()
|
54
|
+
steps:
|
55
|
+
- uses: voxmedia/github-action-slack-notify-build@v1
|
56
|
+
with:
|
57
|
+
status: FAILED
|
58
|
+
channel: build_status
|
59
|
+
color: danger
|
60
|
+
env:
|
61
|
+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
seatsio (48.
|
4
|
+
seatsio (48.5.0)
|
5
5
|
rest-client (~> 2.0, >= 2.0.2)
|
6
6
|
|
7
7
|
GEM
|
@@ -27,13 +27,15 @@ GEM
|
|
27
27
|
minitest (>= 5.15.0)
|
28
28
|
netrc (0.11.0)
|
29
29
|
public_suffix (5.0.4)
|
30
|
-
rake (13.1
|
30
|
+
rake (13.2.1)
|
31
31
|
rest-client (2.1.0)
|
32
32
|
http-accept (>= 1.7.0, < 2.0)
|
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.2.
|
36
|
+
rexml (3.2.8)
|
37
|
+
strscan (>= 3.0.9)
|
38
|
+
strscan (3.1.0)
|
37
39
|
unf (0.1.4)
|
38
40
|
unf_ext
|
39
41
|
unf_ext (0.0.7.7)
|
data/README.md
CHANGED
@@ -110,6 +110,15 @@ category_list.each_with_index do |category, index|
|
|
110
110
|
end
|
111
111
|
```
|
112
112
|
|
113
|
+
### Updating a category
|
114
|
+
|
115
|
+
```ruby
|
116
|
+
require('seatsio')
|
117
|
+
client = Seatsio::Client.new(Seatsio::Region.EU(), "my-company-admin-key", "my-workspace-public-key")
|
118
|
+
@seatsio.charts.update_category(chart_key: '<the chart key>', category_key: '<the category key>', label: "New label", color: "#bbbbbb", accessible: true)
|
119
|
+
```
|
120
|
+
|
121
|
+
|
113
122
|
### Listing all charts
|
114
123
|
|
115
124
|
```ruby
|
data/lib/seatsio/charts.rb
CHANGED
@@ -51,6 +51,14 @@ module Seatsio
|
|
51
51
|
Category.create_list(response['categories'])
|
52
52
|
end
|
53
53
|
|
54
|
+
def update_category(chart_key:, category_key:, label: nil, color: nil, accessible: nil)
|
55
|
+
payload = {}
|
56
|
+
payload['label'] = label if label != nil
|
57
|
+
payload['color'] = color if color != nil
|
58
|
+
payload['accessible'] = accessible if accessible != nil
|
59
|
+
@http_client.post("/charts/#{chart_key}/categories/#{category_key}", payload)
|
60
|
+
end
|
61
|
+
|
54
62
|
def add_tag(key, tag)
|
55
63
|
@http_client.post("charts/#{key}/tags/#{CGI::escape(tag)}")
|
56
64
|
end
|
data/lib/seatsio/domain.rb
CHANGED
@@ -8,7 +8,7 @@ module Seatsio
|
|
8
8
|
|
9
9
|
attr_reader :id, :key, :status, :name, :published_version_thumbnail_url,
|
10
10
|
:draft_version_thumbnail_url, :events, :tags, :archived,
|
11
|
-
:categories, :validation
|
11
|
+
:categories, :validation, :venue_type
|
12
12
|
|
13
13
|
def initialize(data)
|
14
14
|
@id = data['id']
|
@@ -21,6 +21,7 @@ module Seatsio
|
|
21
21
|
@tags = data['tags']
|
22
22
|
@archived = data['archived']
|
23
23
|
@validation = data['validation']
|
24
|
+
@venue_type = data['venueType']
|
24
25
|
end
|
25
26
|
end
|
26
27
|
|
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: 48.
|
4
|
+
version: 48.5.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-
|
11
|
+
date: 2024-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|