image_optim_pack 0.5.0.20171208-amd64-freebsd → 0.5.0.20180103-amd64-freebsd

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
- SHA1:
3
- metadata.gz: 1a08052014744fc61a1a42cf0172e0aa7ebfa374
4
- data.tar.gz: 6cc9ce413049bd7e5f2ffae960519996ba3871c1
2
+ SHA256:
3
+ metadata.gz: 4789de18ae2793203456035df1bca895ad4e2920a67aa1708429cbfdf5f902c6
4
+ data.tar.gz: 421e440df12c33dab5ef87f0786ea0ed3ad8bed67a21f421249d49d7834ff3ef
5
5
  SHA512:
6
- metadata.gz: 02e3610e4246f49b222c85d965e6e315fdda7d20002603b9231f8a71876c4364a2356709ca7725f3aeda987d77cd233304ca9ffe18d4168c49ae89559aa64f14
7
- data.tar.gz: c27ce00fadf7b10d221925657297e2ff42285b4d6fcc2e13964601546e627024f1625de511669c57c2d844990c7ece61759258e47f1b53499899b387387041f0
6
+ metadata.gz: b14dc0f7ad2cdb93de51fadb1478cc3c6d50c70d7325f544ac9a7afcaebcf68b2549c1b61c49cbd3bc0500a94de63c1a50b6f21f9c9f94c0579da011eac5b5d3
7
+ data.tar.gz: 9734e97202d6e42f660d04a3b2b333a259a7dd4b49ffbe3a680a1660c9e5a27945bcd00c8d9b4b1c526c97cbd3c26714f935928dbc11a3a39f5acf20789c4000
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
- MaxLineLength: 40
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.8'
9
- - '2.3.5'
10
- - '2.4.2'
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.2'
33
+ rvm: '2.4.3'
33
34
  script: bundle exec rubocop
34
35
  - env: CHECK_RUBIES=✓
35
- rvm: '2.4.2'
36
+ rvm: '2.4.3'
36
37
  script: bundle exec travis_check_rubies
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## unreleased
4
4
 
5
+ ## v0.5.0.20180103 (2018-01-03)
6
+
7
+ * optipng 0.7.7 [@toy](https://github.com/toy)
8
+
5
9
  ## v0.5.0.20171208 (2017-12-08)
6
10
 
7
11
  * ensure unused libgcc is not dynamically linked with pngquant [@toy](https://github.com/toy)
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2017 Ivan Kuchin
1
+ Copyright (c) 2014-2018 Ivan Kuchin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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.6
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/pornel/pngquant.git $@
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/github/toy/image_optim_pack.svg?style=flat)](https://codeclimate.com/github/toy/image_optim_pack)
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-2017 Ivan Kuchin. See [LICENSE.txt](LICENSE.txt) for details.
93
+ Copyright (c) 2014-2018 Ivan Kuchin. See [LICENSE.txt](LICENSE.txt) for details.
@@ -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.20171208'
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.0'
39
- s.add_development_dependency 'rubocop', '~> 0.49'
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/pornel/pngquant/releases.atom
207
- regexp: /pornel/pngquant/releases/tag/(\d+(?:\.\d+)*)
206
+ url: https://github.com/kornelski/pngquant/releases.atom
207
+ regexp: /kornelski/pngquant/releases/tag/(\d+(?:\.\d+)*)
@@ -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
- $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
13
+ table = Terminal::Table.new
16
14
 
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]
15
+ table.headings = %W[version base\ dls] + platforms.map do |platform|
16
+ platform.split('-').reverse.join("\n")
17
+ end
22
18
 
23
- base_downloads = platform_versions.map(&:downloads_count).min
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
- 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
25
+ base_downloads = platform_versions.map(&:downloads_count).min
31
26
 
32
- (1...table.number_of_columns).each do |column|
33
- table.align_column(column, :right)
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
- end << "\n"
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
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.20171208
4
+ version: 0.5.0.20180103
5
5
  platform: amd64-freebsd
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-08 00:00:00.000000000 Z
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.49'
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.49'
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.6.14
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,