image_optim_pack 0.5.0.20180103 → 0.5.0.20180108
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +4 -0
- data/Makefile +6 -1
- data/image_optim_pack.gemspec +1 -1
- data/script/platform_downloads +18 -3
- data/vendor/darwin-i386/gifsicle +0 -0
- data/vendor/darwin-x86_64/gifsicle +0 -0
- data/vendor/freebsd-amd64/gifsicle +0 -0
- data/vendor/freebsd-i386/gifsicle +0 -0
- data/vendor/linux-i686/gifsicle +0 -0
- data/vendor/linux-x86_64/gifsicle +0 -0
- data/vendor/openbsd-amd64/gifsicle +0 -0
- data/vendor/openbsd-i386/gifsicle +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44efbf563e82c5f0ca72c0101f3233796f8a9182144a131cced2f4b6b8669e9d
|
4
|
+
data.tar.gz: 1fdf6964c86340903056bbda4994e14cf4fe562dea87d1e8611e588b33402d59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8499ee2dff9f926c57d1fb64cd7ac677288e3e76f4b468b68415d0d7a6d0a6b6c203a4749a5b346eff83ceb6555578e912ef5fcf64b59e7315ac0ba7f0756794
|
7
|
+
data.tar.gz: b9b77fcbf6c512d90eb6abf729212d32abca0bd1817a07304d99038d8100ccbadc3a1c1d9fd846df1f68569d83759b65e14701523455127e548fd8b62a956729
|
data/CHANGELOG.markdown
CHANGED
data/Makefile
CHANGED
@@ -3,7 +3,7 @@ all :
|
|
3
3
|
# ====== VERSIONS ======
|
4
4
|
|
5
5
|
ADVANCECOMP_VER := 2.0
|
6
|
-
GIFSICLE_VER := 1.
|
6
|
+
GIFSICLE_VER := 1.91
|
7
7
|
JHEAD_VER := 3.00
|
8
8
|
JPEGARCHIVE_VER := 2.1.1
|
9
9
|
JPEGOPTIM_VER := 1.4.4
|
@@ -295,8 +295,13 @@ endif
|
|
295
295
|
|
296
296
|
# ====== ENV ======
|
297
297
|
|
298
|
+
ifdef IS_DARWIN
|
299
|
+
export CC := clang
|
300
|
+
export CXX := clang++
|
301
|
+
else
|
298
302
|
export CC := gcc
|
299
303
|
export CXX := g++
|
304
|
+
endif
|
300
305
|
|
301
306
|
GCC_FLAGS := -O3
|
302
307
|
STATIC_LIBGCC := $(shell if $(CC) -v 2>&1 | fgrep -q gcc; then echo -static-libgcc; fi)
|
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.20180108'
|
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']
|
data/script/platform_downloads
CHANGED
@@ -10,13 +10,24 @@ platforms = versions.map(&:platform).uniq.sort_by do |platform|
|
|
10
10
|
platform.sub('amd64', 'x86_64').split('-').reverse
|
11
11
|
end
|
12
12
|
|
13
|
+
version_time = begin
|
14
|
+
time_pairs = versions.group_by(&:number).map do |version_n, platform_versions|
|
15
|
+
[version_n, platform_versions.map{ |v| Time.parse(v.created_at) }.min]
|
16
|
+
end.sort
|
17
|
+
time_pairs << [nil, Time.now]
|
18
|
+
|
19
|
+
time_pairs.each_cons(2).map do |(version_n, created_at), (_, next_created_at)|
|
20
|
+
[version_n, next_created_at - created_at]
|
21
|
+
end.to_h
|
22
|
+
end
|
23
|
+
|
13
24
|
table = Terminal::Table.new
|
14
25
|
|
15
|
-
table.headings = %W[version base\ dls] + platforms.map do |platform|
|
26
|
+
table.headings = %W[version days base\ dls] + platforms.map do |platform|
|
16
27
|
platform.split('-').reverse.join("\n")
|
17
28
|
end
|
18
29
|
|
19
|
-
versions.group_by(&:number).each do |
|
30
|
+
versions.group_by(&:number).each do |version_n, platform_versions|
|
20
31
|
next if platform_versions.length == 1
|
21
32
|
downloads_by_platform = Hash[platform_versions.map do |version|
|
22
33
|
[version.platform, version.downloads_count]
|
@@ -28,7 +39,11 @@ versions.group_by(&:number).each do |version_number, platform_versions|
|
|
28
39
|
next unless count
|
29
40
|
count == base_downloads ? '=' : format('%+d', count - base_downloads)
|
30
41
|
end
|
31
|
-
table << [
|
42
|
+
table << [
|
43
|
+
version_n,
|
44
|
+
(version_time[version_n] / (24 * 60 * 60)).round,
|
45
|
+
base_downloads,
|
46
|
+
] + platform_values
|
32
47
|
end
|
33
48
|
|
34
49
|
(1...table.number_of_columns).each do |column|
|
data/vendor/darwin-i386/gifsicle
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/linux-i686/gifsicle
CHANGED
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.5.0.
|
4
|
+
version: 0.5.0.20180108
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: image_optim
|