Skip to content

Commit db61f60

Browse files
feat(api): Update env var name
1 parent 14104e2 commit db61f60

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 42
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-d1a3e6dfc45ae832b6b14a0aef25878985c679fa9f48c1470df188b1578ba648.yml
33
openapi_spec_hash: 1d382866fce3284f26d341f112988d9d
4-
config_hash: 51a9632be24fc533ad69a5bd56934651
4+
config_hash: f1fafe5e607e996b58b67fd1dd3e74fa

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require "bundler/setup"
2929
require "imagekit"
3030

3131
image_kit = Imagekit::Client.new(
32-
private_key: ENV["IMAGEKIT_PRIVATE_API_KEY"], # This is the default and can be omitted
32+
private_key: ENV["IMAGEKIT_PRIVATE_KEY"], # This is the default and can be omitted
3333
password: ENV["OPTIONAL_IMAGEKIT_IGNORES_THIS"] # This is the default and can be omitted
3434
)
3535

lib/imagekit/client.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def base_url_overridden? = @base_url_overridden
6868
#
6969
# @param private_key [String, nil] Your ImageKit private API key (starts with `private_`). You can find this in the
7070
# [ImageKit dashboard](https://imagekit.io/dashboard/developer/api-keys). Defaults
71-
# to `ENV["IMAGEKIT_PRIVATE_API_KEY"]`
71+
# to `ENV["IMAGEKIT_PRIVATE_KEY"]`
7272
#
7373
# @param password [String, nil] ImageKit uses your API key as username and ignores the password. The SDK sets a
7474
# dummy value. You can ignore this field. Defaults to
@@ -85,7 +85,7 @@ def base_url_overridden? = @base_url_overridden
8585
#
8686
# @param max_retry_delay [Float]
8787
def initialize(
88-
private_key: ENV["IMAGEKIT_PRIVATE_API_KEY"],
88+
private_key: ENV["IMAGEKIT_PRIVATE_KEY"],
8989
password: ENV.fetch("OPTIONAL_IMAGEKIT_IGNORES_THIS", "do_not_set"),
9090
base_url: ENV["IMAGE_KIT_BASE_URL"],
9191
max_retries: self.class::DEFAULT_MAX_RETRIES,
@@ -98,7 +98,7 @@ def initialize(
9898
base_url ||= "https://api.imagekit.io"
9999

100100
if private_key.nil?
101-
raise ArgumentError.new("private_key is required, and can be set via environ: \"IMAGEKIT_PRIVATE_API_KEY\"")
101+
raise ArgumentError.new("private_key is required, and can be set via environ: \"IMAGEKIT_PRIVATE_KEY\"")
102102
end
103103

104104
@private_key = private_key.to_s

rbi/imagekit/client.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ module Imagekit
6969
def self.new(
7070
# Your ImageKit private API key (starts with `private_`). You can find this in the
7171
# [ImageKit dashboard](https://imagekit.io/dashboard/developer/api-keys). Defaults
72-
# to `ENV["IMAGEKIT_PRIVATE_API_KEY"]`
73-
private_key: ENV["IMAGEKIT_PRIVATE_API_KEY"],
72+
# to `ENV["IMAGEKIT_PRIVATE_KEY"]`
73+
private_key: ENV["IMAGEKIT_PRIVATE_KEY"],
7474
# ImageKit uses your API key as username and ignores the password. The SDK sets a
7575
# dummy value. You can ignore this field. Defaults to
7676
# `ENV["OPTIONAL_IMAGEKIT_IGNORES_THIS"]`

0 commit comments

Comments
 (0)