Skip to content

Commit 59fd026

Browse files
authored
Merge pull request #17 from tinify/features/ruby-4.0
Features/ruby 4.0
2 parents 72dd090 + 1af475b commit 59fd026

6 files changed

Lines changed: 51 additions & 20 deletions

File tree

.github/workflows/ci-cd.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
ruby-version: ['3.1', '3.2', '3.3', '3.4', 'jruby']
14+
ruby-version: ['3.2', '3.3', '3.4', '4.0', 'jruby']
1515
os: [ubuntu-latest, macOS-latest, windows-latest]
1616
# experimental: [false]
1717
include:
@@ -27,7 +27,7 @@ jobs:
2727
os: ubuntu-latest
2828
experimental: false
2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v5
3131

3232
- name: Set up ruby ${{ matrix.ruby-version }}
3333
uses: ruby/setup-ruby@v1
@@ -49,17 +49,15 @@ jobs:
4949
strategy:
5050
fail-fast: false
5151
matrix:
52-
ruby-version: [
53-
"3.1", "3.4"
54-
]
52+
ruby-version: ['3.2', '3.3', '3.4', '4.0', 'jruby']
5553
os: [
5654
ubuntu-latest,
5755
macOS-latest,
5856
# Disable windows due to an issue with binary encoding in the tests
5957
# windows-latest
6058
]
6159
steps:
62-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@v5
6361
- name: Set up ruby ${{ matrix.ruby-version }}
6462
uses: ruby/setup-ruby@v1
6563
with:
@@ -82,11 +80,11 @@ jobs:
8280
needs: [Unit_tests, Integration_tests]
8381
runs-on: ubuntu-latest
8482
steps:
85-
- uses: actions/checkout@v3
86-
- name: Set up Ruby 3.4
83+
- uses: actions/checkout@v5
84+
- name: Setup Ruby 4.0
8785
uses: ruby/setup-ruby@v1
8886
with:
89-
ruby-version: 3.4
87+
ruby-version: 4.0
9088
- name: Check if properly tagged
9189
run: |
9290
PACKAGE_VERSION="$(ruby -e 'puts Gem::Specification::load("tinify.gemspec").version')";

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.0.1

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 1.8.0
2+
3+
* Update development dependencies.
4+
5+
Extend runtime support for:
6+
7+
* Ruby 4.0
8+
9+
Remove runtime support for:
10+
11+
* Ruby 3.1
12+
113
## 1.7.1
214
* Update `rexml` because of `CVE-2025-58767`.
315
* Fix source `:result` to use post when a body is given.

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM "docker.io/ruby:4.0-alpine"
2+
3+
ARG UID=1000
4+
ARG GID=1000
5+
6+
RUN addgroup -g "$GID" -S 'app' \
7+
&& adduser -u "$UID" -G 'app' -S 'app'
8+
9+
WORKDIR /home/app
10+
11+
COPY --chown=app:app . .
12+
13+
RUN apk add --no-cache --update alpine-sdk yaml-dev \
14+
&& bundle install \
15+
&& chown -R app:app /usr/local/bundle
16+
17+
ENTRYPOINT /bin/sh
18+
USER app

Gemfile.lock

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
PATH
22
remote: .
33
specs:
4-
tinify (1.7.1)
4+
tinify (1.8.0)
55
httpclient (>= 2.9, < 3)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
addressable (2.8.7)
11-
public_suffix (>= 2.0.2, < 7.0)
10+
addressable (2.8.8)
11+
public_suffix (>= 2.0.2, < 8.0)
1212
base64 (0.3.0)
13-
bigdecimal (3.2.3)
14-
bigdecimal (3.2.3-java)
15-
crack (1.0.0)
13+
bigdecimal (4.0.1)
14+
bigdecimal (4.0.1-java)
15+
crack (1.0.1)
1616
bigdecimal
1717
rexml
1818
hashdiff (1.2.1)
1919
httpclient (2.9.0)
2020
mutex_m
21-
minitest (5.25.5)
21+
minitest (6.0.1)
22+
prism (~> 1.5)
2223
mutex_m (0.3.0)
23-
public_suffix (6.0.2)
24-
rake (13.3.0)
24+
prism (1.8.0)
25+
public_suffix (7.0.2)
26+
rake (13.3.1)
2527
rexml (3.4.4)
26-
webmock (3.25.1)
28+
webmock (3.26.1)
2729
addressable (>= 2.8.0)
2830
crack (>= 0.3.2)
2931
hashdiff (>= 0.4.0, < 2.0.0)

lib/tinify/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Tinify
2-
VERSION = "1.7.1"
2+
VERSION = "1.8.0"
33
end

0 commit comments

Comments
 (0)