image_optim_pack 0.5.0.20171001 → 0.5.0.20171101

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9568cac36c3b45840603e69911d9888e65f3168
4
- data.tar.gz: aa91b74185750dfbebd1c0282fca744ff57bfc15
3
+ metadata.gz: 1abc939fc15046834d1211f49b31ccd4377ae780
4
+ data.tar.gz: 91da4843a59ff1c647e1b3cbc0b0768327efebe8
5
5
  SHA512:
6
- metadata.gz: 01185979bd982d5c64c034ec9f1de8f4588f6e8cbdeabb8ab53753e0fbb988b6e8473ae04667cf9d5772e4e428d807713b7d9f70c2eb04c6fdee6da05ba3440d
7
- data.tar.gz: 65d04f040616b4e4f2997809ad2779b9e7dd3f6331c4cf4d57d82138ff05e3f96397d8057c7a7c18157abfa8f705d197f0de4691bd0eeab4af1b088a160f8cea
6
+ metadata.gz: 4105f3143c9be35d2c4eef43c5beedf5048f1a46997f2b8a6a2a2c7e4ff0bff48907ec93b6f9155f6cb0abbb60260f80005f696532629c309180711b9dd60f87
7
+ data.tar.gz: 221bc36e12dad1a2c13fd124e24b4c94b30d09a40d07a7e2869bc678b0958fec6eafaf6b024b9aebffa0cd855132784ddb2ab1a6fab6bff9425eed437be02d34
data/.rubocop.yml CHANGED
@@ -43,9 +43,6 @@ Style/DoubleNegation:
43
43
  Style/EmptyCaseCondition:
44
44
  Enabled: false
45
45
 
46
- Style/Encoding:
47
- EnforcedStyle: when_needed
48
-
49
46
  Style/HashSyntax:
50
47
  EnforcedStyle: hash_rockets
51
48
 
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## unreleased
4
4
 
5
+ ## v0.5.0.20171101 (2017-11-01)
6
+
7
+ * pngquant 2.11.0 [@toy](https://github.com/toy)
8
+
5
9
  ## v0.5.0.20171001 (2017-10-01)
6
10
 
7
11
  * libpng 1.6.34 [@toy](https://github.com/toy)
data/Gemfile CHANGED
@@ -5,3 +5,8 @@ gemspec :name => 'image_optim_pack'
5
5
  if RUBY_VERSION >= '2.0'
6
6
  gem 'travis_check_rubies', '~> 0.2'
7
7
  end
8
+
9
+ if RUBY_VERSION >= '2.1.9'
10
+ gem 'gems', '~> 1.0'
11
+ gem 'terminal-table'
12
+ end
data/Makefile CHANGED
@@ -13,7 +13,7 @@ LIBPNG_VER := 1.6.34
13
13
  LIBZ_VER := 1.2.11
14
14
  OPTIPNG_VER := 0.7.6
15
15
  PNGCRUSH_VER := 1.8.13
16
- PNGQUANT_VER := 2.10.2
16
+ PNGQUANT_VER := 2.11.0
17
17
 
18
18
  # ====== CONSTANTS ======
19
19
 
@@ -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.20171001'
5
+ s.version = '0.5.0.20171101'
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']
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'gems'
4
+ require 'ostruct'
5
+ require 'terminal-table'
6
+
7
+ versions = Gems.versions('image_optim_pack').map(&OpenStruct.method(:new))
8
+ platforms = versions.map(&:platform).uniq.sort_by do |platform|
9
+ platform.sub('amd64', 'x86_64').split('-').reverse
10
+ end
11
+
12
+ $stdout << Terminal::Table.new do |table|
13
+ table.headings = %W[version base\ dls] + platforms.map do |platform|
14
+ platform.split('-').reverse.join("\n")
15
+ end
16
+
17
+ versions.group_by(&:number).each do |version_number, platform_versions|
18
+ next if platform_versions.length == 1
19
+ downloads_by_platform = Hash[platform_versions.map do |version|
20
+ [version.platform, version.downloads_count]
21
+ end]
22
+
23
+ base_downloads = platform_versions.map(&:downloads_count).min
24
+
25
+ platform_values = downloads_by_platform.values_at(*platforms).map do |count|
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
31
+
32
+ (1...table.number_of_columns).each do |column|
33
+ table.align_column(column, :right)
34
+ end
35
+ end << "\n"
Binary file
Binary file
Binary file
Binary file
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.20171001
4
+ version: 0.5.0.20171101
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-01 00:00:00.000000000 Z
11
+ date: 2017-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: image_optim
@@ -122,7 +122,6 @@ files:
122
122
  - boxes/definitions/openbsd-amd64/definition.rb
123
123
  - boxes/definitions/openbsd-i386/definition.rb
124
124
  - boxes/definitions/openbsd-postinstall.sh
125
- - image_optim_pack-base_dls.gemspec
126
125
  - image_optim_pack-darwin-x86.gemspec
127
126
  - image_optim_pack-darwin-x86_64.gemspec
128
127
  - image_optim_pack-freebsd-amd64.gemspec
@@ -135,6 +134,7 @@ files:
135
134
  - lib/image_optim/pack.rb
136
135
  - lib/image_optim_pack.rb
137
136
  - script/livecheck
137
+ - script/platform_downloads
138
138
  - script/run
139
139
  - spec/image_optim/pack_spec.rb
140
140
  - spec/image_optim_spec.rb
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
255
  version: '0'
256
256
  requirements: []
257
257
  rubyforge_project: image_optim_pack
258
- rubygems_version: 2.6.13
258
+ rubygems_version: 2.6.14
259
259
  signing_key:
260
260
  specification_version: 4
261
261
  summary: 'Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress,
@@ -1,3 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- eval "gem_platform = 'base_dls'; #{File.read('image_optim_pack.gemspec')}"