image_optim_pack 0.8.0.20211116-x86-linux → 0.8.0.20220418-x86-linux

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: c36489de7e0022e146bc3b28264e75abcbd07681d9db4be40696e6a70c4254d9
4
- data.tar.gz: bf4d07924139ac6588e87abf6562cea1cbd2db53224733909fb8e62f83486ee4
3
+ metadata.gz: 6e0aa7a816a27ad7c3204962f607f1c45fd71b0bfda4aa2d4d9a64e0dbc0a878
4
+ data.tar.gz: 588e59f6fdc3ccb93104d1b06f4ade76ec2f7b123c09b8edeebec0506fa637cd
5
5
  SHA512:
6
- metadata.gz: 252f98520f9b5a13b62c27850f9af2a4c03799df5ead4a061e2b6f23d6e4eae5f278e201ef0cac47be052a474a740aa2443306708354e36e1b7d5ff805c891ec
7
- data.tar.gz: 1038836104cf849c7eb0d1b915c0f130b32b2caaab74fb97ec30b7a67c0465a346533447d604f409013637937ac60f763948f2cb887c04f193ec5427333c9051
6
+ metadata.gz: a2c1507032407d5db7ff43ded333ec26e6fa21780258deeaeedcb2e06fcc7403f92c26f44add28a19f70619e62a2f0810ec98767cb8e44763722bc6e97681e5a
7
+ data.tar.gz: fa3935b6a7fda799684ad9309900f2f0982cc1b2066c78fc2a79115fdb66fae9aec0eb1b76459e3b676d938a79dedc60ec9dc3906579da6343cecb1493589695
@@ -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: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/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2021 Ivan Kuchin
1
+ Copyright (c) 2014-2022 Ivan Kuchin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Makefile CHANGED
@@ -2,20 +2,20 @@ 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
10
- LIBJPEG_VER := 9d
11
- LIBLCMS_VER := 2.12
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.16.0
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://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/README.markdown CHANGED
@@ -113,4 +113,4 @@ make docker-push # will push tags created by docker-build
113
113
 
114
114
  ## Copyright
115
115
 
116
- Copyright (c) 2014-2021 Ivan Kuchin. See [LICENSE.txt](LICENSE.txt) for details.
116
+ Copyright (c) 2014-2022 Ivan Kuchin. See [LICENSE.txt](LICENSE.txt) for details.
data/checksums.mk CHANGED
@@ -1,14 +1,14 @@
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
6
- LIBJPEG_SHA256 := 6c434a3be59f8f62425b2e3c077e785c9ce30ee5874ea1c270e843f273ba71ee
7
- LIBLCMS_SHA256 := 18663985e864100455ac3e507625c438c3710354d85e5cbb7cd4043e11fe10f5
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 := 06c6fdded675753fbdbeacc2b63507fb30f42fae813e48a1684b240bb5b63522
14
+ PNGQUANT_SHA256 := a27cf0e64db499ccb3ddae9b36036e881f78293e46ec27a9e7a86a3802fcda66
@@ -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.20211116'
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']
@@ -5,7 +5,26 @@ require 'gems'
5
5
  require 'ostruct'
6
6
  require 'terminal-table'
7
7
 
8
- versions = Gems.versions('image_optim_pack').map(&OpenStruct.method(:new))
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
Binary file
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.20211116
4
+ version: 0.8.0.20220418
5
5
  platform: x86-linux
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-16 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,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.20211116
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.2.31
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,