openfga 0.1.4 → 0.1.5
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/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/VERSION.txt +1 -1
- data/lib/openfga/api_client.rb +1 -1
- data/lib/openfga/configuration.rb +1 -1
- data/lib/openfga/constants.rb +2 -2
- data/lib/openfga/version.rb +1 -1
- data/lib/openfga.rb +1 -1
- data/openfga.gemspec +3 -4
- metadata +5 -104
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f1819e501615a6fbe2c7e44925db84079f439519ce0d4dcec53313700fe2ed7
|
|
4
|
+
data.tar.gz: 9b041cd8c4bbb9ecc139d9f1e871e5f9cd981bedbd9596599c7a1751e830f421
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec920ade2612e9082d36baeec80a0ca061e4bd87f6964c056508198cc9be87c21bc27ca24f392e51ac395f0af20b43833685e190b2198cb2ab1874b890bad3a7
|
|
7
|
+
data.tar.gz: 5153c2eaf568a620e55a6cbfb412d0c901b577679fd736e184f13564b2dfba438534a180f0d458c7f578a7afc78b35d6e5930e9e5856465bcc1028af845bdb61
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.5](https://github.com/carlastabile/openfga-ruby-sdk/compare/openfga/v0.1.4...openfga/v0.1.5) (2026-03-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* require version before constants ([#19](https://github.com/carlastabile/openfga-ruby-sdk/issues/19)) ([1726479](https://github.com/carlastabile/openfga-ruby-sdk/commit/17264797fd12f9b11d3f26b54d9d91a43a3253fb))
|
|
9
|
+
|
|
3
10
|
## [0.1.4](https://github.com/carlastabile/openfga-ruby-sdk/compare/openfga/v0.1.3...openfga/v0.1.4) (2026-03-05)
|
|
4
11
|
|
|
5
12
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://openfga.dev/community)
|
|
7
7
|
[](https://x.com/openfga)
|
|
8
8
|
|
|
9
|
-
This is
|
|
9
|
+
This is community-driven Ruby SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).
|
|
10
10
|
|
|
11
11
|
## Table of Contents
|
|
12
12
|
|
|
@@ -771,6 +771,7 @@ body = {
|
|
|
771
771
|
response = fga_client.write_assertions(body)
|
|
772
772
|
```
|
|
773
773
|
|
|
774
|
+
|
|
774
775
|
### Retries
|
|
775
776
|
|
|
776
777
|
|
data/VERSION.txt
CHANGED
data/lib/openfga/api_client.rb
CHANGED
|
@@ -35,7 +35,7 @@ module OpenFga
|
|
|
35
35
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
36
36
|
def initialize(config = Configuration.default)
|
|
37
37
|
@config = config
|
|
38
|
-
@user_agent =
|
|
38
|
+
@user_agent = 'openfga-sdk ruby/0.1.4'
|
|
39
39
|
@default_headers = {
|
|
40
40
|
'Content-Type' => 'application/json',
|
|
41
41
|
'User-Agent' => @user_agent
|
|
@@ -120,7 +120,7 @@ module OpenFga
|
|
|
120
120
|
attr_accessor :ssl_verify
|
|
121
121
|
|
|
122
122
|
### TLS/SSL setting
|
|
123
|
-
# Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/
|
|
123
|
+
# Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/3.4.1/exts/openssl/OpenSSL.html)
|
|
124
124
|
#
|
|
125
125
|
# @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
|
|
126
126
|
#
|
data/lib/openfga/constants.rb
CHANGED
|
@@ -13,7 +13,7 @@ module OpenFga
|
|
|
13
13
|
SDK_VERSION = OpenFga::VERSION
|
|
14
14
|
|
|
15
15
|
# User agent used in HTTP requests.
|
|
16
|
-
USER_AGENT =
|
|
16
|
+
USER_AGENT = 'openfga-sdk ruby/0.1.4'
|
|
17
17
|
|
|
18
18
|
# Example API domain for documentation/tests.
|
|
19
19
|
SAMPLE_BASE_DOMAIN = 'fga.example'
|
|
@@ -30,7 +30,7 @@ module OpenFga
|
|
|
30
30
|
# Retry configuration
|
|
31
31
|
|
|
32
32
|
# Maximum allowed number of retries for HTTP requests.
|
|
33
|
-
RETRY_MAX_ALLOWED_NUMBER =
|
|
33
|
+
RETRY_MAX_ALLOWED_NUMBER = 15
|
|
34
34
|
|
|
35
35
|
# Default maximum number of retries for HTTP requests.
|
|
36
36
|
DEFAULT_MAX_RETRY = 3
|
data/lib/openfga/version.rb
CHANGED
data/lib/openfga.rb
CHANGED
|
@@ -12,11 +12,11 @@ Generator version: 6.4.0
|
|
|
12
12
|
=end
|
|
13
13
|
|
|
14
14
|
# Common files
|
|
15
|
+
require 'openfga/version'
|
|
15
16
|
require 'openfga/constants'
|
|
16
17
|
require 'openfga/api_client'
|
|
17
18
|
require 'openfga/api_error'
|
|
18
19
|
require 'openfga/api_model_base'
|
|
19
|
-
require 'openfga/version'
|
|
20
20
|
require 'openfga/configuration'
|
|
21
21
|
|
|
22
22
|
require 'openfga/imports'
|
data/openfga.gemspec
CHANGED
|
@@ -20,10 +20,10 @@ Gem::Specification.new do |s|
|
|
|
20
20
|
s.name = 'openfga'
|
|
21
21
|
s.version = OpenFga::VERSION
|
|
22
22
|
s.platform = Gem::Platform::RUBY
|
|
23
|
-
s.authors = ['
|
|
23
|
+
s.authors = ['Carla Urrea Stabile, Steven Hobbs']
|
|
24
24
|
s.email = ['contact@openfga.dev']
|
|
25
|
-
s.homepage = 'https://openfga
|
|
26
|
-
s.summary = 'This is
|
|
25
|
+
s.homepage = 'https://github.com/carlastabile/openfga-ruby-sdk'
|
|
26
|
+
s.summary = 'This is community-driven Ruby SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).'
|
|
27
27
|
s.description = 'A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.'
|
|
28
28
|
s.license = 'Apache-2.0'
|
|
29
29
|
s.required_ruby_version = '>=3.2'
|
|
@@ -37,7 +37,6 @@ Gem::Specification.new do |s|
|
|
|
37
37
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
38
38
|
|
|
39
39
|
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
|
40
|
-
s.test_files = `find spec/*`.split("\n")
|
|
41
40
|
s.executables = []
|
|
42
41
|
s.require_paths = ['lib']
|
|
43
42
|
end
|
metadata
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openfga
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Carla Urrea Stabile, Steven Hobbs
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
@@ -4263,7 +4263,7 @@ files:
|
|
|
4263
4263
|
- vendor/bundle/ruby/3.2.0/specifications/unicode-emoji-4.2.0.gemspec
|
|
4264
4264
|
- vendor/bundle/ruby/3.2.0/specifications/uri-1.1.1.gemspec
|
|
4265
4265
|
- vendor/bundle/ruby/3.2.0/specifications/webmock-3.25.2.gemspec
|
|
4266
|
-
homepage: https://openfga
|
|
4266
|
+
homepage: https://github.com/carlastabile/openfga-ruby-sdk
|
|
4267
4267
|
licenses:
|
|
4268
4268
|
- Apache-2.0
|
|
4269
4269
|
metadata: {}
|
|
@@ -4283,105 +4283,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
4283
4283
|
requirements: []
|
|
4284
4284
|
rubygems_version: 4.0.7
|
|
4285
4285
|
specification_version: 4
|
|
4286
|
-
summary: This is
|
|
4286
|
+
summary: This is community-driven Ruby SDK for OpenFGA. It provides a wrapper around
|
|
4287
4287
|
the [OpenFGA API definition](https://openfga.dev/api).
|
|
4288
|
-
test_files:
|
|
4289
|
-
- spec/api/open_fga_api_spec.rb
|
|
4290
|
-
- spec/api_client_spec.rb
|
|
4291
|
-
- spec/client/openfga_client_spec.rb
|
|
4292
|
-
- spec/configuration_spec.rb
|
|
4293
|
-
- spec/fixtures/expand_response.json
|
|
4294
|
-
- spec/fixtures/expand_with_contextual_tuples_response.json
|
|
4295
|
-
- spec/fixtures/read_authorization_model_response.json
|
|
4296
|
-
- spec/fixtures/read_authorization_models_response.json
|
|
4297
|
-
- spec/fixtures/write_authorization_model_body.json
|
|
4298
|
-
- spec/models/aborted_message_response_spec.rb
|
|
4299
|
-
- spec/models/any_spec.rb
|
|
4300
|
-
- spec/models/assertion_spec.rb
|
|
4301
|
-
- spec/models/assertion_tuple_key_spec.rb
|
|
4302
|
-
- spec/models/auth_error_code_spec.rb
|
|
4303
|
-
- spec/models/authorization_model_spec.rb
|
|
4304
|
-
- spec/models/batch_check_item_spec.rb
|
|
4305
|
-
- spec/models/batch_check_request_spec.rb
|
|
4306
|
-
- spec/models/batch_check_response_spec.rb
|
|
4307
|
-
- spec/models/batch_check_single_result_spec.rb
|
|
4308
|
-
- spec/models/check_error_spec.rb
|
|
4309
|
-
- spec/models/check_request_spec.rb
|
|
4310
|
-
- spec/models/check_request_tuple_key_spec.rb
|
|
4311
|
-
- spec/models/check_response_spec.rb
|
|
4312
|
-
- spec/models/computed_spec.rb
|
|
4313
|
-
- spec/models/condition_metadata_spec.rb
|
|
4314
|
-
- spec/models/condition_param_type_ref_spec.rb
|
|
4315
|
-
- spec/models/condition_spec.rb
|
|
4316
|
-
- spec/models/consistency_preference_spec.rb
|
|
4317
|
-
- spec/models/contextual_tuple_keys_spec.rb
|
|
4318
|
-
- spec/models/create_store_request_spec.rb
|
|
4319
|
-
- spec/models/create_store_response_spec.rb
|
|
4320
|
-
- spec/models/difference_spec.rb
|
|
4321
|
-
- spec/models/error_code_spec.rb
|
|
4322
|
-
- spec/models/expand_request_spec.rb
|
|
4323
|
-
- spec/models/expand_request_tuple_key_spec.rb
|
|
4324
|
-
- spec/models/expand_response_spec.rb
|
|
4325
|
-
- spec/models/fga_object_spec.rb
|
|
4326
|
-
- spec/models/forbidden_response_spec.rb
|
|
4327
|
-
- spec/models/get_store_response_spec.rb
|
|
4328
|
-
- spec/models/internal_error_code_spec.rb
|
|
4329
|
-
- spec/models/internal_error_message_response_spec.rb
|
|
4330
|
-
- spec/models/leaf_spec.rb
|
|
4331
|
-
- spec/models/list_objects_request_spec.rb
|
|
4332
|
-
- spec/models/list_objects_response_spec.rb
|
|
4333
|
-
- spec/models/list_stores_response_spec.rb
|
|
4334
|
-
- spec/models/list_users_request_spec.rb
|
|
4335
|
-
- spec/models/list_users_response_spec.rb
|
|
4336
|
-
- spec/models/metadata_spec.rb
|
|
4337
|
-
- spec/models/node_spec.rb
|
|
4338
|
-
- spec/models/nodes_spec.rb
|
|
4339
|
-
- spec/models/not_found_error_code_spec.rb
|
|
4340
|
-
- spec/models/null_value_spec.rb
|
|
4341
|
-
- spec/models/object_relation_spec.rb
|
|
4342
|
-
- spec/models/path_unknown_error_message_response_spec.rb
|
|
4343
|
-
- spec/models/read_assertions_response_spec.rb
|
|
4344
|
-
- spec/models/read_authorization_model_response_spec.rb
|
|
4345
|
-
- spec/models/read_authorization_models_response_spec.rb
|
|
4346
|
-
- spec/models/read_changes_response_spec.rb
|
|
4347
|
-
- spec/models/read_request_spec.rb
|
|
4348
|
-
- spec/models/read_request_tuple_key_spec.rb
|
|
4349
|
-
- spec/models/read_response_spec.rb
|
|
4350
|
-
- spec/models/relation_metadata_spec.rb
|
|
4351
|
-
- spec/models/relation_reference_spec.rb
|
|
4352
|
-
- spec/models/relationship_condition_spec.rb
|
|
4353
|
-
- spec/models/source_info_spec.rb
|
|
4354
|
-
- spec/models/status_spec.rb
|
|
4355
|
-
- spec/models/store_spec.rb
|
|
4356
|
-
- spec/models/tuple_change_spec.rb
|
|
4357
|
-
- spec/models/tuple_key_spec.rb
|
|
4358
|
-
- spec/models/tuple_key_without_condition_spec.rb
|
|
4359
|
-
- spec/models/tuple_operation_spec.rb
|
|
4360
|
-
- spec/models/tuple_spec.rb
|
|
4361
|
-
- spec/models/tuple_to_userset_spec.rb
|
|
4362
|
-
- spec/models/type_definition_spec.rb
|
|
4363
|
-
- spec/models/type_name_spec.rb
|
|
4364
|
-
- spec/models/typed_wildcard_spec.rb
|
|
4365
|
-
- spec/models/unauthenticated_response_spec.rb
|
|
4366
|
-
- spec/models/unprocessable_content_error_code_spec.rb
|
|
4367
|
-
- spec/models/unprocessable_content_message_response_spec.rb
|
|
4368
|
-
- spec/models/user_spec.rb
|
|
4369
|
-
- spec/models/user_type_filter_spec.rb
|
|
4370
|
-
- spec/models/users_spec.rb
|
|
4371
|
-
- spec/models/userset_spec.rb
|
|
4372
|
-
- spec/models/userset_tree_difference_spec.rb
|
|
4373
|
-
- spec/models/userset_tree_spec.rb
|
|
4374
|
-
- spec/models/userset_tree_tuple_to_userset_spec.rb
|
|
4375
|
-
- spec/models/userset_user_spec.rb
|
|
4376
|
-
- spec/models/usersets_spec.rb
|
|
4377
|
-
- spec/models/validation_error_message_response_spec.rb
|
|
4378
|
-
- spec/models/write_assertions_request_spec.rb
|
|
4379
|
-
- spec/models/write_authorization_model_request_spec.rb
|
|
4380
|
-
- spec/models/write_authorization_model_response_spec.rb
|
|
4381
|
-
- spec/models/write_request_deletes_spec.rb
|
|
4382
|
-
- spec/models/write_request_spec.rb
|
|
4383
|
-
- spec/models/write_request_writes_spec.rb
|
|
4384
|
-
- spec/spec_helper.rb
|
|
4385
|
-
- spec/support/json_helper.rb
|
|
4386
|
-
- spec/support/stub_helper.rb
|
|
4387
|
-
- spec/token_manager/token_manager_spec.rb
|
|
4288
|
+
test_files: []
|