image_optim_pack 0.10.0.20231014 → 0.10.1

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
  SHA256:
3
- metadata.gz: e647539ac9dd00c0e07533541b60b17e6b68626deb480275fe696be9329e059b
4
- data.tar.gz: 31e8e29d9e60a88f94e2a562d268a5462c01d07673e7b62450a4d5aa50d61df5
3
+ metadata.gz: 1f53f52f601fbbf9ec37b42100933e74613a44afede6dff2573e639079079fdf
4
+ data.tar.gz: ab6ba676cccc5ef3b92b3bccfe12076184ae9c684aee15c427671ebc21e49080
5
5
  SHA512:
6
- metadata.gz: 5667c791275bb6f8d0d25caa56627600d0b507bcd5aa2bf0b0e80255b89179d01b2bb4c538b0d22add4a74cda77658369664c924088cd27f5e0141a567d73c69
7
- data.tar.gz: d3a9e3af829fb6de1726bbee48c8aee3e9ac058039501af1efff3cb82f95d19cc9ecccf9fe5b5ec990571ce378751c38d1176d28bc3996beeabbe36f8b97544d
6
+ metadata.gz: efc6ba399f6c62eeb9387f740ba70573f42c71b58f3b607ab98b62531f7f31a8ecc778e4249222ee306fedf1cc65167142150d1430a30ee543236da64f8dd7ce
7
+ data.tar.gz: 852c603f893f9fd0ac7e902ec5206b3df09d76ed85c54bc5e3b748c110c4283d7e904a19d8dd92dc03ce560dbf71d2a1259f164201a93b42e01414753137ce67
@@ -13,9 +13,6 @@ jobs:
13
13
  - ubuntu-latest
14
14
  - macos-latest
15
15
  ruby:
16
- - '2.3'
17
- - '2.4'
18
- - '2.5'
19
16
  - '2.6'
20
17
  - '2.7'
21
18
  - '3.0'
data/.rubocop.yml CHANGED
@@ -63,11 +63,6 @@ Style/HashConversion:
63
63
  Style/HashEachMethods:
64
64
  Enabled: true
65
65
 
66
- Style/HashSyntax:
67
- Exclude:
68
- - script/livecheck
69
- EnforcedStyle: hash_rockets
70
-
71
66
  Style/HashTransformKeys:
72
67
  Enabled: false
73
68
 
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## unreleased
4
4
 
