Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 1 addition & 4 deletions .bundle/config
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
---
BUNDLE_PATH: "/home/runner/work/client-ruby/client-ruby/vendor/bundle"
BUNDLE_PATH: "./vendor"
BUNDLE_IGNORE_FUNDING_REQUESTS: "true"
BUNDLE_DEPLOYMENT: "true"
BUNDLE_JOBS: "4"
BUNDLE_WITH: "development:test"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build/

## Environment normalization:
/.bundle/
/vendor/bundle
/vendor/
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
Expand Down
4 changes: 2 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[
"@semantic-release/exec",
{
"prepareCmd": "sed -i 's/[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+/${nextRelease.version}/' lib/zitadel-client/version.rb"
"prepareCmd": "sed -i 's/[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+/${nextRelease.version}/' lib/zitadel/client/version.rb"
}
],
[
Expand Down Expand Up @@ -58,7 +58,7 @@
{
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
"assets": [
"lib/zitadel-client/version.rb",
"lib/zitadel/client/version.rb",
"Gemfile.lock"
]
}
Expand Down
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ plugins:

AllCops:
Exclude:
- 'lib/zitadel-client/models/**/*'
- 'lib/zitadel-client/api/**/*'
- 'lib/zitadel/client/models/**/*'
- 'lib/zitadel/client/api/**/*'
- 'vendor/**/*'
NewCops: enable
TargetRubyVersion: 3.0
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ Ensure you have Ruby 3 or higher installed.
Install the SDK by running one of the following commands:

```
gem install zitadel_client
gem install zitadel-client
```

If you're using Bundler use,

```
bundle add zitadel_client
bundle add zitadel-client
```

## Authentication Methods
Expand All @@ -72,20 +72,20 @@ JSON file. This process creates a secure token.
**Example:**

```ruby
require 'zitadel_client'
require 'zitadel-client'
require 'securerandom'

client = ZitadelClient::Zitadel.with_private_key("https://example.us1.zitadel.cloud", "path/to/jwt-key.json")
client = Zitadel::Client::Zitadel.with_private_key("https://example.us1.zitadel.cloud", "path/to/jwt-key.json")

begin
response = client.users.user_service_add_human_user(
ZitadelClient::UserServiceAddHumanUserRequest.new(
Zitadel::Client::UserServiceAddHumanUserRequest.new(
username: SecureRandom.hex,
profile: ZitadelClient::UserServiceSetHumanProfile.new(
profile: Zitadel::Client::UserServiceSetHumanProfile.new(
given_name: 'John',
family_name: 'Doe'
),
email: ZitadelClient::UserServiceSetHumanEmail.new(
email: Zitadel::Client::UserServiceSetHumanEmail.new(
email: "john.doe@example.com"
)
)
Expand Down Expand Up @@ -115,20 +115,20 @@ which is then used to authenticate.
**Example:**

```ruby
require 'zitadel_client'
require 'zitadel-client'
require 'securerandom'

client = ZitadelClient::Zitadel.with_client_credentials("https://example.us1.zitadel.cloud", "id", "secret")
client = Zitadel::Client::Zitadel.with_client_credentials("https://example.us1.zitadel.cloud", "id", "secret")

begin
response = client.users.user_service_add_human_user(
ZitadelClient::UserServiceAddHumanUserRequest.new(
Zitadel::Client::UserServiceAddHumanUserRequest.new(
username: SecureRandom.hex,
profile: ZitadelClient::UserServiceSetHumanProfile.new(
profile: Zitadel::Client::UserServiceSetHumanProfile.new(
given_name: 'John',
family_name: 'Doe'
),
email: ZitadelClient::UserServiceSetHumanEmail.new(
email: Zitadel::Client::UserServiceSetHumanEmail.new(
email: "john.doe@example.com"
)
)
Expand Down Expand Up @@ -158,20 +158,20 @@ authenticate without exchanging credentials every time.
**Example:**

```ruby
require 'zitadel_client'
require 'zitadel-client'
require 'securerandom'

client = ZitadelClient::Zitadel.with_access_token("https://example.us1.zitadel.cloud", "token")
client = Zitadel::Client::Zitadel.with_access_token("https://example.us1.zitadel.cloud", "token")

begin
response = client.users.user_service_add_human_user(
ZitadelClient::UserServiceAddHumanUserRequest.new(
Zitadel::Client::UserServiceAddHumanUserRequest.new(
username: SecureRandom.hex,
profile: ZitadelClient::UserServiceSetHumanProfile.new(
profile: Zitadel::Client::UserServiceSetHumanProfile.new(
given_name: 'John',
family_name: 'Doe'
),
email: ZitadelClient::UserServiceSetHumanEmail.new(
email: Zitadel::Client::UserServiceSetHumanEmail.new(
email: "john.doe@example.com"
)
)
Expand Down
4 changes: 2 additions & 2 deletions Steepfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ target :app do

library 'json', 'time', 'date', 'uri', 'pathname', 'net-http', 'tempfile'

ignore 'lib/zitadel-client/models'
ignore 'lib/zitadel-client/api'
ignore 'lib/zitadel/client/models'
ignore 'lib/zitadel/client/api'
ignore 'lib/patch.rb'

Steep.logger.level = Logger::FATAL
Expand Down
22 changes: 11 additions & 11 deletions devbox.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,50 @@
"lockfile_version": "1",
"packages": {
"lefthook@latest": {
"last_modified": "2025-04-07T13:23:10Z",
"resolved": "github:NixOS/nixpkgs/b0b4b5f8f621bfe213b8b21694bab52ecfcbf30b#lefthook",
"last_modified": "2025-05-16T20:19:48Z",
"resolved": "github:NixOS/nixpkgs/12a55407652e04dcf2309436eb06fef0d3713ef3#lefthook",
"source": "devbox-search",
"version": "1.11.5",
"version": "1.11.12",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/4fmy4hm7wq4knkgr22afradj65dhl44j-lefthook-1.11.5",
"path": "/nix/store/kilfcgmnvx98lzr85mbbxrfa9px5879m-lefthook-1.11.12",
"default": true
}
],
"store_path": "/nix/store/4fmy4hm7wq4knkgr22afradj65dhl44j-lefthook-1.11.5"
"store_path": "/nix/store/kilfcgmnvx98lzr85mbbxrfa9px5879m-lefthook-1.11.12"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/gbzlzd5kri8q91hsr0a5ndsqwzar6c80-lefthook-1.11.5",
"path": "/nix/store/pvxs97fc0ba492bciazlqnh5ak0lcgiq-lefthook-1.11.12",
"default": true
}
],
"store_path": "/nix/store/gbzlzd5kri8q91hsr0a5ndsqwzar6c80-lefthook-1.11.5"
"store_path": "/nix/store/pvxs97fc0ba492bciazlqnh5ak0lcgiq-lefthook-1.11.12"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/91ngsvl5frcd6fa21b2wp0mrz2mxv0c9-lefthook-1.11.5",
"path": "/nix/store/9lrdwi4flvhkvyk6ipb2b8hikyhrr1gq-lefthook-1.11.12",
"default": true
}
],
"store_path": "/nix/store/91ngsvl5frcd6fa21b2wp0mrz2mxv0c9-lefthook-1.11.5"
"store_path": "/nix/store/9lrdwi4flvhkvyk6ipb2b8hikyhrr1gq-lefthook-1.11.12"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/bza0zs1fhm718vq4xr0n8rg4lnbj65p2-lefthook-1.11.5",
"path": "/nix/store/mpdpmidc3fpv6xnwkblwmnykgb8483sm-lefthook-1.11.12",
"default": true
}
],
"store_path": "/nix/store/bza0zs1fhm718vq4xr0n8rg4lnbj65p2-lefthook-1.11.5"
"store_path": "/nix/store/mpdpmidc3fpv6xnwkblwmnykgb8483sm-lefthook-1.11.12"
}
}
},
Expand Down
Loading
Loading