oode 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -84,7 +84,7 @@ rescue LoadError
84
84
  end
85
85
 
86
86
  desc "Push a new version."
87
- task :publish => "gem:publish" 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}"
data/bin/oode CHANGED
@@ -4,7 +4,7 @@ require 'gli'
4
4
  require 'gli_version'
5
5
  require 'highline/import'
6
6
 
7
- $: << File.expand_path(File.join('..', __FILE__, '/../lib'))
7
+ $:.unshift File.expand_path(File.join(__FILE__, '/../../lib'))
8
8
  require 'oode'
9
9
 
10
10
  include GLI
@@ -58,12 +58,12 @@ command [:print] do |c|
58
58
 
59
59
  config = Hash.new
60
60
 
61
- if config[:two]
61
+ if options[:two]
62
62
  config[:format] = :two
63
- elsif config[:four]
63
+ elsif options[:four]
64
64
  config[:format] = :four
65
65
  end
66
-
66
+
67
67
  config[:number] = options[:number] if options[:number] != 1
68
68
  config[:force] = true if options[:force]
69
69
 
@@ -25,7 +25,7 @@ module Oode
25
25
  check_working
26
26
 
27
27
  command = print_command(file)
28
- notify "Printing file: #{command}"
28
+ notify "Printing file: #{file.basename.greenish} to #{printer_name.red}"
29
29
  session.exec!(command)
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  module Oode
2
- Version = VERSION = '0.2.0'
3
- end
2
+ Version = VERSION = '0.2.1'
3
+ 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.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chris Brown