image_optim_pack 0.5.0.20171208-amd64-freebsd → 0.5.0.20180103-amd64-freebsd
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 +5 -5
- data/.rubocop.yml +4 -1
- data/.travis.yml +6 -5
- data/CHANGELOG.markdown +4 -0
- data/LICENSE.txt +1 -1
- data/Makefile +5 -4
- data/README.markdown +2 -2
- data/image_optim_pack.gemspec +3 -3
- data/script/livecheck +2 -2
- data/script/platform_downloads +22 -19
- data/vendor/freebsd-amd64/optipng +0 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4789de18ae2793203456035df1bca895ad4e2920a67aa1708429cbfdf5f902c6
|
4
|
+
data.tar.gz: 421e440df12c33dab5ef87f0786ea0ed3ad8bed67a21f421249d49d7834ff3ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b14dc0f7ad2cdb93de51fadb1478cc3c6d50c70d7325f544ac9a7afcaebcf68b2549c1b61c49cbd3bc0500a94de63c1a50b6f21f9c9f94c0579da011eac5b5d3
|
7
|
+
data.tar.gz: 9734e97202d6e42f660d04a3b2b333a259a7dd4b49ffbe3a680a1660c9e5a27945bcd00c8d9b4b1c526c97cbd3c26714f935928dbc11a3a39f5acf20789c4000
|
data/.rubocop.yml
CHANGED
@@ -43,11 +43,14 @@ Style/DoubleNegation:
|
|
43
43
|
Style/EmptyCaseCondition:
|
44
44
|
Enabled: false
|
45
45
|
|
46
|
+
Style/FormatStringToken:
|
47
|
+
Enabled: false
|
48
|
+
|
46
49
|
Style/HashSyntax:
|
47
50
|
EnforcedStyle: hash_rockets
|
48
51
|
|
49
52
|
Style/IfUnlessModifier:
|
50
|
-
|
53
|
+
Enabled: false
|
51
54
|
|
52
55
|
Style/MultilineBlockChain:
|
53
56
|
Enabled: false
|
data/.travis.yml
CHANGED
@@ -5,9 +5,10 @@ rvm:
|
|
5
5
|
- '1.9.3-p551'
|
6
6
|
- '2.0.0-p648'
|
7
7
|
- '2.1.10'
|
8
|
-
- '2.2.
|
9
|
-
- '2.3.
|
10
|
-
- '2.4.
|
8
|
+
- '2.2.9'
|
9
|
+
- '2.3.6'
|
10
|
+
- '2.4.3'
|
11
|
+
- '2.5.0'
|
11
12
|
- 'jruby-9.0.5.0'
|
12
13
|
- 'jruby-9.1.9.0'
|
13
14
|
script:
|
@@ -29,8 +30,8 @@ matrix:
|
|
29
30
|
rvm: default
|
30
31
|
osx_image: xcode8.3
|
31
32
|
- env: RUBOCOP=✓
|
32
|
-
rvm: '2.4.
|
33
|
+
rvm: '2.4.3'
|
33
34
|
script: bundle exec rubocop
|
34
35
|
- env: CHECK_RUBIES=✓
|
35
|
-
rvm: '2.4.
|
36
|
+
rvm: '2.4.3'
|
36
37
|
script: bundle exec travis_check_rubies
|
data/CHANGELOG.markdown
CHANGED
data/LICENSE.txt
CHANGED
data/Makefile
CHANGED
@@ -11,7 +11,7 @@ LIBJPEG_VER := 9b
|
|
11
11
|
LIBMOZJPEG_VER := 3.1
|
12
12
|
LIBPNG_VER := 1.6.34
|
13
13
|
LIBZ_VER := 1.2.11
|
14
|
-
OPTIPNG_VER := 0.7.
|
14
|
+
OPTIPNG_VER := 0.7.7
|
15
15
|
PNGCRUSH_VER := 1.8.13
|
16
16
|
PNGQUANT_VER := 2.11.2
|
17
17
|
|
@@ -90,7 +90,7 @@ $(eval $(call archive-dl,PNGCRUSH, http://prdownloads.sourceforge.net/pmt/png
|
|
90
90
|
$(eval $(call archive,PNGQUANT))
|
91
91
|
|
92
92
|
PNGQUANT_GIT := $(DL_DIR)/pngquant.git
|
93
|
-
$(PNGQUANT_GIT) :; git clone --recursive https://github.com/
|
93
|
+
$(PNGQUANT_GIT) :; git clone --recursive https://github.com/kornelski/pngquant.git $@
|
94
94
|
$(PNGQUANT_TGZ) : $(PNGQUANT_GIT)
|
95
95
|
while ! mkdir $@.lock 2> /dev/null; do sleep 1; done
|
96
96
|
cd $(PNGQUANT_GIT) && git fetch && git checkout -q $(PNGQUANT_VER) && git submodule -q update
|
@@ -299,6 +299,8 @@ export CC := gcc
|
|
299
299
|
export CXX := g++
|
300
300
|
|
301
301
|
GCC_FLAGS := -O3
|
302
|
+
STATIC_LIBGCC := $(shell if $(CC) -v 2>&1 | fgrep -q gcc; then echo -static-libgcc; fi)
|
303
|
+
|
302
304
|
export CFLAGS = $(GCC_FLAGS)
|
303
305
|
export CXXFLAGS = $(GCC_FLAGS)
|
304
306
|
export CPPFLAGS = $(GCC_FLAGS)
|
@@ -419,8 +421,7 @@ $(PNGCRUSH_TARGET) :
|
|
419
421
|
|
420
422
|
## pngquant
|
421
423
|
$(eval $(call depend,PNGQUANT,LIBPNG LIBZ))
|
422
|
-
$(PNGQUANT_TARGET) : export CFLAGS := $(CFLAGS) $(shell if $(CC) -v 2>&1 | fgrep -q gcc; then echo -static-libgcc; fi)
|
423
424
|
$(PNGQUANT_TARGET) :
|
424
|
-
cd $(DIR) && ./configure --without-cocoa --without-lcms2 --extra-ldflags="$(XORIGIN)"
|
425
|
+
cd $(DIR) && ./configure --without-cocoa --without-lcms2 --extra-ldflags="$(XORIGIN) $(STATIC_LIBGCC)"
|
425
426
|
cd $(DIR) && $(MAKE) pngquant
|
426
427
|
$(call chrpath_origin,$@)
|
data/README.markdown
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
[](https://rubygems.org/gems/image_optim_pack)
|
2
2
|
[](https://travis-ci.org/toy/image_optim_pack)
|
3
|
-
[](https://codeclimate.com/github/toy/image_optim_pack)
|
4
4
|
[](https://gemnasium.com/toy/image_optim_pack)
|
5
5
|
[](https://inch-ci.org/github/toy/image_optim_pack)
|
6
6
|
|
@@ -90,4 +90,4 @@ make clobber # `clean-all` and remove download directory
|
|
90
90
|
|
91
91
|
## Copyright
|
92
92
|
|
93
|
-
Copyright (c) 2014-
|
93
|
+
Copyright (c) 2014-2018 Ivan Kuchin. See [LICENSE.txt](LICENSE.txt) for details.
|
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.0.
|
5
|
+
s.version = '0.5.0.20180103'
|
6
6
|
s.summary = %q{Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress, jpegoptim, jpegtran, optipng, pngcrush, pngquant}
|
7
7
|
s.homepage = "http://github.com/toy/#{s.name}"
|
8
8
|
s.authors = ['Ivan Kuchin']
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
s.add_dependency 'fspath', '>= 2.1', '< 4'
|
36
36
|
|
37
37
|
s.add_development_dependency 'rspec', '~> 3.0'
|
38
|
-
if RUBY_VERSION >= '2.
|
39
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
38
|
+
if RUBY_VERSION >= '2.1'
|
39
|
+
s.add_development_dependency 'rubocop', '~> 0.52'
|
40
40
|
end
|
41
41
|
end
|
data/script/livecheck
CHANGED
@@ -203,5 +203,5 @@ pngcrush:
|
|
203
203
|
url: https://sourceforge.net/projects/pmt/rss?path=/pngcrush
|
204
204
|
regexp: /pngcrush/(\d+(?:\.\d+)*)/
|
205
205
|
pngquant:
|
206
|
-
url: https://github.com/
|
207
|
-
regexp: /
|
206
|
+
url: https://github.com/kornelski/pngquant/releases.atom
|
207
|
+
regexp: /kornelski/pngquant/releases/tag/(\d+(?:\.\d+)*)
|
data/script/platform_downloads
CHANGED
@@ -5,31 +5,34 @@ require 'ostruct'
|
|
5
5
|
require 'terminal-table'
|
6
6
|
|
7
7
|
versions = Gems.versions('image_optim_pack').map(&OpenStruct.method(:new))
|
8
|
+
|
8
9
|
platforms = versions.map(&:platform).uniq.sort_by do |platform|
|
9
10
|
platform.sub('amd64', 'x86_64').split('-').reverse
|
10
11
|
end
|
11
12
|
|
12
|
-
|
13
|
-
table.headings = %W[version base\ dls] + platforms.map do |platform|
|
14
|
-
platform.split('-').reverse.join("\n")
|
15
|
-
end
|
13
|
+
table = Terminal::Table.new
|
16
14
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
[version.platform, version.downloads_count]
|
21
|
-
end]
|
15
|
+
table.headings = %W[version base\ dls] + platforms.map do |platform|
|
16
|
+
platform.split('-').reverse.join("\n")
|
17
|
+
end
|
22
18
|
|
23
|
-
|
19
|
+
versions.group_by(&:number).each do |version_number, platform_versions|
|
20
|
+
next if platform_versions.length == 1
|
21
|
+
downloads_by_platform = Hash[platform_versions.map do |version|
|
22
|
+
[version.platform, version.downloads_count]
|
23
|
+
end]
|
24
24
|
|
25
|
-
|
26
|
-
next unless count
|
27
|
-
count == base_downloads ? '=' : format('%+d', count - base_downloads)
|
28
|
-
end
|
29
|
-
table << [version_number, base_downloads] + platform_values
|
30
|
-
end
|
25
|
+
base_downloads = platform_versions.map(&:downloads_count).min
|
31
26
|
|
32
|
-
(
|
33
|
-
|
27
|
+
platform_values = downloads_by_platform.values_at(*platforms).map do |count|
|
28
|
+
next unless count
|
29
|
+
count == base_downloads ? '=' : format('%+d', count - base_downloads)
|
34
30
|
end
|
35
|
-
|
31
|
+
table << [version_number, base_downloads] + platform_values
|
32
|
+
end
|
33
|
+
|
34
|
+
(1...table.number_of_columns).each do |column|
|
35
|
+
table.align_column(column, :right)
|
36
|
+
end
|
37
|
+
|
38
|
+
puts table
|
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.5.0.
|
4
|
+
version: 0.5.0.20180103
|
5
5
|
platform: amd64-freebsd
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: image_optim
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '0.
|
67
|
+
version: '0.52'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '0.
|
74
|
+
version: '0.52'
|
75
75
|
description:
|
76
76
|
email:
|
77
77
|
executables: []
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project: image_optim_pack
|
174
|
-
rubygems_version: 2.
|
174
|
+
rubygems_version: 2.7.4
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: 'Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress,
|