image_optim_pack 0.10.0.20231105 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77146413c46cc1b665900e666564f3e7cd6c77817ff6de9a08109b8508ea024c
4
- data.tar.gz: 1240c164a7e935e585d1115a19886ebf7c3c654f1e5daa621484a7eac16e2fd1
3
+ metadata.gz: 1f53f52f601fbbf9ec37b42100933e74613a44afede6dff2573e639079079fdf
4
+ data.tar.gz: ab6ba676cccc5ef3b92b3bccfe12076184ae9c684aee15c427671ebc21e49080
5
5
  SHA512:
6
- metadata.gz: 0c2f769c5d283e1d3a7cc753b7f037a4be7f9970333f3c6b76adaba1be57c44da66a4d71f8555f088c97454f66b35806f86ed125a99729b3ed03bbf971796716
7
- data.tar.gz: 73221d01d11a712cb4d15449348ff3823412719c0119e12f8b2d92a3ec48ce8f5397b400d5184ba7349f3c7cd9f722c1ed9ecab7fc9c44e4a3e771029e46adf7
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,10 @@
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
+
5
9
  ## v0.10.0.20231105 (2023-11-05)
6
10
 
7
11
  * optipng 0.7.8 [@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,7 +8,7 @@ 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
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,7 +4,7 @@ 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
@@ -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.20231105'
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
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.20231105
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-11-05 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.20231105
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
  - - ">="