image_optim_pack 0.5.1 → 0.5.1.20181208

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/.travis.yml +5 -5
  4. data/CHANGELOG.markdown +6 -0
  5. data/Makefile +11 -16
  6. data/README.markdown +1 -1
  7. data/boxes/Rakefile +2 -0
  8. data/checksums.mk +12 -0
  9. data/image_optim_pack.gemspec +10 -3
  10. data/script/livecheck +4 -3
  11. data/script/platform_downloads +2 -0
  12. data/script/run +1 -1
  13. data/vendor/darwin-i386/libpng.dylib +0 -0
  14. data/vendor/darwin-i386/optipng +0 -0
  15. data/vendor/darwin-i386/pngcrush +0 -0
  16. data/vendor/darwin-i386/pngquant +0 -0
  17. data/vendor/darwin-x86_64/libpng.dylib +0 -0
  18. data/vendor/darwin-x86_64/optipng +0 -0
  19. data/vendor/darwin-x86_64/pngcrush +0 -0
  20. data/vendor/darwin-x86_64/pngquant +0 -0
  21. data/vendor/freebsd-amd64/libpng.so +0 -0
  22. data/vendor/freebsd-amd64/optipng +0 -0
  23. data/vendor/freebsd-amd64/pngcrush +0 -0
  24. data/vendor/freebsd-amd64/pngquant +0 -0
  25. data/vendor/freebsd-i386/libpng.so +0 -0
  26. data/vendor/freebsd-i386/optipng +0 -0
  27. data/vendor/freebsd-i386/pngcrush +0 -0
  28. data/vendor/freebsd-i386/pngquant +0 -0
  29. data/vendor/linux-i686/libpng.so +0 -0
  30. data/vendor/linux-i686/optipng +0 -0
  31. data/vendor/linux-i686/pngcrush +0 -0
  32. data/vendor/linux-i686/pngquant +0 -0
  33. data/vendor/linux-x86_64/libpng.so +0 -0
  34. data/vendor/linux-x86_64/optipng +0 -0
  35. data/vendor/linux-x86_64/pngcrush +0 -0
  36. data/vendor/linux-x86_64/pngquant +0 -0
  37. data/vendor/openbsd-amd64/libpng.so +0 -0
  38. data/vendor/openbsd-amd64/optipng +0 -0
  39. data/vendor/openbsd-amd64/pngcrush +0 -0
  40. data/vendor/openbsd-amd64/pngquant +0 -0
  41. data/vendor/openbsd-i386/libpng.so +0 -0
  42. data/vendor/openbsd-i386/optipng +0 -0
  43. data/vendor/openbsd-i386/pngcrush +0 -0
  44. data/vendor/openbsd-i386/pngquant +0 -0
  45. metadata +11 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ef36e670308415aee4a6b74a8d9970ab487b592a04fcd3dd726347fb1be16f7
4
- data.tar.gz: f76e2eeb17232023cdbaac02b3ee1655496c6ebd008e6485444b08ff0deb3473
3
+ metadata.gz: f9e255206c2e93dc00a00069c69ba1a935fe6bad259ce594a99a3048da643936
4
+ data.tar.gz: '08f10ceeb61e0ad1cce31962cc3f2062b47d19eb9861c65d7557478d8da5f681'
5
5
  SHA512:
6
- metadata.gz: be3089e31aaf95538dfd17de76330337d4b7b7a5cdd2cdf51f5f4a19bb638424a4cae8d7cd96f866819b14ee84dc196199f7d2f35b4c6f97a2b0673f45c9bf61
7
- data.tar.gz: 4204acf30eb17d46ec73afc8191741782c95491a881976bd15ac7b0506477720ef9fe167e98082c9fee5ea18bbee3e1f425f39c6dbfbff28196d13aee75bd4f0
6
+ metadata.gz: 8b8ef025eb8935393d3988521a0a8db2d7869860f72b36f8852c8b97da73ab75fb50b7be0b25b8e2d1d923df87f2882cea9c49035ca9d0e478f4a051b3355090
7
+ data.tar.gz: 7e10ae6246f9c3a0eb24e594c91108e9dc3817dd814a891788957d17b065d52a906fa8ffff6dc08a83ddf33059d894b63695bed98fedb98c7fc65eefb928d277
data/.rubocop.yml CHANGED
@@ -17,6 +17,9 @@ Layout/DotPosition:
17
17
  Layout/IndentHash:
18
18
  EnforcedStyle: consistent
19
19
 
20
+ Layout/RescueEnsureAlignment:
21
+ Enabled: false
22
+
20
23
  Layout/SpaceBeforeBlockBraces:
