Skip to content

Commit 79534be

Browse files
authored
Merge pull request #78 from imagekit-developer/release-please--branches--master--changes--next
release: 4.5.0
2 parents 1fa98c5 + 3308915 commit 79534be

15 files changed

Lines changed: 128 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
github.repository == 'stainless-sdks/imagekit-ruby' &&
2727
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2828
steps:
29-
- uses: actions/checkout@v6
29+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
- name: Set up Ruby
31-
uses: ruby/setup-ruby@v1
31+
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
3232
with:
3333
bundler-cache: false
3434
- run: |-
@@ -39,7 +39,7 @@ jobs:
3939
github.repository == 'stainless-sdks/imagekit-ruby' &&
4040
!startsWith(github.ref, 'refs/heads/stl/')
4141
id: github-oidc
42-
uses: actions/github-script@v8
42+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
4343
with:
4444
script: core.setOutput('github_token', await core.getIDToken());
4545

@@ -60,9 +60,9 @@ jobs:
6060
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
6161

6262
steps:
63-
- uses: actions/checkout@v6
63+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6464
- name: Set up Ruby
65-
uses: ruby/setup-ruby@v1
65+
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
6666
with:
6767
bundler-cache: false
6868
- run: |-
@@ -76,9 +76,9 @@ jobs:
7676
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
7777
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7878
steps:
79-
- uses: actions/checkout@v6
79+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8080
- name: Set up Ruby
81-
uses: ruby/setup-ruby@v1
81+
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
8282
with:
8383
bundler-cache: false
8484
- run: |-

.github/workflows/publish-gem.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v6
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818
- name: Set up Ruby
19-
uses: ruby/setup-ruby@v1
19+
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
2020
with:
2121
bundler-cache: false
2222
- run: |-

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.repository == 'imagekit-developer/imagekit-ruby' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
15-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616

1717
- name: Check release environment
1818
run: |

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.4.1"
2+
".": "4.5.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 47
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-c7f578172392bde58bbb72be2a25b9e917529cd07550358c645ce155debf2418.yml
3-
openapi_spec_hash: f0d797a17b1e8e81707517700cd44b13
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc/imagekit-ad6dd3b4acf289708568a12574b997503059a47c4a4ca5ffefe64f40f3d3dbf3.yml
3+
openapi_spec_hash: 7c103e2dff0edcbeea82057e62f58d4d
44
config_hash: 94f48fd13b7d41b8b6a203a3a8cee9ed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 4.5.0 (2026-05-13)
4+
5+
Full Changelog: [v4.4.1...v4.5.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.4.1...v4.5.0)
6+
7+
### Features
8+
9+
* **api:** add no-enlarge crop modes and colorize transformation ([1b56303](https://github.com/imagekit-developer/imagekit-ruby/commit/1b56303ef5c67cb1a4b36d4a1c06b147f22c5987))
10+
* support setting headers via env ([cd32783](https://github.com/imagekit-developer/imagekit-ruby/commit/cd32783efe49d795b8a5de49eb44039cda375d2e))
11+
* **transformation:** add colorize transformation support in URL generation ([3454064](https://github.com/imagekit-developer/imagekit-ruby/commit/34540646f7ee8a1deabeea629f366d28bc71f734))
12+
13+
14+
### Chores
15+
16+
* **internal:** codegen related update ([7e0543d](https://github.com/imagekit-developer/imagekit-ruby/commit/7e0543d8714ff251de1a32f471dc7bd8bfa17dab))
17+
318
## 4.4.1 (2026-04-24)
419

520
Full Changelog: [v4.4.0...v4.4.1](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.4.0...v4.4.1)

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
imagekitio (4.4.1)
14+
imagekitio (4.5.0)
1515
cgi
1616
connection_pool
1717
standardwebhooks
@@ -144,7 +144,7 @@ GEM
144144
rexml (>= 3.2.6)
145145
sorbet-static-and-runtime (>= 0.5.10187)
146146
thor (>= 0.19.2)
147-
standardwebhooks (1.0.1)
147+
standardwebhooks (1.1.0)
148148
steep (1.10.0)
149149
activesupport (>= 5.1)
150150
concurrent-ruby (>= 1.1.10)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To use this gem, install via Bundler by adding the following to your application
4646
<!-- x-release-please-start-version -->
4747

4848
```ruby
49-
gem "imagekitio", "~> 4.4.1"
49+
gem "imagekitio", "~> 4.5.0"
5050
```
5151

5252
<!-- x-release-please-end -->

lib/imagekitio/client.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@ def initialize(
120120
raise ArgumentError.new("private_key is required, and can be set via environ: \"IMAGEKIT_PRIVATE_KEY\"")
121121
end
122122

123+
headers = {}
124+
custom_headers_env = ENV["IMAGE_KIT_CUSTOM_HEADERS"]
125+
unless custom_headers_env.nil?
126+
parsed = {}
127+
custom_headers_env.split("\n").each do |line|
128+
colon = line.index(":")
129+
unless colon.nil?
130+
parsed[line[0...colon].strip] = line[(colon + 1)..].strip
131+
end
132+
end
133+
headers = parsed.merge(headers)
134+
end
135+
123136
@private_key = private_key.to_s
124137
@password = password.to_s
125138
@webhook_secret = webhook_secret&.to_s
@@ -129,7 +142,8 @@ def initialize(
129142
timeout: timeout,
130143
max_retries: max_retries,
131144
initial_retry_delay: initial_retry_delay,
132-
max_retry_delay: max_retry_delay
145+
max_retry_delay: max_retry_delay,
146+
headers: headers
133147
)
134148

135149
@custom_metadata_fields = Imagekitio::Resources::CustomMetadataFields.new(client: self)

lib/imagekitio/helpers/transformation_utils.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ module TransformationUtils
8484
"gradient" => "e-gradient",
8585
"color_replace" => "cr",
8686
"colorReplace" => "cr",
87+
"colorize" => "e-colorize",
8788
"distort" => "e-distort",
8889

8990
# Other flags & finishing

0 commit comments

Comments
 (0)