image_optim_pack 0.6.0.20200116 → 0.7.0.20210430
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/.rubocop.yml +22 -3
- data/.travis.yml +17 -16
- data/CHANGELOG.markdown +25 -0
- data/LICENSE.txt +1 -1
- data/Makefile +7 -10
- data/README.markdown +2 -2
- data/Vagrantfile +2 -2
- data/boxes/.rubocop.yml +2 -5
- data/boxes/Rakefile +1 -3
- data/boxes/definitions/centos-amd64/definition.rb +3 -3
- data/boxes/definitions/centos-i386/definition.rb +3 -3
- data/boxes/definitions/centos-postinstall.sh +0 -4
- data/checksums.mk +3 -3
- data/image_optim_pack.gemspec +3 -3
- data/script/livecheck +5 -9
- data/script/run +1 -1
- data/spec/image_optim_spec.rb +5 -4
- 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/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/pngcrush +0 -0
- data/vendor/darwin-x86_64/pngquant +0 -0
- data/vendor/linux-i686/advpng +0 -0
- data/vendor/linux-i686/gifsicle +0 -0
- data/vendor/linux-i686/jhead +0 -0
- data/vendor/linux-i686/jpeg-recompress +0 -0
- data/vendor/linux-i686/jpegoptim +0 -0
- data/vendor/linux-i686/jpegtran +0 -0
- data/vendor/linux-i686/libjpeg.so +0 -0
- data/vendor/linux-i686/libpng.so +0 -0
- data/vendor/linux-i686/libz.so +0 -0
- data/vendor/linux-i686/optipng +0 -0
- data/vendor/linux-i686/pngcrush +0 -0
- data/vendor/linux-i686/pngquant +0 -0
- data/vendor/linux-x86_64/advpng +0 -0
- data/vendor/linux-x86_64/gifsicle +0 -0
- data/vendor/linux-x86_64/jhead +0 -0
- data/vendor/linux-x86_64/jpeg-recompress +0 -0
- data/vendor/linux-x86_64/jpegoptim +0 -0
- data/vendor/linux-x86_64/jpegtran +0 -0
- data/vendor/linux-x86_64/libjpeg.so +0 -0
- data/vendor/linux-x86_64/libpng.so +0 -0
- data/vendor/linux-x86_64/libz.so +0 -0
- data/vendor/linux-x86_64/optipng +0 -0
- data/vendor/linux-x86_64/pngcrush +0 -0
- data/vendor/linux-x86_64/pngquant +0 -0
- metadata +11 -30
- data/image_optim_pack-darwin-x86.gemspec +0 -3
- data/vendor/darwin-i386/advpng +0 -0
- data/vendor/darwin-i386/gifsicle +0 -0
- data/vendor/darwin-i386/jhead +0 -0
- data/vendor/darwin-i386/jpeg-recompress +0 -0
- data/vendor/darwin-i386/jpegoptim +0 -0
- data/vendor/darwin-i386/jpegtran +0 -0
- data/vendor/darwin-i386/libjpeg.dylib +0 -0
- data/vendor/darwin-i386/libpng.dylib +0 -0
- data/vendor/darwin-i386/libz.dylib +0 -0
- data/vendor/darwin-i386/optipng +0 -0
- data/vendor/darwin-i386/pngcrush +0 -0
- data/vendor/darwin-i386/pngquant +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03e54f47e2b9afa4795d2c72a12a2ea46d7c39c4933a0921304887dcc47d95f5
|
4
|
+
data.tar.gz: 3a32d99587b4fd484b02127c330224484f3cea9ddfd9dbf11a91108876b76f08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1967619efa0bac013ef5c600ba7050d81ae626f706937e54ecb7c8425d9e5847f5182ad54a94ee159411c2e9da4d8b4d0e2af0a9b2c8f22b26a9fdd5eaef3b49
|
7
|
+
data.tar.gz: 9cda04fa99b0354d21d1e075cc21774c9265ae1bf96f1761801b8fbe2c33d2709827e69e8936283d610380973da374b56dee8104fbffd752418a27ed25446e73
|
data/.rubocop.yml
CHANGED
@@ -4,6 +4,7 @@ AllCops:
|
|
4
4
|
- 'build/**/*'
|
5
5
|
- 'download/**/*'
|
6
6
|
- Vagrantfile
|
7
|
+
NewCops: enable
|
7
8
|
|
8
9
|
Bundler/OrderedGems:
|
9
10
|
Enabled: false
|
@@ -17,6 +18,9 @@ Layout/DotPosition:
|
|
17
18
|
Layout/FirstHashElementIndentation:
|
18
19
|
EnforcedStyle: consistent
|
19
20
|
|
21
|
+
Layout/LineLength:
|
22
|
+
Max: 120
|
23
|
+
|
20
24
|
Layout/RescueEnsureAlignment:
|
21
25
|
Enabled: false
|
22
26
|
|
@@ -30,9 +34,6 @@ Metrics/BlockLength:
|
|
30
34
|
Exclude:
|
31
35
|
- spec/**/*_spec.rb
|
32
36
|
|
33
|
-
Metrics/LineLength:
|
34
|
-
Max: 120
|
35
|
-
|
36
37
|
Metrics/MethodLength:
|
37
38
|
Max: 15
|
38
39
|
|
@@ -40,6 +41,9 @@ Security/YAMLLoad:
|
|
40
41
|
Exclude:
|
41
42
|
- script/livecheck
|
42
43
|
|
44
|
+
Style/AccessorGrouping:
|
45
|
+
Enabled: false
|
46
|
+
|
43
47
|
Style/Alias:
|
44
48
|
EnforcedStyle: prefer_alias_method
|
45
49
|
|
@@ -52,15 +56,30 @@ Style/EmptyCaseCondition:
|
|
52
56
|
Style/FormatStringToken:
|
53
57
|
Enabled: false
|
54
58
|
|
59
|
+
Style/HashConversion:
|
60
|
+
Enabled: false
|
61
|
+
|
62
|
+
Style/HashEachMethods:
|
63
|
+
Enabled: true
|
64
|
+
|
55
65
|
Style/HashSyntax:
|
56
66
|
EnforcedStyle: hash_rockets
|
57
67
|
|
68
|
+
Style/HashTransformKeys:
|
69
|
+
Enabled: false
|
70
|
+
|
71
|
+
Style/HashTransformValues:
|
72
|
+
Enabled: false
|
73
|
+
|
58
74
|
Style/IfUnlessModifier:
|
59
75
|
Enabled: false
|
60
76
|
|
61
77
|
Style/MultilineBlockChain:
|
62
78
|
Enabled: false
|
63
79
|
|
80
|
+
Style/RedundantArgument:
|
81
|
+
Enabled: false
|
82
|
+
|
64
83
|
Style/Semicolon:
|
65
84
|
AllowAsExpressionSeparator: true
|
66
85
|
|
data/.travis.yml
CHANGED
@@ -1,26 +1,25 @@
|
|
1
|
-
|
2
|
-
dist: trusty
|
1
|
+
dist: xenial
|
3
2
|
language: ruby
|
4
3
|
rvm:
|
5
|
-
- '1.8.7-p374'
|
6
4
|
- '1.9.3-p551'
|
7
5
|
- '2.0.0-p648'
|
8
6
|
- '2.1.10'
|
9
7
|
- '2.2.10'
|
10
8
|
- '2.3.8'
|
11
|
-
- '2.4.
|
12
|
-
- '2.5.
|
13
|
-
- '2.6.
|
14
|
-
- '2.7.
|
15
|
-
- '
|
16
|
-
- 'jruby-9.2.
|
9
|
+
- '2.4.10'
|
10
|
+
- '2.5.9'
|
11
|
+
- '2.6.7'
|
12
|
+
- '2.7.3'
|
13
|
+
- '3.0.1'
|
14
|
+
- 'jruby-9.2.14.0'
|
17
15
|
script:
|
18
16
|
- make test
|
19
17
|
- bundle exec image_optim --info
|
20
18
|
- bundle exec rspec
|
21
19
|
before_install:
|
20
|
+
- 'echo "gem: --no-ri --no-rdoc --no-document" > ~/.gemrc'
|
22
21
|
- gem install rubygems-update || gem install rubygems-update --version '< 3'
|
23
|
-
-
|
22
|
+
- update_rubygems
|
24
23
|
- gem install bundler || gem install bundler --version '< 2'
|
25
24
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install imagemagick; fi; which convert
|
26
25
|
- make ldd-version
|
@@ -28,13 +27,15 @@ matrix:
|
|
28
27
|
include:
|
29
28
|
- os: osx
|
30
29
|
rvm: default
|
31
|
-
osx_image:
|
30
|
+
osx_image: xcode11.3
|
32
31
|
- os: osx
|
33
32
|
rvm: default
|
34
|
-
osx_image:
|
35
|
-
- env: RUBOCOP
|
36
|
-
rvm: '2.6.
|
33
|
+
osx_image: xcode12.2
|
34
|
+
- env: RUBOCOP=1
|
35
|
+
rvm: '2.6.7'
|
37
36
|
script: bundle exec rubocop
|
38
|
-
- env: CHECK_RUBIES
|
39
|
-
rvm: '2.6.
|
37
|
+
- env: CHECK_RUBIES=1
|
38
|
+
rvm: '2.6.7'
|
40
39
|
script: bundle exec travis_check_rubies
|
40
|
+
allow_failures:
|
41
|
+
- rvm: 'jruby-9.2.14.0'
|
data/CHANGELOG.markdown
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
## unreleased
|
4
4
|
|
5
|
+
## v0.7.0.20210430 (2021-04-30)
|
6
|
+
|
7
|
+
* pngquant 2.14.1 [@toy](https://github.com/toy)
|
8
|
+
* libmozjpeg 4.0.3 [@toy](https://github.com/toy)
|
9
|
+
|
10
|
+
## v0.7.0.20210206 (2021-02-06)
|
11
|
+
|
12
|
+
* libmozjpeg 4.0.2 [@toy](https://github.com/toy)
|
13
|
+
|
14
|
+
## v0.7.0 (2020-12-05)
|
15
|
+
|
16
|
+
* libmozjpeg 4.0.0 [@toy](https://github.com/toy)
|
17
|
+
* Set darwin deployment target to 10.9 [@toy](https://github.com/toy)
|
18
|
+
* Remove 32 bit (i386) binaries/platform on darwin [@toy](https://github.com/toy)
|
19
|
+
* Switch to centos 7 for linux builds as 6.9 is outdated [@toy](https://github.com/toy)
|
20
|
+
* pngquant 2.13.1 [@toy](https://github.com/toy)
|
21
|
+
|
22
|
+
## v0.6.0.20201024 (2020-10-24)
|
23
|
+
|
24
|
+
* pngquant 2.13.0 [@toy](https://github.com/toy)
|
25
|
+
|
26
|
+
## v0.6.0.20200215 (2020-02-15)
|
27
|
+
|
28
|
+
* jpegarchive 2.2.0 and libmozjpeg 3.3.1 [@toy](https://github.com/toy)
|
29
|
+
|
5
30
|
## v0.6.0.20200116 (2020-01-16)
|
6
31
|
|
7
32
|
* libjpeg 9d [@toy](https://github.com/toy)
|
data/LICENSE.txt
CHANGED
data/Makefile
CHANGED
@@ -5,15 +5,15 @@ all :
|
|
5
5
|
ADVANCECOMP_VER := 2.1
|
6
6
|
GIFSICLE_VER := 1.92
|
7
7
|
JHEAD_VER := 3.04
|
8
|
-
JPEGARCHIVE_VER := 2.
|
8
|
+
JPEGARCHIVE_VER := 2.2.0
|
9
9
|
JPEGOPTIM_VER := 1.4.6
|
10
10
|
LIBJPEG_VER := 9d
|
11
|
-
LIBMOZJPEG_VER := 3
|
11
|
+
LIBMOZJPEG_VER := 4.0.3
|
12
12
|
LIBPNG_VER := 1.6.37
|
13
13
|
LIBZ_VER := 1.2.11
|
14
14
|
OPTIPNG_VER := 0.7.7
|
15
15
|
PNGCRUSH_VER := 1.8.13
|
16
|
-
PNGQUANT_VER := 2.
|
16
|
+
PNGQUANT_VER := 2.14.1
|
17
17
|
|
18
18
|
# ====== CHECKSUMS ======
|
19
19
|
|
@@ -85,7 +85,7 @@ endef
|
|
85
85
|
$(eval $(call archive-dl,ADVANCECOMP, https://github.com/amadvance/advancecomp/releases/download/v[VER]/advancecomp-[VER].tar.gz))
|
86
86
|
$(eval $(call archive-dl,GIFSICLE, https://www.lcdf.org/gifsicle/gifsicle-[VER].tar.gz))
|
87
87
|
$(eval $(call archive-dl,JHEAD, https://www.sentex.ca/~mwandel/jhead/jhead-[VER].tar.gz))
|
88
|
-
$(eval $(call archive-dl,JPEGARCHIVE, https://github.com/danielgtaylor/jpeg-archive/archive/[VER].tar.gz))
|
88
|
+
$(eval $(call archive-dl,JPEGARCHIVE, https://github.com/danielgtaylor/jpeg-archive/archive/v[VER].tar.gz))
|
89
89
|
$(eval $(call archive-dl,JPEGOPTIM, https://www.kokkonen.net/tjko/src/jpegoptim-[VER].tar.gz))
|
90
90
|
$(eval $(call archive-dl,LIBJPEG, https://www.ijg.org/files/jpegsrc.v[VER].tar.gz))
|
91
91
|
$(eval $(call archive-dl,LIBMOZJPEG, https://github.com/mozilla/mozjpeg/archive/v[VER].tar.gz))
|
@@ -327,7 +327,7 @@ export CPPFLAGS = $(GCC_FLAGS)
|
|
327
327
|
export LDFLAGS = $(GCC_FLAGS)
|
328
328
|
|
329
329
|
ifdef IS_DARWIN
|
330
|
-
export MACOSX_DEPLOYMENT_TARGET := 10.
|
330
|
+
export MACOSX_DEPLOYMENT_TARGET := 10.9
|
331
331
|
GCC_FLAGS += -arch $(ARCH)
|
332
332
|
CXXFLAGS += -stdlib=libc++
|
333
333
|
endif
|
@@ -388,11 +388,8 @@ endif
|
|
388
388
|
|
389
389
|
## libmozjpeg
|
390
390
|
$(LIBMOZJPEG_TARGET) :
|
391
|
-
cd $(DIR) &&
|
392
|
-
cd $(DIR) &&
|
393
|
-
cd $(DIR)/simd && $(MAKE)
|
394
|
-
cd $(DIR) && $(MAKE) libjpeg.la
|
395
|
-
cd $(DIR) && $(ln_s) .libs/libjpeg.a .
|
391
|
+
cd $(DIR) && cmake -DPNG_SUPPORTED=0 .
|
392
|
+
cd $(DIR) && $(MAKE) jpeg-static
|
396
393
|
|
397
394
|
## libpng
|
398
395
|
$(eval $(call depend,LIBPNG,LIBZ))
|
data/README.markdown
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
Precompiled binaries for [`image_optim`](https://github.com/toy/image_optim).
|
10
10
|
|
11
|
-
Contains binaries for Mac OS X (>= 10.
|
11
|
+
Contains binaries for Mac OS X (>= 10.9, x86\_64) and Linux (i686 and x86\_64).
|
12
12
|
|
13
13
|
A test application with latest `image_optim` and `image_optim_pack` is available on heroku: https://iopack.herokuapp.com/.
|
14
14
|
|
@@ -92,4 +92,4 @@ make clobber # `clean-all` and remove download directory
|
|
92
92
|
|
93
93
|
## Copyright
|
94
94
|
|
95
|
-
Copyright (c) 2014-
|
95
|
+
Copyright (c) 2014-2021 Ivan Kuchin. See [LICENSE.txt](LICENSE.txt) for details.
|
data/Vagrantfile
CHANGED
@@ -28,9 +28,9 @@ Vagrant.configure('2') do |config|
|
|
28
28
|
set -ex
|
29
29
|
if command -v apt-get; then
|
30
30
|
apt-get update
|
31
|
-
apt-get -y install rsync ntpdate make wget gcc g++ chrpath perl pkg-config autoconf automake libtool nasm
|
31
|
+
apt-get -y install rsync ntpdate make wget gcc g++ chrpath perl pkg-config autoconf automake libtool nasm cmake
|
32
32
|
else
|
33
|
-
yum -y install rsync ntpdate make wget gcc gcc-c++ chrpath perl pkg-config autoconf automake libtool nasm
|
33
|
+
yum -y install rsync ntpdate make wget gcc gcc-c++ chrpath perl pkg-config autoconf automake libtool nasm cmake
|
34
34
|
fi
|
35
35
|
SH
|
36
36
|
end
|
data/boxes/.rubocop.yml
CHANGED
@@ -1,13 +1,10 @@
|
|
1
1
|
inherit_from: ../.rubocop.yml
|
2
2
|
|
3
|
-
|
3
|
+
Layout/LineLength:
|
4
4
|
Enabled: false
|
5
5
|
|
6
|
-
|
6
|
+
Lint/RedundantSplatExpansion:
|
7
7
|
Enabled: false
|
8
8
|
|
9
9
|
Security/Eval:
|
10
10
|
Exclude: [Rakefile]
|
11
|
-
|
12
|
-
Style/BracesAroundHashParameters:
|
13
|
-
Enabled: false
|
data/boxes/Rakefile
CHANGED
@@ -37,9 +37,7 @@ class Box # :nodoc:
|
|
37
37
|
private
|
38
38
|
|
39
39
|
def definition
|
40
|
-
@definition ||=
|
41
|
-
eval definition_path.read.sub('Veewee::Session.declare', '{}.merge')
|
42
|
-
end
|
40
|
+
@definition ||= eval definition_path.read.sub('Veewee::Session.declare', '{}.merge')
|
43
41
|
end
|
44
42
|
|
45
43
|
def assert_box_created
|
@@ -7,9 +7,9 @@ Veewee::Session.declare({
|
|
7
7
|
:disk_format => 'VDI',
|
8
8
|
:hostiocache => 'off',
|
9
9
|
:os_type_id => 'RedHat6_64',
|
10
|
-
:iso_file => 'CentOS-
|
11
|
-
:iso_src => 'http://
|
12
|
-
:iso_sha256 => '
|
10
|
+
:iso_file => 'CentOS-7-x86_64-Minimal-2009.iso',
|
11
|
+
:iso_src => 'http://linux.darkpenguin.net/distros/CentOS/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso',
|
12
|
+
:iso_sha256 => '07b94e6b1a0b0260b94c83d6bb76b26bf7a310dc78d7a9c7432809fb9bc6194a',
|
13
13
|
:iso_download_timeout => '1000',
|
14
14
|
:boot_wait => '10',
|
15
15
|
:boot_cmd_sequence => [
|
@@ -7,9 +7,9 @@ Veewee::Session.declare({
|
|
7
7
|
:disk_format => 'VDI',
|
8
8
|
:hostiocache => 'off',
|
9
9
|
:os_type_id => 'RedHat',
|
10
|
-
:iso_file => 'CentOS-
|
11
|
-
:iso_src => 'http://
|
12
|
-
:iso_sha256 => '
|
10
|
+
:iso_file => 'CentOS-7-i386-Minimal-2009.iso',
|
11
|
+
:iso_src => 'http://linux.darkpenguin.net/distros/CentOS-AltArch/7.9.2009/isos/i386/CentOS-7-i386-Minimal-2009.iso',
|
12
|
+
:iso_sha256 => 'bcbde5d345c5013fa618c38380765547be01a354883b3055f32d7067dd7b5bca',
|
13
13
|
:iso_download_timeout => '1000',
|
14
14
|
:boot_wait => '10',
|
15
15
|
:boot_cmd_sequence => [
|
@@ -25,9 +25,5 @@ chown -R vagrant /home/vagrant/.ssh
|
|
25
25
|
|
26
26
|
yum -y clean all
|
27
27
|
|
28
|
-
# Remove traces of mac address from network configuration
|
29
|
-
sed -i /HWADDR/d /etc/sysconfig/network-scripts/ifcfg-eth0
|
30
|
-
rm /etc/udev/rules.d/70-persistent-net.rules
|
31
|
-
|
32
28
|
# Zero out the free space to save space in the final image
|
33
29
|
dd if=/dev/zero of=/filler bs=1M || rm /filler
|
data/checksums.mk
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
ADVANCECOMP_SHA256 := 3ac0875e86a8517011976f04107186d5c60d434954078bc502ee731480933eb8
|
2
2
|
GIFSICLE_SHA256 := 5ab556c01d65fddf980749e3ccf50b7fd40de738b6df679999294cc5fabfce65
|
3
3
|
JHEAD_SHA256 := ef89bbcf4f6c25ed88088cf242a47a6aedfff4f08cc7dc205bf3e2c0f10a03c9
|
4
|
-
JPEGARCHIVE_SHA256 :=
|
4
|
+
JPEGARCHIVE_SHA256 := 3da16a5abbddd925dee0379aa51d9fe0cba33da0b5703be27c13a2dda3d7ed75
|
5
5
|
JPEGOPTIM_SHA256 := 88b1eb64c2a33a2f013f068df8b0331f42c019267401ae3fa28e3277403a5ab7
|
6
6
|
LIBJPEG_SHA256 := 99cb50e48a4556bc571dadd27931955ff458aae32f68c4d9c39d624693f69c32
|
7
|
-
LIBMOZJPEG_SHA256 :=
|
7
|
+
LIBMOZJPEG_SHA256 := 4f22731db2afa14531a5bf2633d8af79ca5cb697a550f678bf43f24e5e409ef0
|
8
8
|
LIBPNG_SHA256 := daeb2620d829575513e35fecc83f0d3791a620b9b93d800b763542ece9390fb4
|
9
9
|
LIBZ_SHA256 := c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
|
10
10
|
OPTIPNG_SHA256 := 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452
|
11
11
|
PNGCRUSH_SHA256 := fed0aaf5c098aa8c7f78c75365cd18d7341417326ecbdba547876b7b4f3df4be
|
12
|
-
PNGQUANT_SHA256 :=
|
12
|
+
PNGQUANT_SHA256 := 70fd2c1bdaa763378e89c14a554e3b9ab7869ca2334ad34ed2cd6ad3cb37f443
|
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.
|
5
|
+
s.version = '0.7.0.20210430'
|
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']
|
@@ -54,7 +54,7 @@ Gem::Specification.new do |s|
|
|
54
54
|
s.add_dependency 'fspath', '>= 2.1', '< 4'
|
55
55
|
|
56
56
|
s.add_development_dependency 'rspec', '~> 3.0'
|
57
|
-
if RUBY_VERSION >= '2.
|
58
|
-
s.add_development_dependency 'rubocop', '~>
|
57
|
+
if RUBY_VERSION >= '2.4'
|
58
|
+
s.add_development_dependency 'rubocop', '~> 1.0'
|
59
59
|
end
|
60
60
|
end
|
data/script/livecheck
CHANGED
@@ -72,11 +72,7 @@ class Livecheck
|
|
72
72
|
def changelog_entry
|
73
73
|
github_user = `git config github.user`.strip
|
74
74
|
changed = livechecks.select(&:changed?)
|
75
|
-
|
76
|
-
*
|
77
|
-
#{to_sentence(changed.map(&:name_n_latest_version))}
|
78
|
-
[@#{github_user}](https://github.com/#{github_user})
|
79
|
-
].join(' ') + "\n"
|
75
|
+
"* #{to_sentence(changed.map(&:name_n_latest_version))} [@#{github_user}](https://github.com/#{github_user})\n"
|
80
76
|
end
|
81
77
|
|
82
78
|
def to_sentence(array)
|
@@ -175,7 +171,7 @@ Livecheck::Cli.new(ARGV).run
|
|
175
171
|
__END__
|
176
172
|
advancecomp:
|
177
173
|
url: https://github.com/amadvance/advancecomp/releases.atom
|
178
|
-
regexp:
|
174
|
+
regexp: <id>tag:github.com,2008:Repository/\d+/\D+?(\d+(?:\.\d+)*)</id>
|
179
175
|
gifsicle:
|
180
176
|
url: https://www.lcdf.org/gifsicle/
|
181
177
|
regexp: gifsicle-(\d+(?:\.\d+)*)\.tar\.gz
|
@@ -184,16 +180,16 @@ jhead:
|
|
184
180
|
regexp: jhead-(\d+(?:\.\d+)*)
|
185
181
|
jpegoptim:
|
186
182
|
url: https://github.com/tjko/jpegoptim/releases.atom
|
187
|
-
regexp: <
|
183
|
+
regexp: <id>tag:github.com,2008:Repository/\d+/\D+?(\d+(?:\.\d+)*)</id>
|
188
184
|
jpegarchive:
|
189
185
|
url: https://github.com/danielgtaylor/jpeg-archive/releases.atom
|
190
|
-
regexp: <
|
186
|
+
regexp: <id>tag:github.com,2008:Repository/\d+/\D+?(\d+(?:\.\d+)*)</id>
|
191
187
|
libjpeg:
|
192
188
|
url: https://www.ijg.org/files/
|
193
189
|
regexp: jpegsrc.v(.*?).tar.gz
|
194
190
|
libmozjpeg:
|
195
191
|
url: https://github.com/mozilla/mozjpeg/releases.atom
|
196
|
-
regexp: <
|
192
|
+
regexp: <id>tag:github.com,2008:Repository/\d+/\D+?(\d+(?:\.\d+)*)</id>
|
197
193
|
libpng:
|
198
194
|
url: https://sourceforge.net/projects/libpng/rss?path=/libpng16
|
199
195
|
regexp: /libpng\d*/(\d+(?:\.\d+)*)/
|
data/script/run
CHANGED
data/spec/image_optim_spec.rb
CHANGED
@@ -15,10 +15,11 @@ describe ImageOptim do
|
|
15
15
|
images_dir = FSPath.new(image_optim_root) / 'spec/images'
|
16
16
|
test_images = images_dir.glob('**/*.*')
|
17
17
|
|
18
|
-
isolated_options_base =
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
isolated_options_base = Hash[
|
19
|
+
ImageOptim::Worker.klasses.map do |klass|
|
20
|
+
[klass.bin_sym, false]
|
21
|
+
end
|
22
|
+
].merge(:skip_missing_workers => false)
|
22
23
|
|
23
24
|
ImageOptim::Worker.klasses.each do |worker_klass|
|
24
25
|
next if [:pngout, :svgo].include?(worker_klass.bin_sym)
|
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
|
Binary file
|
data/vendor/linux-i686/advpng
CHANGED
Binary file
|
data/vendor/linux-i686/gifsicle
CHANGED
Binary file
|
data/vendor/linux-i686/jhead
CHANGED
Binary file
|
Binary file
|
data/vendor/linux-i686/jpegoptim
CHANGED
Binary file
|
data/vendor/linux-i686/jpegtran
CHANGED
Binary file
|
Binary file
|
data/vendor/linux-i686/libpng.so
CHANGED
Binary file
|
data/vendor/linux-i686/libz.so
CHANGED
Binary file
|
data/vendor/linux-i686/optipng
CHANGED
Binary file
|
data/vendor/linux-i686/pngcrush
CHANGED
Binary file
|
data/vendor/linux-i686/pngquant
CHANGED
Binary file
|
data/vendor/linux-x86_64/advpng
CHANGED
Binary file
|
Binary file
|
data/vendor/linux-x86_64/jhead
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/linux-x86_64/libz.so
CHANGED
Binary file
|
data/vendor/linux-x86_64/optipng
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.
|
4
|
+
version: 0.7.0.20210430
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: image_optim
|
@@ -64,22 +64,16 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '0
|
68
|
-
- - "!="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 0.78.0
|
67
|
+
version: '1.0'
|
71
68
|
type: :development
|
72
69
|
prerelease: false
|
73
70
|
version_requirements: !ruby/object:Gem::Requirement
|
74
71
|
requirements:
|
75
72
|
- - "~>"
|
76
73
|
- !ruby/object:Gem::Version
|
77
|
-
version: '0
|
78
|
-
|
79
|
-
|
80
|
-
version: 0.78.0
|
81
|
-
description:
|
82
|
-
email:
|
74
|
+
version: '1.0'
|
75
|
+
description:
|
76
|
+
email:
|
83
77
|
executables: []
|
84
78
|
extensions: []
|
85
79
|
extra_rdoc_files: []
|
@@ -126,7 +120,6 @@ files:
|
|
126
120
|
- boxes/definitions/centos-i386/ks.cfg
|
127
121
|
- boxes/definitions/centos-postinstall.sh
|
128
122
|
- checksums.mk
|
129
|
-
- image_optim_pack-darwin-x86.gemspec
|
130
123
|
- image_optim_pack-darwin-x86_64.gemspec
|
131
124
|
- image_optim_pack-linux-x86.gemspec
|
132
125
|
- image_optim_pack-linux-x86_64.gemspec
|
@@ -139,18 +132,6 @@ files:
|
|
139
132
|
- spec/image_optim/pack_spec.rb
|
140
133
|
- spec/image_optim_spec.rb
|
141
134
|
- spec/spec_helper.rb
|
142
|
-
- vendor/darwin-i386/advpng
|
143
|
-
- vendor/darwin-i386/gifsicle
|
144
|
-
- vendor/darwin-i386/jhead
|
145
|
-
- vendor/darwin-i386/jpeg-recompress
|
146
|
-
- vendor/darwin-i386/jpegoptim
|
147
|
-
- vendor/darwin-i386/jpegtran
|
148
|
-
- vendor/darwin-i386/libjpeg.dylib
|
149
|
-
- vendor/darwin-i386/libpng.dylib
|
150
|
-
- vendor/darwin-i386/libz.dylib
|
151
|
-
- vendor/darwin-i386/optipng
|
152
|
-
- vendor/darwin-i386/pngcrush
|
153
|
-
- vendor/darwin-i386/pngquant
|
154
135
|
- vendor/darwin-x86_64/advpng
|
155
136
|
- vendor/darwin-x86_64/gifsicle
|
156
137
|
- vendor/darwin-x86_64/jhead
|
@@ -193,9 +174,9 @@ licenses:
|
|
193
174
|
metadata:
|
194
175
|
bug_tracker_uri: https://github.com/toy/image_optim_pack/issues
|
195
176
|
changelog_uri: https://github.com/toy/image_optim_pack/blob/master/CHANGELOG.markdown
|
196
|
-
documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.
|
177
|
+
documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.7.0.20210430
|
197
178
|
source_code_uri: https://github.com/toy/image_optim_pack
|
198
|
-
post_install_message:
|
179
|
+
post_install_message:
|
199
180
|
rdoc_options: []
|
200
181
|
require_paths:
|
201
182
|
- lib
|
@@ -210,8 +191,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
191
|
- !ruby/object:Gem::Version
|
211
192
|
version: '0'
|
212
193
|
requirements: []
|
213
|
-
rubygems_version: 3.1.
|
214
|
-
signing_key:
|
194
|
+
rubygems_version: 3.1.5
|
195
|
+
signing_key:
|
215
196
|
specification_version: 4
|
216
197
|
summary: 'Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress,
|
217
198
|
jpegoptim, jpegtran, optipng, pngcrush, pngquant'
|
data/vendor/darwin-i386/advpng
DELETED
Binary file
|
data/vendor/darwin-i386/gifsicle
DELETED
Binary file
|
data/vendor/darwin-i386/jhead
DELETED
Binary file
|
Binary file
|
Binary file
|
data/vendor/darwin-i386/jpegtran
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/darwin-i386/optipng
DELETED
Binary file
|
data/vendor/darwin-i386/pngcrush
DELETED
Binary file
|
data/vendor/darwin-i386/pngquant
DELETED
Binary file
|