image_optim_pack 0.5.0.20171208-x86-openbsd → 0.5.0.20180103-x86-openbsd

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: a0f5e2d659f9294823e9b7987b1c9cb5c2e7d294
4
- data.tar.gz: a1a23c6830e2a45db495e041660819f400f457d1
2
+ SHA256:
3
+ metadata.gz: a2889e9de07847682958c1c1e7daea40e0670d8dd042ce013653fc4f747c1c08
4
+ data.tar.gz: 0b68b09e139b538fdec8b76466abb89284b6865c8081ca536b0c19a8610cd9e2
5
5
  SHA512:
6
- metadata.gz: 863f22c0f62c4df943b918bb8331f928cc67a08349207f04aab1cb01211862dea5b2edda5142ce00de3b4d1444506ab887f408395eb6fbf0dcd402b2ec3328d9
7
- data.tar.gz: 90785833dc8860bbe0999bdedb108046057cf5882fa948d81188ceab1792629e7fa947099fa8ba3bf9fcedbac53d2ce41383ca2193af1776d840151631f9d000
6
+ metadata.gz: 327c7c19381aaa9ba9d5f4883d7d3411c7bffdc3fad4d2462f14bff4ec824764df274be4d7456857a40fa7109a4cad4102db8da9f26f7965c2fc273d56e69ca7
7
+ data.tar.gz: 325122e567dc18abbebe8670d1d0e4c98337f3c24aa504344131fd5379947a1b399247234a1c722d709ff71c30f4be223cf2437a11ad70d2e88e09a8d6d20c88
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: x86-openbsd
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,