5
+ ## v0.10.1 (2023-12-05)
6
+
7
+ * liblcms 2.16 [@toy](https://github.com/toy)
8
+
9
+ ## v0.10.0.20231105 (2023-11-05)
10
+
11
+ * optipng 0.7.8 [@toy](https://github.com/toy)
12
+
5
13
  ## v0.10.0.20231014 (2023-10-14)
6
14
 
7
15
  * libmozjpeg 4.1.5 [@toy](https://github.com/toy)
data/Gemfile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- gemspec :name => 'image_optim_pack'
5
+ gemspec name: 'image_optim_pack'
6
6
 
7
7
  if RUBY_VERSION >= '2.1.9'
8
8
  gem 'gems', '~> 1.0'
data/Makefile CHANGED
@@ -8,11 +8,11 @@ JHEAD_VER := 3.04
8
8
  JPEGARCHIVE_VER := 2.2.0
9
9
  JPEGOPTIM_VER := 1.5.5
10
10
  LIBJPEG_VER := 9e
11
- LIBLCMS_VER := 2.15
11
+ LIBLCMS_VER := 2.16
12
12
  LIBMOZJPEG_VER := 4.1.5
13
13
  LIBPNG_VER := 1.6.40
14
14
  LIBZ_VER := 1.2.11
15
- OPTIPNG_VER := 0.7.7
15
+ OPTIPNG_VER := 0.7.8
16
16
  OXIPNG_VER := 9.0.0
17
17
  PNGCRUSH_VER := 1.8.13
18
18
  PNGOUT_VER := 20200115
data/boxes/Rakefile CHANGED
@@ -73,10 +73,10 @@ Dir['definitions/*/definition.rb'].each do |definition_path|
73
73
  end
74
74
 
75
75
  desc 'build all boxes'
76
- task :build => box.path
76
+ task build: box.path
77
77
 
78
78
  desc 'add all boxes to vagrant'
79
- task :add => "add:#{box.name}"
79
+ task add: "add:#{box.name}"
80
80
  end
81
81
 
82
82
  desc 'remove *.box and iso dir'
@@ -85,4 +85,4 @@ task :clean do
85
85
  sh 'rm -r iso || true'
86
86
  end
87
87
 
88
- task :default => :build
88
+ task default: :build
@@ -1,32 +1,32 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Veewee::Session.declare({
4
- :cpu_count => '1',
5
- :memory_size => '512',
6
- :disk_size => '8192',
7
- :disk_format => 'VDI',
8
- :hostiocache => 'off',
9
- :os_type_id => 'RedHat6_64',
10
- :iso_file => 'CentOS-7-x86_64-Minimal-2009.iso',
11
- :iso_src => 'http://linux.darkpenguin.net/distros/CentOS/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso',
12
- :iso_sha256 => '07b94e6b1a0b0260b94c83d6bb76b26bf7a310dc78d7a9c7432809fb9bc6194a',
13
- :iso_download_timeout => '1000',
14
- :boot_wait => '10',
15
- :boot_cmd_sequence => [
4
+ cpu_count: '1',
5
+ memory_size: '512',
6
+ disk_size: '8192',
7
+ disk_format: 'VDI',
8
+ hostiocache: 'off',
9
+ os_type_id: 'RedHat6_64',
10
+ iso_file: 'CentOS-7-x86_64-Minimal-2009.iso',
11
+ iso_src: 'http://linux.darkpenguin.net/distros/CentOS/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso',
12
+ iso_sha256: '07b94e6b1a0b0260b94c83d6bb76b26bf7a310dc78d7a9c7432809fb9bc6194a',
13
+ iso_download_timeout: '1000',
14
+ boot_wait: '10',
15
+ boot_cmd_sequence: [
16
16
  '<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>',
17
17
  ],
18
- :kickstart_port => '7122',
19
- :kickstart_timeout => '300',
20
- :kickstart_file => 'ks.cfg',
21
- :ssh_login_timeout => '10000',
22
- :ssh_user => 'veewee',
23
- :ssh_password => 'veewee',
24
- :ssh_key => '',
25
- :ssh_host_port => '7222',
26
- :ssh_guest_port => '22',
27
- :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
28
- :shutdown_cmd => '/sbin/halt -h -p',
29
- :postinstall_files => %w[../centos-postinstall.sh],
30
- :postinstall_timeout => '10000',
31
- :skip_iso_transfer => true,
18
+ kickstart_port: '7122',
19
+ kickstart_timeout: '300',
20
+ kickstart_file: 'ks.cfg',
21
+ ssh_login_timeout: '10000',
22
+ ssh_user: 'veewee',
23
+ ssh_password: 'veewee',
24
+ ssh_key: '',
25
+ ssh_host_port: '7222',
26
+ ssh_guest_port: '22',
27
+ sudo_cmd: "echo '%p'|sudo -S sh '%f'",
28
+ shutdown_cmd: '/sbin/halt -h -p',
29
+ postinstall_files: %w[../centos-postinstall.sh],
30
+ postinstall_timeout: '10000',
31
+ skip_iso_transfer: true,
32
32
  })
data/checksums.mk CHANGED
@@ -4,11 +4,11 @@ JHEAD_SHA256 := ef89bbcf4f6c25ed88088cf242a47a6aedfff4f08cc7dc205bf3e2c0f10a03c9
4
4
  JPEGARCHIVE_SHA256 := 3da16a5abbddd925dee0379aa51d9fe0cba33da0b5703be27c13a2dda3d7ed75
5
5
  JPEGOPTIM_SHA256 := 90a309d1c092de358bb411d702281ac3039b489d03adb0bc3c4ef04cf0067d38
6
6
  LIBJPEG_SHA256 := 4077d6a6a75aeb01884f708919d25934c93305e49f7e3f36db9129320e6f4f3d
7
- LIBLCMS_SHA256 := b20cbcbd0f503433be2a4e81462106fa61050a35074dc24a4e356792d971ab39
7
+ LIBLCMS_SHA256 := d873d34ad8b9b4cea010631f1a6228d2087475e4dc5e763eb81acc23d9d45a51
8
8
  LIBMOZJPEG_SHA256 := 9fcbb7171f6ac383f5b391175d6fb3acde5e64c4c4727274eade84ed0998fcc1
9
9
  LIBPNG_SHA256 := 8f720b363aa08683c9bf2a563236f45313af2c55d542b5481ae17dd8d183bb42
10
10
  LIBZ_SHA256 := c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
11
- OPTIPNG_SHA256 := 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452
11
+ OPTIPNG_SHA256 := 25a3bd68481f21502ccaa0f4c13f84dcf6b20338e4c4e8c51f2cefbd8513398c
12
12
  OXIPNG_SHA256 := 534fa8f349f52b01c2ee4332cef25ce1311edca04209ac6d972e38b171550a1b
13
13
  PNGCRUSH_SHA256 := fed0aaf5c098aa8c7f78c75365cd18d7341417326ecbdba547876b7b4f3df4be
14
14
  PNGOUT_LINUX_SHA256 := ac38bba6f0de29033de866538c3afa64341319b695bbe388efbc5fd9e830e928
@@ -2,12 +2,14 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'image_optim_pack'
5
- s.version = '0.10.0.20231014'
5
+ s.version = '0.10.1'
6
6
  s.summary = %q{Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress, jpegoptim, jpegtran, optipng, pngcrush, pngquant}
7
7
  s.homepage = "https://github.com/toy/#{s.name}"
8
8
  s.authors = ['Ivan Kuchin']
9
9
  s.license = 'MIT'
10
10
 
11
+ s.required_ruby_version = '>= 1.9.3'
12
+
11
13
  s.metadata = {
12
14
  'bug_tracker_uri' => "https://github.com/toy/#{s.name}/issues",
13
15
  'changelog_uri' => "https://github.com/toy/#{s.name}/blob/master/CHANGELOG.markdown",
@@ -64,7 +64,7 @@ describe ImageOptim::Pack do
64
64
 
65
65
  it{ should all(be_an(ImageOptim::BinResolver::Bin)) }
66
66
 
67
- it{ should all(have_attributes(:version => be)) }
67
+ it{ should all(have_attributes(version: be)) }
68
68
 
69
69
  it{ should all(be_non_libraries) }
70
70
  end
@@ -72,7 +72,7 @@ describe ImageOptim::Pack do
72
72
  describe 'bin helpers' do
73
73
  def bins_with_versions(*versions)
74
74
  versions.map do |version|
75
- double(:version => version, :inspect => version ? 'good' : 'bad')
75
+ double(version: version, inspect: version ? 'good' : 'bad')
76
76
  end
77
77
  end
78
78
 
@@ -88,8 +88,8 @@ describe ImageOptim::Pack do
88
88
 
89
89
  it{ should be_all_bins_working }
90
90
  it{ should_not be_all_bins_failing }
91
- it{ should have_attributes(:working_bins => eq(bins)) }
92
- it{ should have_attributes(:failing_bins => be_empty) }
91
+ it{ should have_attributes(working_bins: eq(bins)) }
92
+ it{ should have_attributes(failing_bins: be_empty) }
93
93
  end
94
94
 
95
95
  describe 'mixed good/bad bins' do
@@ -98,8 +98,8 @@ describe ImageOptim::Pack do
98
98
 
99
99
  it{ should_not be_all_bins_working }
100
100
  it{ should_not be_all_bins_failing }
101
- it{ should have_attributes(:working_bins => bins.select(&:version)) }
102
- it{ should have_attributes(:failing_bins => bins.reject(&:version)) }
101
+ it{ should have_attributes(working_bins: bins.select(&:version)) }
102
+ it{ should have_attributes(failing_bins: bins.reject(&:version)) }
103
103
  end
104
104
 
105
105
  describe 'all bad bins' do
@@ -108,8 +108,8 @@ describe ImageOptim::Pack do
108
108
 
109
109
  it{ should_not be_all_bins_working }
110
110
  it{ should be_all_bins_failing }
111
- it{ should have_attributes(:working_bins => be_empty) }
112
- it{ should have_attributes(:failing_bins => eq(bins)) }
111
+ it{ should have_attributes(working_bins: be_empty) }
112
+ it{ should have_attributes(failing_bins: eq(bins)) }
113
113
  end
114
114
  end
115
115
  end
@@ -19,7 +19,7 @@ describe ImageOptim do
19
19
  ImageOptim::Worker.klasses.map do |klass|
20
20
  [klass.bin_sym, false]
21
21
  end
22
- ].merge(:skip_missing_workers => false)
22
+ ].merge(skip_missing_workers: false)
23
23
 
24
24
  ImageOptim::Worker.klasses.each do |worker_klass|
25
25
  next if [:pngout, :svgo].include?(worker_klass.bin_sym)
@@ -30,7 +30,7 @@ describe ImageOptim do
30
30
 
31
31
  image_optim = ImageOptim.new(options)
32
32
  if Array(worker_klass.init(image_optim)).empty?
33
- image_optim = ImageOptim.new(options.merge(:allow_lossy => true))
33
+ image_optim = ImageOptim.new(options.merge(allow_lossy: true))
34
34
  end
35
35
 
36
36
  expect(test_images.any? do |original|
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.10.0.20231014
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-14 00:00:00.000000000 Z
11
+ date: 2023-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: image_optim
@@ -195,7 +195,7 @@ licenses:
195
195
  metadata:
196
196
  bug_tracker_uri: https://github.com/toy/image_optim_pack/issues
197
197
  changelog_uri: https://github.com/toy/image_optim_pack/blob/master/CHANGELOG.markdown
198
- documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.10.0.20231014
198
+ documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.10.1
199
199
  source_code_uri: https://github.com/toy/image_optim_pack
200
200
  post_install_message:
201
201
  rdoc_options: []
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
- version: '0'
208
+ version: 1.9.3
209
209
  required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  requirements:
211
211
  - - ">="