desoto-photoapp 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/desoto-photoapp.rb +3 -2
- data/lib/desoto-photoapp/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: 13fb8e21ac37243f1df99aaab383d31c631e5311
|
4
|
+
data.tar.gz: bf82255d76d2d42c6e3c4ce9c30cb68121ebc281
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 526dfda587bb526f4ef9b28b6e350fdb0fc68a0cac090183697c8c55a53fd937cec8de01f6dd77aabf0209c2df7cd1a6a8d7c3799db22ab49cc93c8f46cfe89c
|
7
|
+
data.tar.gz: ae235708b3a410943bfeb34c1bffb60bbab6f65f1a6be8eb9bdc6628bf4328b4f079c49b1564359eaa66d5df707d10ed779384082e717251c08595c24dbf02db
|
data/lib/desoto-photoapp.rb
CHANGED
@@ -93,8 +93,9 @@ module Photoapp
|
|
93
93
|
|
94
94
|
def empty_print_queue?
|
95
95
|
if printer = `lpstat -d`
|
96
|
-
printer = printer.scan(/:\s*(.+)/).flatten.first
|
97
|
-
|
96
|
+
if printer = printer.scan(/:\s*(.+)/).flatten.first
|
97
|
+
`lpstat -o -P #{printer}`.strip == ''
|
98
|
+
end
|
98
99
|
end
|
99
100
|
end
|
100
101
|
|