photo-cook 1.2.4 → 1.2.5

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
  SHA1:
3
- metadata.gz: 4b183067366f3120d9a50a812562e4236106a599
4
- data.tar.gz: e89b75704d7b123fb26f69bb53878fb2dd7c7c8f
3
+ metadata.gz: 25e1d4cb02a5f3df0c262f908f01fa2700175a24
4
+ data.tar.gz: 399f1a7f03866e622e0a7be870188969c7d30daf
5
5
  SHA512:
6
- metadata.gz: 1567b3e12e1c77463023e7cd9f9bdfd4bcdd26dce9781975944a6e8937abf5c2e73cb13cc25e7cf6592fd2316d10f5ed3c25a5deeca0be88e5d6a3ff1a7ec0b1
7
- data.tar.gz: f1e65c98bfa38d1e475dbfc926db3badccdad1d4aaca22f98409af2d806143b99a4f27a80a62fa9db34b6292cf0f7452ade8f444f452cea1c9ce91f92993bf23
6
+ metadata.gz: 6888c03a0795f408bf93998625379a139d0499a8e5100701ad0a1bef8c56181921e3a18b89fee4c35d2350aa5331416d9251106b441ed6bd0241936e29a65679
7
+ data.tar.gz: 1eee4cb845f7d93d8e9733eb96e2c0cb276a369f22b478e5b05ec0ea9e429e5ef9395066d6002f75ed5deb115ec3517014b091cecd3d630fe8a72e20b8898fbb
@@ -24,14 +24,7 @@ module PhotoCook
24
24
  nice: 10,
25
25
 
26
26
  # Number of threads or disable (defaults to number of processors)
27
- threads: begin
28
- match = if OS.osx?
29
- `sysctl -a | grep machdep.cpu | grep thread_count`
30
- else
31
- `cat /proc/cpuinfo | grep "cpu cores"`
32
- end
33
- $~.to_s.to_i if match.to_s =~ /\d{1,2}/
34
- end,
27
+ threads: nil,
35
28
 
36
29
  # Verbose output (defaults to false)
37
30
  verbose: false,
@@ -110,16 +103,21 @@ module PhotoCook
110
103
  copy_chunks: false,
111
104
 
112
105
  # Strategy: 0 - xtreme, 1 - intense, 2 - longest Match, 3 - huffman Only, 4 - uncompressed (defaults to 0)
113
- strategy: 2
106
+ strategy: 3
114
107
  },
115
108
  pngquant: {
109
+ # Allow quality option (defaults to false)
110
+ allow_lossy: false,
111
+
116
112
  # min..max - don't save below min, use less colors below max (both in range 0..100; in yaml - !ruby/range 0..100), ignored in default/lossless mode (defaults to 100..100, 0..100 in lossy mode)
117
113
  quality: 100..100,
118
114
 
119
115
  # speed/quality trade-off: 1 - slow, 3 - default, 11 - fast & rough (defaults to 3)
120
- speed: 11
116
+ speed: 10
121
117
  },
122
118
  svgo: {
119
+ disable: true,
120
+
123
121
  # List of plugins to disable (defaults to [])
124
122
  disable_plugins: [],
125
123
 
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module PhotoCook
5
- VERSION = '1.2.4'
5
+ VERSION = '1.2.5'
6
6
  end
data/lib/photo-cook.rb CHANGED
@@ -9,7 +9,6 @@ require 'pathname'
9
9
  require 'logger'
10
10
  require 'rake'
11
11
  require 'mini_magick'
12
- require 'os'
13
12
 
14
13
  module PhotoCook
15
14
  class << self
data/photo-cook.gemspec CHANGED
@@ -22,7 +22,6 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_dependency 'rack', '~> 1.5'
24
24
  s.add_dependency 'mini_magick', '~> 4.0'
25
- s.add_dependency 'os', '~> 0.9'
26
25
 
27
26
  s.add_development_dependency 'bundler', '~> 1.7'
28
27
  s.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: photo-cook
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Konoplov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-16 00:00:00.000000000 Z
11
+ date: 2017-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.0'
41
- - !ruby/object:Gem::Dependency
42
- name: os
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.9'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.9'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: bundler
57
43
  requirement: !ruby/object:Gem::Requirement