image_optim_pack 0.5.0.20180103-x86-openbsd → 0.5.0.20180108-x86-openbsd

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2889e9de07847682958c1c1e7daea40e0670d8dd042ce013653fc4f747c1c08
4
- data.tar.gz: 0b68b09e139b538fdec8b76466abb89284b6865c8081ca536b0c19a8610cd9e2
3
+ metadata.gz: a1e3884278857b29c08bb5b8ffee0a33bc089649f7948d84cff7be337ae9c8b0
4
+ data.tar.gz: 281197182ebda66af52451b2bcfbbf511506e0cca8a96e8664b3253fce253a0b
5
5
  SHA512:
6
- metadata.gz: 327c7c19381aaa9ba9d5f4883d7d3411c7bffdc3fad4d2462f14bff4ec824764df274be4d7456857a40fa7109a4cad4102db8da9f26f7965c2fc273d56e69ca7
7
- data.tar.gz: 325122e567dc18abbebe8670d1d0e4c98337f3c24aa504344131fd5379947a1b399247234a1c722d709ff71c30f4be223cf2437a11ad70d2e88e09a8d6d20c88
6
+ metadata.gz: 216ffcbe549ddbb7f9ba0efffb63985a411bd3c955c4dbc4711734ea4b70dcadee5d15691bb7cbc049cacd4401d4e35afd40fd77ec25e326d0c5210ef5ca1d4a
7
+ data.tar.gz: a75c505300ed34dbd145423f210121e6fc10299e426d0a2f77e4f458a22e793c15844ea433fc860ed00e0b78ee21089359f5ade10266ea914ee8ed0f63e086ed
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## unreleased
4
4
 
5
+ ## v0.5.0.20180108 (2018-01-08)
6
+
7
+ * gifsicle 1.91 [@toy](https://github.com/toy)
8
+
5
9
  ## v0.5.0.20180103 (2018-01-03)
6
10
 
7
11
  * optipng 0.7.7 [@toy](https://github.com/toy)
data/Makefile CHANGED
@@ -3,7 +3,7 @@ all :
3
3
  # ====== VERSIONS ======
4
4
 
5
5
  ADVANCECOMP_VER := 2.0
6
- GIFSICLE_VER := 1.90
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)
@@ -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.20180103'
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']
@@ -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 |version_number, platform_versions|
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 << [version_number, base_downloads] + platform_values
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|
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.20180103
4
+ version: 0.5.0.20180108
5
5
  platform: x86-openbsd
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-03 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: image_optim