oode 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.3 (2011-04-24)
2
+
3
+ * Use correct DICE format options.
4
+
1
5
  ## 0.2.2 (2011-04-24)
2
6
 
3
7
  * Added Ruby 1.8 compatibility.
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", :pages] do
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}"
@@ -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 << "-Z 4up "
48
+ args << "-o number-up=4 "
49
49
  elsif @options[:format].eql? :two
50
- args << "-Z 2up "
50
+ args << "-o number-up=2 "
51
51
  end
52
52
 
53
53
  "lpr -P #{printer_name} #{args} #{file.remote_path}".squeeze " "
@@ -1,3 +1,3 @@
1
1
  module Oode
2
- Version = VERSION = '0.2.2'
2
+ Version = VERSION = '0.2.3'
3
3
  end
@@ -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 -Z 2up /home/s0812345/.oode/oodeprinter_test.rb"
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 -Z 4up /home/s0812345/.oode/oodeprinter_test.rb"
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 -Z 2up /home/s0812345/.oode/oodeprinter_test.rb"
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 -Z 4up /home/s0812345/.oode/oodeprinter_test.rb"
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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: oode
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.2
5
+ version: 0.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chris Brown