lib/kms_encrypted/clients/google.rb in kms_encrypted-1.2.2 vs lib/kms_encrypted/clients/google.rb in kms_encrypted-1.2.3
- old
+ new
@@ -9,10 +9,10 @@
}
options[:additional_authenticated_data] = generate_context(context) if context
# ensure namespace gets loaded
client = KmsEncrypted.google_client
- request = ::Google::Apis::CloudkmsV1::EncryptRequest.new(options)
+ request = ::Google::Apis::CloudkmsV1::EncryptRequest.new(**options)
response = client.encrypt_crypto_key(key_id, request)
@last_key_version = response.name
response.ciphertext