oode 0.2.2 → 0.2.3
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.
- data/HISTORY.md +4 -0
- data/Rakefile +1 -1
- data/lib/oode/print/printer.rb +3 -3
- data/lib/oode/version.rb +1 -1
- data/test/print/oodeprinter_test.rb +5 -5
- metadata +1 -1
data/HISTORY.md
CHANGED
data/Rakefile
CHANGED
@@ -84,7 +84,7 @@ rescue LoadError
|
|
84
84
|
end
|
85
85
|
|
86
86
|
desc "Push a new version."
|
87
|
-
task :publish => [:clobber, "gem", "gem:publish"
|
87
|
+
task :publish => [:clobber, "gem", "gem:publish"] do
|
88
88
|
require 'oode/version'
|
89
89
|
sh "git tag v#{Oode::Version}"
|
90
90
|
sh "git push origin v#{Oode::Version}"
|
data/lib/oode/print/printer.rb
CHANGED
@@ -22,7 +22,7 @@ module Oode
|
|
22
22
|
|
23
23
|
def print! file
|
24
24
|
check_size file
|
25
|
-
check_working
|
25
|
+
#check_working
|
26
26
|
|
27
27
|
command = print_command(file)
|
28
28
|
notify "Printing file: #{file.basename.greenish} to #{printer_name.red}"
|
@@ -45,9 +45,9 @@ module Oode
|
|
45
45
|
args << "-# #{copies} " if copies > 1
|
46
46
|
|
47
47
|
if @options[:format].eql? :four
|
48
|
-
args << "-
|
48
|
+
args << "-o number-up=4 "
|
49
49
|
elsif @options[:format].eql? :two
|
50
|
-
args << "-
|
50
|
+
args << "-o number-up=2 "
|
51
51
|
end
|
52
52
|
|
53
53
|
"lpr -P #{printer_name} #{args} #{file.remote_path}".squeeze " "
|
data/lib/oode/version.rb
CHANGED
@@ -217,7 +217,7 @@ class OodePrinterTest < Test::Unit::TestCase
|
|
217
217
|
Oode::Printer.publicize_methods do
|
218
218
|
two_printer = Oode::Printer.new(PRINTER_NAME, @session, :format => :two)
|
219
219
|
|
220
|
-
expected = "lpr -P at3 -
|
220
|
+
expected = "lpr -P at3 -o number-up=2 /home/s0812345/.oode/oodeprinter_test.rb"
|
221
221
|
actual = two_printer.print_command(@file)
|
222
222
|
assert_equal expected, actual
|
223
223
|
end
|
@@ -227,7 +227,7 @@ class OodePrinterTest < Test::Unit::TestCase
|
|
227
227
|
Oode::Printer.publicize_methods do
|
228
228
|
four_printer = Oode::Printer.new(PRINTER_NAME, @session, :format => :four)
|
229
229
|
|
230
|
-
expected = "lpr -P at3 -
|
230
|
+
expected = "lpr -P at3 -o number-up=4 /home/s0812345/.oode/oodeprinter_test.rb"
|
231
231
|
actual = four_printer.print_command(@file)
|
232
232
|
assert_equal expected, actual
|
233
233
|
end
|
@@ -237,7 +237,7 @@ class OodePrinterTest < Test::Unit::TestCase
|
|
237
237
|
Oode::Printer.publicize_methods do
|
238
238
|
options_printer = Oode::Printer.new(PRINTER_NAME, @session, :number => 3, :format => :two)
|
239
239
|
|
240
|
-
expected = "lpr -P at3 -# 3 -
|
240
|
+
expected = "lpr -P at3 -# 3 -o number-up=2 /home/s0812345/.oode/oodeprinter_test.rb"
|
241
241
|
actual = options_printer.print_command(@file)
|
242
242
|
assert_equal expected, actual
|
243
243
|
end
|
@@ -247,9 +247,9 @@ class OodePrinterTest < Test::Unit::TestCase
|
|
247
247
|
Oode::Printer.publicize_methods do
|
248
248
|
options_printer = Oode::Printer.new(PRINTER_NAME, @session, :number => 3, :format => :four)
|
249
249
|
|
250
|
-
expected = "lpr -P at3 -# 3 -
|
250
|
+
expected = "lpr -P at3 -# 3 -o number-up=4 /home/s0812345/.oode/oodeprinter_test.rb"
|
251
251
|
actual = options_printer.print_command(@file)
|
252
252
|
assert_equal expected, actual
|
253
253
|
end
|
254
254
|
end
|
255
|
-
end
|
255
|
+
end
|