guard-image_optim 0.1.0 → 0.2.0

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: aa42c4ebd0894260ff3d7af55012f6921e70c224
4
- data.tar.gz: de324f59e6dc9fe9913f9c8f1214832164f3bdea
3
+ metadata.gz: f747ccd1c5035c703ad4c275cb61305c658f3294
4
+ data.tar.gz: 335d2bdb28835a890592c2917098a86b55dc5e29
5
5
  SHA512:
6
- metadata.gz: c79836f2ef4fd8518c3c3882a6630860ab8f0dab6c37dac5ae7cb9c358fbe37520933abb3cf2fcee747c0554986b86533084181ad4293d1aaf07a5a6ab258a63
7
- data.tar.gz: 4983d4541e1a609b751bf182ff840038eadc6b8b031402e55b8c91b0e5ad4b80efef0b0349bdc636acdd70b0e36c6751c7e7bc2ba1ab40fa2aa5e2639ba9b541
6
+ metadata.gz: fb00b3255f686c9dbe25875daec7af3851d71073828e69868a43e0d217707db9e395401ff1db618f72ba42eeb16e9bb37f7db9ad7e0b69de4391d5a37bd64f10
7
+ data.tar.gz: c82362bc882f1f41c5d2e4f3dadc1a6385c96ae2a136de48f35a53570d2ae08c65ceebaa24fc1616b011f6d0f297c8bc27af25b337544f1c1f8f474bd3b011f5
@@ -17,6 +17,7 @@ module Guard
17
17
  def initialize(options = {})
18
18
  options = {
19
19
  :input => "images",
20
+ :nice => 10,
20
21
  :notifications => true,
21
22
  :run_at_start => false,
22
23
  :pngout => false,
@@ -24,6 +25,7 @@ module Guard
24
25
  }.merge(options)
25
26
 
26
27
  @optimizer = ::ImageOptim.new({
28
+ :nice => options[:nice],
27
29
  :pngout => options[:pngout],
28
30
  :svgo => options[:svgo]
29
31
  })
@@ -2,6 +2,7 @@
2
2
  # Sample Guardfile block for Guard::ImageOptim
3
3
  #
4
4
  # :input ("images") set input image directory
5
+ # :nice (10) nice level for image_optim gem
5
6
  # :notifications (true) toggle guard notifications
6
7
  # :run_at_start (false) optimize images when guard starts
7
8
  # :pngout (false) toggle pngout for image_optim gem
@@ -1,5 +1,5 @@
1
1
  module ::Guard
2
2
  class ImageOptimVersion
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-image_optim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse