diff --git a/languages/ruby/examples/basic.rb b/languages/ruby/examples/basic.rb index 8f72f00..cb9646f 100644 --- a/languages/ruby/examples/basic.rb +++ b/languages/ruby/examples/basic.rb @@ -72,11 +72,11 @@ ### Encryption tests: plaintext_data = 'Hello World' -key = infisical.encryption.create_symmetric_key +key = infisical.cryptography.create_symmetric_key -encrypted_data = infisical.encryption.encrypt_symmetric(data: plaintext_data, key: key) +encrypted_data = infisical.cryptography.encrypt_symmetric(data: plaintext_data, key: key) -decrypted_data = infisical.encryption.decrypt_symmetric( +decrypted_data = infisical.cryptography.decrypt_symmetric( ciphertext: encrypted_data['ciphertext'], iv: encrypted_data['iv'], tag: encrypted_data['tag'], diff --git a/languages/ruby/infisical-sdk/lib/clients/encryption.rb b/languages/ruby/infisical-sdk/lib/clients/cryptography.rb similarity index 98% rename from languages/ruby/infisical-sdk/lib/clients/encryption.rb rename to languages/ruby/infisical-sdk/lib/clients/cryptography.rb index 50b33e5..0c3fd86 100644 --- a/languages/ruby/infisical-sdk/lib/clients/encryption.rb +++ b/languages/ruby/infisical-sdk/lib/clients/cryptography.rb @@ -11,7 +11,7 @@ module InfisicalSDK # Perform encryption - class EncryptionClient + class CryptographyClient def initialize(command_runner) @command_runner = command_runner end diff --git a/languages/ruby/infisical-sdk/lib/infisical-sdk.rb b/languages/ruby/infisical-sdk/lib/infisical-sdk.rb index bd08f3c..375d77f 100644 --- a/languages/ruby/infisical-sdk/lib/infisical-sdk.rb +++ b/languages/ruby/infisical-sdk/lib/infisical-sdk.rb @@ -10,11 +10,11 @@ require_relative 'command_runner' require_relative 'clients/secrets' require_relative 'clients/auth' -require_relative 'clients/encryption' +require_relative 'clients/cryptography' module InfisicalSDK class InfisicalClient - attr_reader :infisical, :command_runner, :secrets, :auth, :encryption + attr_reader :infisical, :command_runner, :secrets, :auth, :cryptography def initialize(site_url = nil, cache_ttl = 300) settings = ClientSettings.new( @@ -34,7 +34,7 @@ def initialize(site_url = nil, cache_ttl = 300) @command_runner = CommandRunner.new(@infisical, @handle) @secrets = SecretsClient.new(@command_runner) @auth = AuthClient.new(@command_runner) - @encryption = EncryptionClient.new(@command_runner) + @cryptography = CryptographyClient.new(@command_runner) end def free_mem diff --git a/languages/ruby/infisical-sdk/sig/infisical_sdk/encryption_client.rbs b/languages/ruby/infisical-sdk/sig/infisical_sdk/cryptography_client.rbs similarity index 93% rename from languages/ruby/infisical-sdk/sig/infisical_sdk/encryption_client.rbs rename to languages/ruby/infisical-sdk/sig/infisical_sdk/cryptography_client.rbs index 8a10592..4c95db3 100644 --- a/languages/ruby/infisical-sdk/sig/infisical_sdk/encryption_client.rbs +++ b/languages/ruby/infisical-sdk/sig/infisical_sdk/cryptography_client.rbs @@ -1,5 +1,5 @@ module InfisicalSDK - class EncryptionClient + class CryptographyClient @command_runner: CommandRunner def initialize: (CommandRunner) -> void diff --git a/languages/ruby/infisical-sdk/sig/infisical_sdk/infisical_client.rbs b/languages/ruby/infisical-sdk/sig/infisical_sdk/infisical_client.rbs index cd06569..6c27a0e 100644 --- a/languages/ruby/infisical-sdk/sig/infisical_sdk/infisical_client.rbs +++ b/languages/ruby/infisical-sdk/sig/infisical_sdk/infisical_client.rbs @@ -10,7 +10,7 @@ module InfisicalSDK attr_reader infisical: InfisicalModule attr_reader auth: AuthClient - attr_reader encryption: EncryptionClient + attr_reader cryptography: CryptographyClient attr_reader secrets: SecretsClient def initialize: (String?, Integer?) -> untyped