oode 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. data/bin/oode +3 -6
  2. data/lib/oode/version.rb +1 -1
  3. metadata +14 -2
data/bin/oode CHANGED
@@ -6,6 +6,7 @@ require "yaml"
6
6
  require "rubygems"
7
7
  require "net/ssh"
8
8
  require "net/sftp"
9
+ require "highline/import"
9
10
 
10
11
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
11
12
  require "oode"
@@ -52,15 +53,11 @@ if options[:printer].nil?
52
53
  end
53
54
 
54
55
  if options[:user].nil?
55
- puts "No user was specified.".red
56
- puts "Please specify one with the '--user' or '-u' flags or set it in the configuration."
57
- exit
56
+ options[:user] = ask("Username: ")
58
57
  end
59
58
 
60
59
  if options[:password].nil?
61
- puts "No password was specified.".red
62
- puts "Please specify one with the '--password' or '-a' flags or set it in the configuration."
63
- exit
60
+ options[:password] = ask("Password: ") { |q| q.echo = false}
64
61
  end
65
62
 
66
63
  print_queue = Oode::OodeQueue.new options[:user], options[:password], options[:printer]
data/lib/oode/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oode
2
- Version = VERSION = '0.1.0'
2
+ Version = VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chris Brown
@@ -41,6 +41,18 @@ dependencies:
41
41
  version: "0"
42
42
  type: :runtime
43
43
  version_requirements: *id002
44
+ - !ruby/object:Gem::Dependency
45
+ name: highline
46
+ prerelease: false
47
+ requirement: &id003 !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
53
+ version: "0"
54
+ type: :runtime
55
+ version_requirements: *id003
44
56
  description: oode prints to AT printers from laptops
45
57
  email: cb@tardis.ed.ac.uk
46
58
  executables: