image_optim_pack 0.5.0.20171208-x86-freebsd → 0.5.0.20180103-x86-freebsd
Sign up to get free protection for your applications and to get access to all the features.
- 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-i386/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: c87405c0aa3f1cf79c8d0b97906bf67e89b6e45990e66def8410d21713ac665e
|
4
|
+
data.tar.gz: aaf55306e554328032a58aafd3b4149e29e36fd2226facb27ec3b761f5e2a911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5ea2575cf71a90615482372216723d202a670b8b432ac04fadc3bafa82b63e471e9771eb69ace53c450a1bb6cdefa210a3b4d738732a8fe8d75da84b39e196d
|
7
|
+
data.tar.gz: 3e0ca6988d1f651e2f208be6c17868286e515f97cdb601a87fdd4906ea505c2c75e083b668aa9f9148119d99998cb23b0b8a79c9888ff2b215155d9fe09a3777
|
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
|
[![Gem Version](https://img.shields.io/gem/v/image_optim_pack.svg?style=flat)](https://rubygems.org/gems/image_optim_pack)
|
2
2
|
[![Build Status](https://img.shields.io/travis/toy/image_optim_pack/master.svg?style=flat)](https://travis-ci.org/toy/image_optim_pack)
|
3
|
-
[![Code Climate](https://img.shields.io/codeclimate/
|
3
|
+
[![Code Climate](https://img.shields.io/codeclimate/maintainability/toy/image_optim_pack.svg?style=flat)](https://codeclimate.com/github/toy/image_optim_pack)
|
4
4
|
[![Dependency Status](https://img.shields.io/gemnasium/toy/image_optim_pack.svg?style=flat)](https://gemnasium.com/toy/image_optim_pack)
|
5
5
|
[![Inch CI](https://inch-ci.org/github/toy/image_optim_pack.svg?branch=master&style=flat)](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
|
data/vendor/freebsd-i386/optipng
CHANGED
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: x86-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,
|