Skip to content

Commit 79535b2

Browse files
authored
Finish v4.0.0 release preparation (#78)
1 parent 043a954 commit 79535b2

8 files changed

Lines changed: 21 additions & 14 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ jobs:
1313
strategy:
1414
matrix:
1515
ruby:
16-
- 3.1
17-
- 3.2
18-
- 3.3
16+
- "3.1"
17+
- "3.2"
18+
- "3.3"
19+
- "3.4"
20+
- "4.0"
1921
fail-fast: false
2022
steps:
2123
- uses: actions/checkout@v4
@@ -32,11 +34,11 @@ jobs:
3234
- run: bundle exec standardrb
3335
- name: Run tests
3436
env:
35-
COVERAGE: ${{ matrix.ruby == '3.3' && '1' || '0' }}
36-
TEST_NODE_PARITY: ${{ matrix.ruby == '3.3' && '1' || '0' }}
37+
COVERAGE: ${{ matrix.ruby == '4.0' && '1' || '0' }}
38+
TEST_NODE_PARITY: ${{ matrix.ruby == '4.0' && '1' || '0' }}
3739
run: bundle exec rake test
3840
- name: Upload coverage to Codecov
39-
if: matrix.ruby == '3.3'
41+
if: matrix.ruby == '4.0'
4042
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f
4143
with:
4244
token: ${{ secrets.CODECOV_TOKEN }}
@@ -57,7 +59,7 @@ jobs:
5759
lfs: true
5860
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f
5961
with:
60-
ruby-version: 3.3
62+
ruby-version: "4.0"
6163
bundler-cache: true
6264
- name: Ensure e2e credentials are configured
6365
if: ${{ env.TRANSLOADIT_KEY == '' || env.TRANSLOADIT_SECRET == '' }}

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ env.sh
1616
.env
1717
vendor/bundle/
1818
.docker-cache/
19-
.cache/rubocop_cache/04e06e0faf5ad652d8bcbcfd85bac5f6c32e711e/3031a80880d8a984708138f0d003f77c4bad2648
19+
.cache/

‎.standard.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore:
2+
- ".docker-cache/**/*"

‎CHANGELOG.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
### 4.0.0 / 2026-09-02
1+
### 4.0.0 / 2026-09-03
22

33
- BREAKING: Replace the long-dormant `rest-client` transport with Faraday 2 and `faraday-multipart`.
4+
- BREAKING: Raise the minimum supported Ruby version from 3.0 to 3.1.
45
- Keep HTTP client types out of SDK responses and exceptions while preserving response status, headers, body access, multipart ordering, and rate-limit retries.
56
- Add a [v3 to v4 migration guide](MIGRATING_TO_V4.md).
7+
- Test all Ruby versions from the supported minimum through Ruby 4.0.
68

79
### 3.1.2 / 2025-10-29
810

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ruby:3.3 AS base
3+
FROM ruby:4.0 AS base
44

55
RUN apt-get update \
66
&& apt-get install -y --no-install-recommends \

‎MIGRATING_TO_V4.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Transloadit API exposed by this gem and do not need code changes. The migration
55
because v3 also delegated undocumented methods to RestClient response objects and exposed
66
RestClient exception inheritance.
77

8-
The minimum supported Ruby version remains 3.1.
8+
Version 4 requires Ruby 3.1 or newer. The final v3 release allowed Ruby 3.0, so applications still
9+
running Ruby 3.0 must upgrade Ruby before updating this gem.
910

1011
## Update the dependency
1112

‎lib/transloadit.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require "date"
33
require "json"
44
require "openssl"
5-
require "cgi"
5+
require "cgi/escape"
66
require "uri"
77

88
#

‎transloadit.gemspec‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Gem::Specification.new do |gem|
2929
gem.add_development_dependency "rake"
3030
gem.add_development_dependency "minitest"
3131
gem.add_development_dependency "simplecov"
32-
gem.add_development_dependency "standard"
32+
gem.add_development_dependency "standard", ">= 1.54"
3333

34-
gem.add_development_dependency "vcr"
34+
gem.add_development_dependency "vcr", ">= 6.4"
3535
gem.add_development_dependency "webmock"
3636

3737
gem.add_development_dependency "yard"

0 commit comments

Comments
 (0)