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 +4 -4
- data/lib/guard/image_optim.rb +2 -0
- data/lib/guard/image_optim/templates/Guardfile +1 -0
- data/lib/guard/image_optim/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f747ccd1c5035c703ad4c275cb61305c658f3294
|
4
|
+
data.tar.gz: 335d2bdb28835a890592c2917098a86b55dc5e29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb00b3255f686c9dbe25875daec7af3851d71073828e69868a43e0d217707db9e395401ff1db618f72ba42eeb16e9bb37f7db9ad7e0b69de4391d5a37bd64f10
|
7
|
+
data.tar.gz: c82362bc882f1f41c5d2e4f3dadc1a6385c96ae2a136de48f35a53570d2ae08c65ceebaa24fc1616b011f6d0f297c8bc27af25b337544f1c1f8f474bd3b011f5
|
data/lib/guard/image_optim.rb
CHANGED
@@ -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
|