Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
51917f1
generate ruby client
carlastabile Jan 26, 2026
43597bd
reduce sdk generated files
carlastabile Jan 26, 2026
3772903
chore: remove imports.rb
stevehobbsdev Feb 4, 2026
1933849
chore: add gemspec.mustache (from template)
stevehobbsdev Feb 4, 2026
6867e05
chore: include api_model_base.mustache in the files output
stevehobbsdev Feb 4, 2026
380f0a6
chore: remove readme template so that it uses the base one
stevehobbsdev Feb 4, 2026
b9daa21
feat: add concurrent-ruby to gemspec
stevehobbsdev Feb 4, 2026
a373bbe
feat: installation instructions
stevehobbsdev Feb 4, 2026
b0aa01f
chore: remove changelog.md
stevehobbsdev Feb 4, 2026
d6eeda4
feat: populate models readme
stevehobbsdev Feb 4, 2026
ae6ebf9
initial api_endpoinds doc
carlastabile Feb 11, 2026
ccf50f3
README_initializing
carlastabile Feb 13, 2026
2455172
add ENV
carlastabile Feb 13, 2026
a7838d7
first version of constants file
carlastabile Feb 13, 2026
17aeaf8
add partial_header
carlastabile Feb 13, 2026
f68a96f
chore: add constants to gem main file
stevehobbsdev Feb 16, 2026
8673130
Merge branch 'main' into generate-ruby-sdk-base
carlastabile Feb 26, 2026
db9855a
chore: update gem info
carlastabile Mar 5, 2026
783f9de
chore: always use gemVersion as source of truth
carlastabile Mar 5, 2026
6c866b7
chore: remove fix packageDescription
carlastabile Mar 5, 2026
e089160
chose: update gem homepage to Github repo
carlastabile Mar 5, 2026
4d7613f
chore: fix trailing whitespace
stevehobbsdev Mar 6, 2026
4052d4e
chore: remove unused http library templates
stevehobbsdev Mar 6, 2026
18020c9
chore: update OpenSSL link
stevehobbsdev Mar 6, 2026
561689d
chore: remove test_files entry in gemspec (deprecated)
stevehobbsdev Mar 6, 2026
76ced07
chore: readme fixes
stevehobbsdev Mar 6, 2026
9c65dd7
chore: remove some comments from makefile
stevehobbsdev Mar 6, 2026
d16c0d0
fix: move version up so contants can read from it
carlastabile Mar 6, 2026
fb07e83
bump version to 0.1.5
carlastabile Mar 6, 2026
56f9ea9
Merge branch 'main' into generate-ruby-sdk-base
stevehobbsdev Mar 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,11 @@ shellcheck:
.PHONY: setup-new-sdk
setup-new-sdk:
./scripts/setup_new_sdk.sh

.PHONY: build-client-ruby
build-client-ruby:
make build-client sdk_language=ruby tmpdir=${TMP_DIR}

.PHONY: test-client-ruby
test-client-ruby: build-client-ruby
# to follow...
19 changes: 19 additions & 0 deletions config/clients/ruby/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Gemfile
.gitignore
.rspec
.rubocop.yml
.travis.yml
.gitlab-ci.yml
git_push.sh
.github/CODEOWNERS
.github/ISSUE_TEMPLATE/bug_report.yaml
.github/ISSUE_TEMPLATE/feature_request.yaml
.github/ISSUE_TEMPLATE/config.yaml
Rakefile
spec/api/*
spec/models/*
spec/api_client_spec.rb
spec/spec_helper.rb
spec/configuration_spec.rb
.codecov.yml

38 changes: 38 additions & 0 deletions config/clients/ruby/config.overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"sdkId": "ruby",
"gitRepoId": "ruby-sdk",
"packageName": "openfga",
"packageVersion": "0.1.5",
"packageDescription": "Ruby SDK for OpenFGA",
"packageDetailedDescription": "This is community-driven Ruby SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).",
"allowUnicodeIdentifiers": false,
"disallowAdditionalPropertiesIfNotPresent": false,
"ensureUniqueParams": true,
"enumUnknownDefaultCase": false,
"gemAuthor": "Carla Urrea Stabile, Steven Hobbs",
"gemAuthorEmail": "hello@carlastabile.tech",
"gemHomepage": "https://github.com/carlastabile/openfga-ruby-sdk",
"gemLicense": "Apache-2.0",
"gemMetadata": {},
"gemName": "openfga",
"gemRequiredRubyVersion": ">=3.2",
"gemSummary": "This is community-driven Ruby SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).",
"gemVersion": "0.1.5",
"hideGenerationTimestamp": true,
"library": "faraday",
"moduleName": "OpenFga",
"sortModelPropertiesByRequiredFlag": true,
"sortParamsByRequiredFlag": false,
"targetRubyVersion": "3.2",
"userAgent": "openfga-sdk ruby/$gemVersion",
"files": {
"api_model_base.mustache": {
"destinationFilename": "lib/openfga/api_model_base.rb",
"templateType": "SupportingFiles"
},
"constants.mustache": {
"destinationFilename": "lib/openfga/constants.rb",
"templateType": "SupportingFiles"
}
}
}
8 changes: 8 additions & 0 deletions config/clients/ruby/template-source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"generator": "ruby",
"repo": "https://github.com/OpenAPITools/openapi-generator",
"branch": "master",
"commit": "695f7076bf5db8b0a6a55bf0569385e3d63f18e8",
"url": "https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/ruby-client",
"docs": "https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/ruby.md"
}
4 changes: 4 additions & 0 deletions config/clients/ruby/template/README_api_endpoints.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}*{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationIdLowerCase}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{summary}}{{/summary}}
{{/operation}}{{/operations}}{{/apis}}{{/apiInfo}}
Loading
Loading