image_optim_pack 0.8.0.20211116-x86_64-darwin → 0.8.0.20220418-x86_64-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/check.yml +2 -9
- data/.github/workflows/docker-build.yml +16 -0
- data/.github/workflows/rubocop.yml +16 -0
- data/CHANGELOG.markdown +12 -0
- data/Dockerfile +3 -3
- data/LICENSE.txt +1 -1
- data/Makefile +16 -9
- data/README.markdown +1 -1
- data/checksums.mk +5 -5
- data/image_optim_pack.gemspec +1 -1
- data/script/platform_downloads +20 -1
- data/vendor/darwin-x86_64/advpng +0 -0
- data/vendor/darwin-x86_64/gifsicle +0 -0
- data/vendor/darwin-x86_64/jhead +0 -0
- data/vendor/darwin-x86_64/jpeg-recompress +0 -0
- data/vendor/darwin-x86_64/jpegoptim +0 -0
- data/vendor/darwin-x86_64/jpegtran +0 -0
- data/vendor/darwin-x86_64/libjpeg.dylib +0 -0
- data/vendor/darwin-x86_64/liblcms2.dylib +0 -0
- data/vendor/darwin-x86_64/libpng.dylib +0 -0
- data/vendor/darwin-x86_64/libz.dylib +0 -0
- data/vendor/darwin-x86_64/optipng +0 -0
- data/vendor/darwin-x86_64/oxipng +0 -0
- data/vendor/darwin-x86_64/pngcrush +0 -0
- data/vendor/darwin-x86_64/pngquant +0 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c75c687741ddd7f94556e89dbedc8b05d6ccae7566901ba131be39a2e89913af
|
4
|
+
data.tar.gz: 3018490db89f4365191bc580f065e081847b2555fbf7a1b32cbbfe23cd2d2b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3c44398e92a662e10a264e818a64d8e9f50d6009bdc9bb8767ab93e2a0b2ba53e5cd08d511f386f40cb3d8c791348aac8edbaa6275087cb588f91b075bc6e6a
|
7
|
+
data.tar.gz: bf086f20d9bc61116e93e977a6b1030ae10cd154d2a17c39af4bf994d92fea2acb8e2c6efff07b1b238475340dc1aec03aaa97231703f28c516558f0d68e063b
|
data/.github/workflows/check.yml
CHANGED
@@ -22,7 +22,9 @@ jobs:
|
|
22
22
|
- '2.6'
|
23
23
|
- '2.7'
|
24
24
|
- '3.0'
|
25
|
+
- '3.1'
|
25
26
|
- jruby-9.2
|
27
|
+
- jruby-9.3
|
26
28
|
fail-fast: false
|
27
29
|
steps:
|
28
30
|
- uses: actions/checkout@v2
|
@@ -33,12 +35,3 @@ jobs:
|
|
33
35
|
- run: make test
|
34
36
|
- run: bundle exec image_optim --info
|
35
37
|
- run: bundle exec rspec
|
36
|
-
rubocop:
|
37
|
-
runs-on: ubuntu-latest
|
38
|
-
steps:
|
39
|
-
- uses: actions/checkout@v2
|
40
|
-
- uses: ruby/setup-ruby@v1
|
41
|
-
with:
|
42
|
-
ruby-version: '3.0'
|
43
|
-
bundler-cache: true
|
44
|
-
- run: bundle exec rubocop
|
@@ -0,0 +1,16 @@
|
|
1
|
+
name: docker-build
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
tags:
|
5
|
+
- '*'
|
6
|
+
jobs:
|
7
|
+
docker-build:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v2
|
11
|
+
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
12
|
+
with:
|
13
|
+
registry: ghcr.io
|
14
|
+
username: ${{ github.actor }}
|
15
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
16
|
+
- run: make docker-push
|
@@ -0,0 +1,16 @@
|
|
1
|
+
name: rubocop
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
pull_request:
|
5
|
+
schedule:
|
6
|
+
- cron: 45 4 * * 0
|
7
|
+
jobs:
|
8
|
+
rubocop:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v2
|
12
|
+
- uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: '3.1'
|
15
|
+
bundler-cache: true
|
16
|
+
- run: bundle exec rubocop
|
data/CHANGELOG.markdown
CHANGED
@@ -2,6 +2,18 @@
|
|
2
2
|
|
3
3
|
## unreleased
|
4
4
|
|
5
|
+
## v0.8.0.20220418 (2022-04-18)
|
6
|
+
|
7
|
+
* advancecomp 2.3 and jpegoptim 1.4.7 [@toy](https://github.com/toy)
|
8
|
+
|
9
|
+
## v0.8.0.20220131 (2022-01-31)
|
10
|
+
|
11
|
+
* liblcms 2.13 [@toy](https://github.com/toy)
|
12
|
+
|
13
|
+
## v0.8.0.20220117 (2022-01-17)
|
14
|
+
|
15
|
+
* libjpeg 9e and pngquant 2.17.0 [@toy](https://github.com/toy)
|
16
|
+
|
5
17
|
## v0.8.0.20211116 (2021-11-16)
|
6
18
|
|
7
19
|
* oxipng 5.0.1 [@toy](https://github.com/toy)
|
data/Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
FROM alpine
|
1
|
+
FROM alpine as base
|
2
2
|
ENV LD_LIBRARY_PATH=/usr/local/lib
|
3
3
|
WORKDIR /tmp
|
4
4
|
|
@@ -85,7 +85,7 @@ ARG JPEGARCHIVE_SHA256
|
|
85
85
|
COPY download/jpegarchive-$JPEGARCHIVE_VER.tar.gz download/
|
86
86
|
RUN ./extract jpegarchive && \
|
87
87
|
cd build/jpegarchive && \
|
88
|
-
make install
|
88
|
+
CFLAGS=-fcommon make install
|
89
89
|
|
90
90
|
FROM libjpeg as jpegoptim
|
91
91
|
ARG JPEGOPTIM_VER
|
@@ -105,7 +105,7 @@ RUN ./extract optipng && \
|
|
105
105
|
./configure && \
|
106
106
|
make install
|
107
107
|
|
108
|
-
FROM rust:1
|
108
|
+
FROM rust:1-alpine as oxipng
|
109
109
|
RUN apk add --no-cache build-base
|
110
110
|
COPY script/extract ./
|
111
111
|
ARG OXIPNG_VER
|
data/LICENSE.txt
CHANGED
data/Makefile
CHANGED
@@ -2,20 +2,20 @@ all :
|
|
2
2
|
|
3
3
|
# ====== VERSIONS ======
|
4
4
|
|
5
|
-
ADVANCECOMP_VER := 2.
|
5
|
+
ADVANCECOMP_VER := 2.3
|
6
6
|
GIFSICLE_VER := 1.93
|
7
7
|
JHEAD_VER := 3.04
|
8
8
|
JPEGARCHIVE_VER := 2.2.0
|
9
|
-
JPEGOPTIM_VER := 1.4.
|
10
|
-
LIBJPEG_VER :=
|
11
|
-
LIBLCMS_VER := 2.
|
9
|
+
JPEGOPTIM_VER := 1.4.7
|
10
|
+
LIBJPEG_VER := 9e
|
11
|
+
LIBLCMS_VER := 2.13
|
12
12
|
LIBMOZJPEG_VER := 4.0.3
|
13
13
|
LIBPNG_VER := 1.6.37
|
14
14
|
LIBZ_VER := 1.2.11
|
15
15
|
OPTIPNG_VER := 0.7.7
|
16
16
|
OXIPNG_VER := 5.0.1
|
17
17
|
PNGCRUSH_VER := 1.8.13
|
18
|
-
PNGQUANT_VER := 2.
|
18
|
+
PNGQUANT_VER := 2.17.0
|
19
19
|
|
20
20
|
# ====== CHECKSUMS ======
|
21
21
|
|
@@ -78,6 +78,7 @@ $(call archive,$1)
|
|
78
78
|
# download archive from url
|
79
79
|
$$($1_TGZ) :
|
80
80
|
mkdir -p $(DL_DIR)
|
81
|
+
test -w $(DL_DIR)
|
81
82
|
while ! mkdir $$@.lock 2> /dev/null; do sleep 1; done
|
82
83
|
wget -q -O $$@.tmp $(subst [VER],$($1_VER),$(strip $2))
|
83
84
|
mv $$@.tmp $$@
|
@@ -88,7 +89,7 @@ $(eval $(call archive-dl,ADVANCECOMP, https://github.com/amadvance/advancecomp/r
|
|
88
89
|
$(eval $(call archive-dl,GIFSICLE, https://www.lcdf.org/gifsicle/gifsicle-[VER].tar.gz))
|
89
90
|
$(eval $(call archive-dl,JHEAD, https://www.sentex.ca/~mwandel/jhead/jhead-[VER].tar.gz))
|
90
91
|
$(eval $(call archive-dl,JPEGARCHIVE, https://github.com/danielgtaylor/jpeg-archive/archive/v[VER].tar.gz))
|
91
|
-
$(eval $(call archive-dl,JPEGOPTIM, https://
|
92
|
+
$(eval $(call archive-dl,JPEGOPTIM, https://github.com/tjko/jpegoptim/archive/v[VER].tar.gz))
|
92
93
|
$(eval $(call archive-dl,LIBJPEG, https://www.ijg.org/files/jpegsrc.v[VER].tar.gz))
|
93
94
|
$(eval $(call archive-dl,LIBLCMS, https://prdownloads.sourceforge.net/lcms/lcms2-[VER].tar.gz?download))
|
94
95
|
$(eval $(call archive-dl,LIBMOZJPEG, https://github.com/mozilla/mozjpeg/archive/v[VER].tar.gz))
|
@@ -266,15 +267,21 @@ DOCKER_TAG := $(shell date +%Y%m%d)
|
|
266
267
|
|
267
268
|
docker-build : download
|
268
269
|
@docker build \
|
270
|
+
--pull \
|
269
271
|
$(foreach archive,$(ARCHIVES),--build-arg $(archive)_VER=$($(archive)_VER) --build-arg $(archive)_SHA256=$($(archive)_SHA256)) \
|
270
|
-
-t $(DOCKER_IMAGE):$(DOCKER_TAG) \
|
271
272
|
-t $(DOCKER_IMAGE):latest \
|
272
273
|
.
|
273
274
|
.PHONY : docker-build
|
274
275
|
|
275
|
-
docker-
|
276
|
-
@docker
|
276
|
+
docker-tag : docker-build
|
277
|
+
@docker tag \
|
278
|
+
$(DOCKER_IMAGE):latest \
|
279
|
+
$(DOCKER_IMAGE):$(DOCKER_TAG)
|
280
|
+
.PHONY : docker-tag
|
281
|
+
|
282
|
+
docker-push : docker-tag
|
277
283
|
@docker push $(DOCKER_IMAGE):latest
|
284
|
+
@docker push $(DOCKER_IMAGE):$(DOCKER_TAG)
|
278
285
|
.PHONY : docker-push
|
279
286
|
|
280
287
|
# ====== CLEAN ======
|
data/README.markdown
CHANGED
data/checksums.mk
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
ADVANCECOMP_SHA256 :=
|
1
|
+
ADVANCECOMP_SHA256 := 811f661dfbbdddefdcb5eaf133e403ca2af99328b850b22c1249f7bebe657578
|
2
2
|
GIFSICLE_SHA256 := 92f67079732bf4c1da087e6ae0905205846e5ac777ba5caa66d12a73aa943447
|
3
3
|
JHEAD_SHA256 := ef89bbcf4f6c25ed88088cf242a47a6aedfff4f08cc7dc205bf3e2c0f10a03c9
|
4
4
|
JPEGARCHIVE_SHA256 := 3da16a5abbddd925dee0379aa51d9fe0cba33da0b5703be27c13a2dda3d7ed75
|
5
|
-
JPEGOPTIM_SHA256 :=
|
6
|
-
LIBJPEG_SHA256 :=
|
7
|
-
LIBLCMS_SHA256 :=
|
5
|
+
JPEGOPTIM_SHA256 := c52616f2fb8d481315871680f9943b0f58c553d1e0c49a6bd4691a3e66d7e6de
|
6
|
+
LIBJPEG_SHA256 := 4077d6a6a75aeb01884f708919d25934c93305e49f7e3f36db9129320e6f4f3d
|
7
|
+
LIBLCMS_SHA256 := 0c67a5cc144029cfa34647a52809ec399aae488db4258a6a66fba318474a070f
|
8
8
|
LIBMOZJPEG_SHA256 := 4f22731db2afa14531a5bf2633d8af79ca5cb697a550f678bf43f24e5e409ef0
|
9
9
|
LIBPNG_SHA256 := daeb2620d829575513e35fecc83f0d3791a620b9b93d800b763542ece9390fb4
|
10
10
|
LIBZ_SHA256 := c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
|
11
11
|
OPTIPNG_SHA256 := 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452
|
12
12
|
OXIPNG_SHA256 := aff72d2f627617f3f36d9796e65b83eb34f24d2c94f3a55612ade2df8ab8d946
|
13
13
|
PNGCRUSH_SHA256 := fed0aaf5c098aa8c7f78c75365cd18d7341417326ecbdba547876b7b4f3df4be
|
14
|
-
PNGQUANT_SHA256 :=
|
14
|
+
PNGQUANT_SHA256 := a27cf0e64db499ccb3ddae9b36036e881f78293e46ec27a9e7a86a3802fcda66
|
data/image_optim_pack.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'image_optim_pack'
|
5
|
-
s.version = '0.8.0.
|
5
|
+
s.version = '0.8.0.20220418'
|
6
6
|
s.summary = %q{Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress, jpegoptim, jpegtran, optipng, pngcrush, pngquant}
|
7
7
|
s.homepage = "https://github.com/toy/#{s.name}"
|
8
8
|
s.authors = ['Ivan Kuchin']
|
data/script/platform_downloads
CHANGED
@@ -5,7 +5,26 @@ require 'gems'
|
|
5
5
|
require 'ostruct'
|
6
6
|
require 'terminal-table'
|
7
7
|
|
8
|
-
|
8
|
+
ATTRIBUTES = %i[
|
9
|
+
authors
|
10
|
+
built_at
|
11
|
+
created_at
|
12
|
+
description
|
13
|
+
downloads_count
|
14
|
+
metadata
|
15
|
+
number
|
16
|
+
summary
|
17
|
+
platform
|
18
|
+
rubygems_version
|
19
|
+
ruby_version
|
20
|
+
prerelease
|
21
|
+
licenses
|
22
|
+
requirements
|
23
|
+
sha
|
24
|
+
].freeze
|
25
|
+
Version = Struct.new(*ATTRIBUTES, :keyword_init => true)
|
26
|
+
|
27
|
+
versions = Gems.versions('image_optim_pack').map(&Version.method(:new))
|
9
28
|
|
10
29
|
platforms = versions.map(&:platform).uniq.sort_by do |platform|
|
11
30
|
platform.sub('amd64', 'x86_64').split('-').reverse
|
data/vendor/darwin-x86_64/advpng
CHANGED
Binary file
|
Binary file
|
data/vendor/darwin-x86_64/jhead
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/darwin-x86_64/oxipng
CHANGED
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_optim_pack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.0.
|
4
|
+
version: 0.8.0.20220418
|
5
5
|
platform: x86_64-darwin
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: image_optim
|
@@ -100,6 +100,8 @@ extra_rdoc_files: []
|
|
100
100
|
files:
|
101
101
|
- ".dockerignore"
|
102
102
|
- ".github/workflows/check.yml"
|
103
|
+
- ".github/workflows/docker-build.yml"
|
104
|
+
- ".github/workflows/rubocop.yml"
|
103
105
|
- ".gitignore"
|
104
106
|
- ".rubocop.yml"
|
105
107
|
- CHANGELOG.markdown
|
@@ -175,7 +177,7 @@ licenses:
|
|
175
177
|
metadata:
|
176
178
|
bug_tracker_uri: https://github.com/toy/image_optim_pack/issues
|
177
179
|
changelog_uri: https://github.com/toy/image_optim_pack/blob/master/CHANGELOG.markdown
|
178
|
-
documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.8.0.
|
180
|
+
documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.8.0.20220418
|
179
181
|
source_code_uri: https://github.com/toy/image_optim_pack
|
180
182
|
post_install_message:
|
181
183
|
rdoc_options: []
|
@@ -192,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
194
|
- !ruby/object:Gem::Version
|
193
195
|
version: '0'
|
194
196
|
requirements: []
|
195
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.3.11
|
196
198
|
signing_key:
|
197
199
|
specification_version: 4
|
198
200
|
summary: 'Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress,
|