jobcelis 1.2.0 → 1.3.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: 18652c3d3993f4f15832f5f1cce9237793ed75f386a10c7e832fd31c8df77172
4
- data.tar.gz: 64a8e07040230289c044b229f209f390623bc35a0a0b49320c6dc49ce55f0475
3
+ metadata.gz: 14ada6cadbf711ee7cc825f0aff8b70a50b78e1f8d02c89212fc62f0c1f0e710
4
+ data.tar.gz: 20c1f1d0caed65c21c1f7d1b1b0b7401d3e198646173126ffd702a2f00cd0d4c
5
5
  SHA512:
6
- metadata.gz: 2403be576993b276be7803e05e7b79043faac744628e5edd863ce9d7b67df78d811dd7543b85b52af38986514f0170b0273b4dc1c251b969c354eca5660cf73e
7
- data.tar.gz: ab70d923ddd3c55aefda2b9d6b64d5e120e20e0e9adf6072b3913cba800308b9c4c3d0fd58cf502bee6923d4545e62718245c143422262d7f1c8207fe1d968ef
6
+ metadata.gz: b88bc7b7e364e2c9bd96c776dcd172cec1d16abb74855d2592afae4cb7e038d295d55f90f6115158042926e143428e4f0e82e54b58d558bbd9056e021e667625
7
+ data.tar.gz: d9441ab7c13079dc69063679f20e9bd7fffd46de94798a421b0660c0e0a389c7a9e0ba97fb07aa08a576b5565957002e5096131684a05a07ee51cd2425fbdce7
data/LICENSE CHANGED
@@ -1,21 +1,67 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Jobcelis
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Business Source License 1.1
2
+
3
+ Parameters
4
+
5
+ Licensor: Vladimir Celi
6
+ Licensed Work: Jobcelis
7
+ The Licensed Work is (c) 2026 Vladimir Celi.
8
+ Additional Use Grant: You may make production use of the Licensed Work,
9
+ provided your use does not include offering the
10
+ Licensed Work to third parties as a hosted or
11
+ managed service, where the service provides users
12
+ with access to any substantial set of the features
13
+ or functionality of the Licensed Work.
14
+ Change Date: 2030-03-08
15
+ Change License: Apache License, Version 2.0
16
+
17
+ For information about alternative licensing arrangements for the Licensed Work,
18
+ please contact: support@jobcelis.com
19
+
20
+ Notice
21
+
22
+ Business Source License 1.1 (BUSL-1.1)
23
+
24
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
25
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
26
+
27
+ Terms
28
+
29
+ The Licensor hereby grants you the right to copy, modify, create derivative
30
+ works, redistribute, and make non-production use of the Licensed Work. The
31
+ Licensor may make an Additional Use Grant, above, permitting limited
32
+ production use.
33
+
34
+ Effective on the Change Date, or the fourth anniversary of the first publicly
35
+ available distribution of a specific version of the Licensed Work under this
36
+ License, whichever comes first, the Licensor hereby grants you rights under
37
+ the terms of the Change License, and the rights granted in the paragraph
38
+ above terminate.
39
+
40
+ If your use of the Licensed Work does not comply with the requirements
41
+ currently in effect as described in this License, you must purchase a
42
+ commercial license from the Licensor, its affiliated entities, or authorized
43
+ resellers, or you must refrain from using the Licensed Work.
44
+
45
+ All copies of the original and modified Licensed Work, and derivative works
46
+ of the Licensed Work, are subject to this License. This License applies
47
+ separately for each version of the Licensed Work and the Change Date may vary
48
+ for each version of the Licensed Work released by Licensor.
49
+
50
+ You must conspicuously display this License on each original or modified copy
51
+ of the Licensed Work. If you receive the Licensed Work in original or
52
+ modified form from a third party, the terms and conditions set forth in this
53
+ License apply to your use of that work.
54
+
55
+ Any use of the Licensed Work in violation of this License will automatically
56
+ terminate your rights under this License for the current and all other
57
+ versions of the Licensed Work.
58
+
59
+ This License does not grant you any right in any trademark or logo of
60
+ Licensor or its affiliates (provided that you may use a trademark or logo of
61
+ Licensor as expressly required by this License).
62
+
63
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
64
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
65
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
66
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
67
+ TITLE.
data/README.md CHANGED
@@ -248,6 +248,9 @@ topics = client.list_topics
248
248
  # API token
249
249
  token = client.get_token
250
250
  new_token = client.regenerate_token
251
+
252
+ # Limit the token to scopes and client IPs (empty allowed_ips = any IP)
253
+ client.update_token_restrictions(scopes: ["events:read", "events:write"], allowed_ips: ["203.0.113.10"])
251
254
  ```
252
255
 
253
256
  ## Multi-Project Management
@@ -373,4 +376,8 @@ end
373
376
 
374
377
  ## License
375
378
 
376
- MIT
379
+ BSL-1.1 (Business Source License)
380
+
381
+ ## Releasing
382
+
383
+ Bump the version in `jobcelis.gemspec` and `lib/jobcelis.rb` and merge to `main`. The [Release workflow](.github/workflows/release.yml) publishes it to RubyGems and tags the commit. Changes that do not bump the version publish nothing.
@@ -389,6 +389,12 @@ module Jobcelis
389
389
  post("/api/v1/token/regenerate", {})
390
390
  end
391
391
 
392
+ # Limit the API token to scopes and client IPs. Omitted arguments are left
393
+ # unchanged; an empty allowed_ips list means any IP.
394
+ def update_token_restrictions(scopes: nil, allowed_ips: nil)
395
+ patch("/api/v1/token", { scopes: scopes, allowed_ips: allowed_ips }.compact)
396
+ end
397
+
392
398
  # ------------------------------------------------------------------
393
399
  # Projects (multi)
394
400
  # ------------------------------------------------------------------
data/lib/jobcelis.rb CHANGED
@@ -5,5 +5,5 @@ require_relative "jobcelis/webhook_verifier"
5
5
  require_relative "jobcelis/client"
6
6
 
7
7
  module Jobcelis
8
- VERSION = "1.2.0"
8
+ VERSION = "1.3.0"
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobcelis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jobcelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-10 00:00:00.000000000 Z
11
+ date: 2026-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: base64
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.2'
27
41
  description: Ruby client for the Jobcelis API — events, webhooks, jobs, pipelines,
28
42
  and more. Connects to https://jobcelis.com by default.
29
43
  email: support@jobcelis.com
@@ -39,10 +53,10 @@ files:
39
53
  - lib/jobcelis/webhook_verifier.rb
40
54
  homepage: https://jobcelis.com
41
55
  licenses:
42
- - MIT
56
+ - BUSL-1.1
43
57
  metadata:
44
58
  homepage_uri: https://jobcelis.com
45
- source_code_uri: https://github.com/vladimirCeli/jobcelis-ruby
59
+ source_code_uri: https://github.com/jobcelis-team/jobcelis-ruby
46
60
  documentation_uri: https://jobcelis.com/docs
47
61
  post_install_message:
48
62
  rdoc_options: []