Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ['3.1', '3.2', '3.3', '3.4', 'jruby']
ruby-version: ['3.2', '3.3', '3.4', '4.0', 'jruby']
os: [ubuntu-latest, macOS-latest, windows-latest]
# experimental: [false]
include:
Expand All @@ -27,7 +27,7 @@ jobs:
os: ubuntu-latest
experimental: false
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
Expand All @@ -49,17 +49,15 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [
"3.1", "3.4"
]
ruby-version: ['3.2', '3.3', '3.4', '4.0', 'jruby']
os: [
ubuntu-latest,
macOS-latest,
# Disable windows due to an issue with binary encoding in the tests
# windows-latest
]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
Expand All @@ -82,11 +80,11 @@ jobs:
needs: [Unit_tests, Integration_tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 3.4
- uses: actions/checkout@v5
- name: Setup Ruby 4.0
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
ruby-version: 4.0
- name: Check if properly tagged
run: |
PACKAGE_VERSION="$(ruby -e 'puts Gem::Specification::load("tinify.gemspec").version')";
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.0.1
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 1.8.0

* Update development dependencies.

Extend runtime support for:

* Ruby 4.0

Remove runtime support for:

* Ruby 3.1

## 1.7.1
* Update `rexml` because of `CVE-2025-58767`.
* Fix source `:result` to use post when a body is given.
Expand Down
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM "docker.io/ruby:4.0-alpine"

ARG UID=1000
ARG GID=1000

RUN addgroup -g "$GID" -S 'app' \
&& adduser -u "$UID" -G 'app' -S 'app'

WORKDIR /home/app

COPY --chown=app:app . .

RUN apk add --no-cache --update alpine-sdk yaml-dev \
&& bundle install \
&& chown -R app:app /usr/local/bundle

ENTRYPOINT /bin/sh
USER app
22 changes: 12 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
PATH
remote: .
specs:
tinify (1.7.1)
tinify (1.8.0)
httpclient (>= 2.9, < 3)

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
addressable (2.8.8)
public_suffix (>= 2.0.2, < 8.0)
base64 (0.3.0)
bigdecimal (3.2.3)
bigdecimal (3.2.3-java)
crack (1.0.0)
bigdecimal (4.0.1)
bigdecimal (4.0.1-java)
crack (1.0.1)
bigdecimal
rexml
hashdiff (1.2.1)
httpclient (2.9.0)
mutex_m
minitest (5.25.5)
minitest (6.0.1)
prism (~> 1.5)
mutex_m (0.3.0)
public_suffix (6.0.2)
rake (13.3.0)
prism (1.8.0)
public_suffix (7.0.2)
rake (13.3.1)
rexml (3.4.4)
webmock (3.25.1)
webmock (3.26.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/tinify/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Tinify
VERSION = "1.7.1"
VERSION = "1.8.0"
end