21
24
  EnforcedStyle: no_space
22
25
 
data/.travis.yml CHANGED
@@ -6,9 +6,9 @@ rvm:
6
6
  - '2.0.0-p648'
7
7
  - '2.1.10'
8
8
  - '2.2.10'
9
- - '2.3.7'
10
- - '2.4.4'
11
- - '2.5.1'
9
+ - '2.3.8'
10
+ - '2.4.5'
11
+ - '2.5.3'
12
12
  - 'jruby-9.0.5.0'
13
13
  - 'jruby-9.1.9.0'
14
14
  script:
@@ -34,8 +34,8 @@ matrix:
34
34
  rvm: default
35
35
  osx_image: xcode9.3
36
36
  - env: RUBOCOP=✓
37
- rvm: '2.4.4'
37
+ rvm: '2.5.3'
38
38
  script: bundle exec rubocop
39
39
  - env: CHECK_RUBIES=✓
40
- rvm: '2.4.4'
40
+ rvm: '2.5.3'
41
41
  script: bundle exec travis_check_rubies
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## unreleased
4
4
 
5
+ ## v0.5.1.20181208 (2018-12-08)
6
+
7
+ * libpng 1.6.36 [@toy](https://github.com/toy)
8
+ * pngquant 2.12.2 [@toy](https://github.com/toy)
9
+ * libpng 1.6.35 [@toy](https://github.com/toy)
10
+
5
11
  ## v0.5.1 (2018-06-10)
6
12
 
7
13
  * Switching back to centos (6.9) for linux to use more widely compatible glibc during compilation [#12](https://github.com/toy/image_optim_pack/issues/12) [@toy](https://github.com/toy)
data/Makefile CHANGED
@@ -9,26 +9,15 @@ JPEGARCHIVE_VER := 2.1.1
9
9
  JPEGOPTIM_VER := 1.4.6
10
10
  LIBJPEG_VER := 9c
11
11
  LIBMOZJPEG_VER := 3.1
12
- LIBPNG_VER := 1.6.34
12
+ LIBPNG_VER := 1.6.36
13
13
  LIBZ_VER := 1.2.11
14
14
  OPTIPNG_VER := 0.7.7
15
15
  PNGCRUSH_VER := 1.8.13
16
- PNGQUANT_VER := 2.12.0
16
+ PNGQUANT_VER := 2.12.2
17
17
 
18
18
  # ====== CHECKSUMS ======
19
19
 
20
- ADVANCECOMP_SHA256 := 3ac0875e86a8517011976f04107186d5c60d434954078bc502ee731480933eb8
21
- GIFSICLE_SHA256 := 0a4ee602aa244cdcdd86a250a6b39c94d8343cf526b8fae862d8a0efc337a800
22
- JHEAD_SHA256 := 88cc01da018e242fe2e05db73f91b6288106858dd70f27506c4989a575d2895e
23
- JPEGARCHIVE_SHA256 := 494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618
24
- JPEGOPTIM_SHA256 := 88b1eb64c2a33a2f013f068df8b0331f42c019267401ae3fa28e3277403a5ab7
25
- LIBJPEG_SHA256 := 650250979303a649e21f87b5ccd02672af1ea6954b911342ea491f351ceb7122
26
- LIBMOZJPEG_SHA256 := 11823198f3c677b1832fa2dcf702e458f70c959661c4bec9c8922b7c36e94739
27
- LIBPNG_SHA256 := 574623a4901a9969080ab4a2df9437026c8a87150dfd5c235e28c94b212964a7
28
- LIBZ_SHA256 := c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
29
- OPTIPNG_SHA256 := 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452
30
- PNGCRUSH_SHA256 := fed0aaf5c098aa8c7f78c75365cd18d7341417326ecbdba547876b7b4f3df4be
31
- PNGQUANT_SHA256 := 0e540c64bb58c05f2a05b4eaf1d3d165f0d3278500f15abfeac47f93f8fa8fa8
20
+ include checksums.mk
32
21
 
33
22
  # ====== CONSTANTS ======
34
23
 
@@ -119,7 +108,11 @@ checksum : download
119
108
 
120
109
  checksum-verify : download
121
110
  @printf '%s %s\n' $(foreach archive,$(ARCHIVES),$($(archive)_SHA256) $($(archive)_TGZ)) | $(sha256sum) -c
122
- .PHONY : checksum
111
+ .PHONY : checksum-verify
112
+
113
+ checksum-update : download
114
+ @printf '%s := %s\n' $(foreach archive,$(ARCHIVES),$(archive)_SHA256 $(shell $(sha256sum) $($(archive)_TGZ) | cut -d ' ' -f 1)) > checksums.mk
115
+ .PHONY : checksum-update
123
116
 
124
117
  # ====== PRODUCTS ======
125
118
 
@@ -252,7 +245,9 @@ test :
252
245
  livecheck :; @script/livecheck
253
246
  .PHONY : livecheck
254
247
 
255
- update-versions :; @script/livecheck --update
248
+ update-versions :
249
+ script/livecheck --update
250
+ make checksum-update
256
251
  .PHONY : update-versions
257
252
 
258
253
  # ====== CLEAN ======
data/README.markdown CHANGED
@@ -1,7 +1,7 @@
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
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
- [![Dependency Status](https://img.shields.io/gemnasium/toy/image_optim_pack.svg?style=flat)](https://gemnasium.com/toy/image_optim_pack)
4
+ [![Depfu](https://badges.depfu.com/badges/bf227ee8e4f77217ae440955acfadde0/overview.svg)](https://depfu.com/github/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
 
7
7
  # image\_optim\_pack
data/boxes/Rakefile CHANGED
@@ -7,6 +7,7 @@ require 'progress'
7
7
  class BodyProgress # :nodoc:
8
8
  def initialize(path, &block)
9
9
  fail ArgumentError, 'block required' unless block
10
+
10
11
  @io = File.open(path)
11
12
  Progress.start(path, File.size(path)) do
12
13
  yield self
@@ -94,6 +95,7 @@ end
94
95
  task :atlas => :dotenv do
95
96
  token = ENV['ATLAS_TOKEN'].to_s
96
97
  fail 'ATLAS_TOKEN missing' if token.empty?
98
+
97
99
  Atlas.configure do |config|
98
100
  config.access_token = token
99
101
  end
data/checksums.mk ADDED
@@ -0,0 +1,12 @@
1
+ ADVANCECOMP_SHA256 := 3ac0875e86a8517011976f04107186d5c60d434954078bc502ee731480933eb8
2
+ GIFSICLE_SHA256 := 0a4ee602aa244cdcdd86a250a6b39c94d8343cf526b8fae862d8a0efc337a800
3
+ JHEAD_SHA256 := 88cc01da018e242fe2e05db73f91b6288106858dd70f27506c4989a575d2895e
4
+ JPEGARCHIVE_SHA256 := 494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618
5
+ JPEGOPTIM_SHA256 := 88b1eb64c2a33a2f013f068df8b0331f42c019267401ae3fa28e3277403a5ab7
6
+ LIBJPEG_SHA256 := 650250979303a649e21f87b5ccd02672af1ea6954b911342ea491f351ceb7122
7
+ LIBMOZJPEG_SHA256 := 11823198f3c677b1832fa2dcf702e458f70c959661c4bec9c8922b7c36e94739
8
+ LIBPNG_SHA256 := ca13c548bde5fb6ff7117cc0bdab38808acb699c0eccb613f0e4697826e1fd7d
9
+ LIBZ_SHA256 := c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
10
+ OPTIPNG_SHA256 := 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452
11
+ PNGCRUSH_SHA256 := fed0aaf5c098aa8c7f78c75365cd18d7341417326ecbdba547876b7b4f3df4be
12
+ PNGQUANT_SHA256 := bb031c48039ee73ea0e60709bb9ab80c55bfa3a5920b798ea37a03f2757b099c
@@ -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.1'
5
+ s.version = '0.5.1.20181208'
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,6 +10,13 @@ Gem::Specification.new do |s|
10
10
 
11
11
  s.rubyforge_project = s.name
12
12
 
13
+ s.metadata = {
14
+ 'bug_tracker_uri' => "https://github.com/toy/#{s.name}/issues",
15
+ 'changelog_uri' => "https://github.com/toy/#{s.name}/blob/master/CHANGELOG.markdown",
16
+ 'documentation_uri' => "https://www.rubydoc.info/gems/#{s.name}/#{s.version}",
17
+ 'source_code_uri' => "https://github.com/toy/#{s.name}",
18
+ }
19
+
13
20
  s.files = `git ls-files`.split("\n")
14
21
  if defined?(gem_platform)
15
22
  s.platform = gem_platform
@@ -35,7 +42,7 @@ Gem::Specification.new do |s|
35
42
  s.add_dependency 'fspath', '>= 2.1', '< 4'
36
43
 
37
44
  s.add_development_dependency 'rspec', '~> 3.0'
38
- if RUBY_VERSION >= '2.1'
39
- s.add_development_dependency 'rubocop', '~> 0.52'
45
+ if RUBY_VERSION >= '2.2'
46
+ s.add_development_dependency 'rubocop', '~> 0.59'
40
47
  end
41
48
  end
data/script/livecheck CHANGED
@@ -11,7 +11,7 @@ require 'fspath'
11
11
  class Livecheck
12
12
  # Commands
13
13
  class Cli
14
- VERSION_REGEXP = /^([A-Z]+)_VER *:= *(.*)$/
14
+ VERSION_REGEXP = /^([A-Z]+)_VER *:= *(.*)$/.freeze
15
15
 
16
16
  def initialize(args)
17
17
  @update = args.delete('--update')
@@ -33,6 +33,7 @@ class Livecheck
33
33
  def dump_changes
34
34
  livechecks.each do |lc|
35
35
  next unless lc.changed?
36
+
36
37
  puts "#{lc.name_n_latest_version} (current: #{lc.current_version})"
37
38
  end
38
39
  end
@@ -179,8 +180,8 @@ jhead:
179
180
  url: http://www.sentex.net/~mwandel/jhead/
180
181
  regexp: jhead-(\d+(?:\.\d+)*)
181
182
  jpegoptim:
182
- url: https://www.kokkonen.net/tjko/src/
183
- regexp: jpegoptim-(\d+(?:\.\d+)*)
183
+ url: https://github.com/tjko/jpegoptim/releases.atom
184
+ regexp: <title>RELEASE.(\d+(?:\.\d+)*)</title>
184
185
  jpegarchive:
185
186
  url: https://github.com/danielgtaylor/jpeg-archive/releases.atom
186
187
  regexp: <title>JPEG-Archive (\d+(?:\.\d+)*)</title>
@@ -29,6 +29,7 @@ end
29
29
 
30
30
  versions.group_by(&:number).each do |version_n, platform_versions|
31
31
  next if platform_versions.length == 1
32
+
32
33
  downloads_by_platform = Hash[platform_versions.map do |version|
33
34
  [version.platform, version.downloads_count]
34
35
  end]
@@ -37,6 +38,7 @@ versions.group_by(&:number).each do |version_n, platform_versions|
37
38
 
38
39
  platform_values = downloads_by_platform.values_at(*platforms).map do |count|
39
40
  next unless count
41
+
40
42
  count == base_downloads ? '=' : format('%+d', count - base_downloads)
41
43
  end
42
44
  table << [
data/script/run CHANGED
@@ -48,7 +48,7 @@ for vm in $(perl -pe "s/.*?'(.+?-.+?)'\s+=>\s+'.+?\/.+?'.*|.*/\$1/" Vagrantfile)
48
48
 
49
49
  # rsync needed files to the box
50
50
  mkdir -p vendor/$vm
51
- rsync -e "ssh -F $ssh_config" -aR --del Makefile download vendor/$vm $vm:/vagrant
51
+ rsync -e "ssh -F $ssh_config" -aR --del Makefile checksums.mk download vendor/$vm $vm:/vagrant
52
52
 
53
53
  # sync time and run make
54
54
  ssh -F $ssh_config $vm "
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
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.1
4
+ version: 0.5.1.20181208
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-06-10 00:00:00.000000000 Z
11
+ date: 2018-12-08 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.52'
67
+ version: '0.59'
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.52'
74
+ version: '0.59'
75
75
  description:
76
76
  email:
77
77
  executables: []
@@ -127,6 +127,7 @@ files:
127
127
  - boxes/definitions/openbsd-amd64/definition.rb
128
128
  - boxes/definitions/openbsd-i386/definition.rb
129
129
  - boxes/definitions/openbsd-postinstall.sh
130
+ - checksums.mk
130
131
  - image_optim_pack-darwin-x86.gemspec
131
132
  - image_optim_pack-darwin-x86_64.gemspec
132
133
  - image_optim_pack-freebsd-amd64.gemspec
@@ -243,7 +244,11 @@ files:
243
244
  homepage: http://github.com/toy/image_optim_pack
244
245
  licenses:
245
246
  - MIT
246
- metadata: {}
247
+ metadata:
248
+ bug_tracker_uri: https://github.com/toy/image_optim_pack/issues
249
+ changelog_uri: https://github.com/toy/image_optim_pack/blob/master/CHANGELOG.markdown
250
+ documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.5.1.20181208
251
+ source_code_uri: https://github.com/toy/image_optim_pack
247
252
  post_install_message:
248
253
  rdoc_options: []
249
254
  require_paths:
@@ -260,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
265
  version: '0'
261
266
  requirements: []
262
267
  rubyforge_project: image_optim_pack
263
- rubygems_version: 2.7.6
268
+ rubygems_version: 2.7.8
264
269
  signing_key:
265
270
  specification_version: 4
266
271
  summary: 'Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress,