image_optim_pack 0.8.0.20220131 → 0.8.0.20220418

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42ee74f56e5f6ebc0a7a0f0c91dd84829868bde9b095ce3c8baa5ad8e956581e
4
- data.tar.gz: b801ad92d69aa39ae20e4499483cf80a0851d906c07e7009c67332c7f406e7ee
3
+ metadata.gz: f74ad2edae9f66fb59f57323d6c7b2080451f2ee87cf79cc02976b8eea2482ae
4
+ data.tar.gz: 5907e66255dc0b6ce1360d2ed694dd948e69066499b3b5287e9c87f45175ca86
5
5
  SHA512:
6
- metadata.gz: 72583137f4bf0b13731ab31cb6525617ae74d8f27a244eca15ec3ca28cb832e5bf14103d89a59e54708dfce32328243f7301f6d2eb5537d776542d6d5b1136bb
7
- data.tar.gz: 70463b1471db64757ae024b7120269c626ea73d64e56910841f8556b7c9fd6df525d7b50b2049634014adaefbfb3b2e225c5e3751452c451d489fb4a6880925d
6
+ metadata.gz: 1e1f3de2553d0736e68dfd0e603d73d49023f58c7750f60b7f619216576a8f48849d5171a305cdcf6c83367129928b03edbd66dae7d71ceb7d81f0ca4f170066
7
+ data.tar.gz: 613b15a5c0204c7a42413e2a4b2aae0aacb10fab146b85865d1edfe1e3bcb23d0735af00fe605bc3266b1c7001670139c2e2d7188302474141d1f7f2b0ced0aa
@@ -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
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,10 @@
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
+
5
9
  ## v0.8.0.20220131 (2022-01-31)
6
10
 
7
11
  * liblcms 2.13 [@toy](https://github.com/toy)
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM alpine:3.12 as base
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.55-alpine3.13 as oxipng
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/Makefile CHANGED
@@ -2,11 +2,11 @@ all :
2
2
 
3
3
  # ====== VERSIONS ======
4
4
 
5
- ADVANCECOMP_VER := 2.1
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.6
9
+ JPEGOPTIM_VER := 1.4.7
10
10
  LIBJPEG_VER := 9e
11
11
  LIBLCMS_VER := 2.13
12
12
  LIBMOZJPEG_VER := 4.0.3
@@ -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://www.kokkonen.net/tjko/src/jpegoptim-[VER].tar.gz))
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-push : docker-build
276
- @docker push $(DOCKER_IMAGE):$(DOCKER_TAG)
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/checksums.mk CHANGED
@@ -1,8 +1,8 @@
1
- ADVANCECOMP_SHA256 := 3ac0875e86a8517011976f04107186d5c60d434954078bc502ee731480933eb8
1
+ ADVANCECOMP_SHA256 := 811f661dfbbdddefdcb5eaf133e403ca2af99328b850b22c1249f7bebe657578
2
2
  GIFSICLE_SHA256 := 92f67079732bf4c1da087e6ae0905205846e5ac777ba5caa66d12a73aa943447
3
3
  JHEAD_SHA256 := ef89bbcf4f6c25ed88088cf242a47a6aedfff4f08cc7dc205bf3e2c0f10a03c9
4
4
  JPEGARCHIVE_SHA256 := 3da16a5abbddd925dee0379aa51d9fe0cba33da0b5703be27c13a2dda3d7ed75
5
- JPEGOPTIM_SHA256 := 88b1eb64c2a33a2f013f068df8b0331f42c019267401ae3fa28e3277403a5ab7
5
+ JPEGOPTIM_SHA256 := c52616f2fb8d481315871680f9943b0f58c553d1e0c49a6bd4691a3e66d7e6de
6
6
  LIBJPEG_SHA256 := 4077d6a6a75aeb01884f708919d25934c93305e49f7e3f36db9129320e6f4f3d
7
7
  LIBLCMS_SHA256 := 0c67a5cc144029cfa34647a52809ec399aae488db4258a6a66fba318474a070f
8
8
  LIBMOZJPEG_SHA256 := 4f22731db2afa14531a5bf2633d8af79ca5cb697a550f678bf43f24e5e409ef0
@@ -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.20220131'
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']
Binary file
Binary file
Binary file
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.20220131
4
+ version: 0.8.0.20220418
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-31 00:00:00.000000000 Z
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,7 @@ extra_rdoc_files: []
100
100
  files:
101
101
  - ".dockerignore"
102
102
  - ".github/workflows/check.yml"
103
+ - ".github/workflows/docker-build.yml"
103
104
  - ".github/workflows/rubocop.yml"
104
105
  - ".gitignore"
105
106
  - ".rubocop.yml"
@@ -204,7 +205,7 @@ licenses:
204
205
  metadata:
205
206
  bug_tracker_uri: https://github.com/toy/image_optim_pack/issues
206
207
  changelog_uri: https://github.com/toy/image_optim_pack/blob/master/CHANGELOG.markdown
207
- documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.8.0.20220131
208
+ documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.8.0.20220418
208
209
  source_code_uri: https://github.com/toy/image_optim_pack
209
210
  post_install_message:
210
211
  rdoc_options: []
@@ -221,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
222
  - !ruby/object:Gem::Version
222
223
  version: '0'
223
224
  requirements: []
224
- rubygems_version: 3.3.5
225
+ rubygems_version: 3.3.11
225
226
  signing_key:
226
227
  specification_version: 4
227
228
  summary: 'Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress,