yak 1.0.6.pre → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +10 -0
  2. data/README.txt +4 -0
  3. data/lib/yak.rb +8 -5
  4. metadata +6 -9
data/History.txt CHANGED
@@ -1,3 +1,13 @@
1
+ === 1.0.6 / 2010-02-25
2
+
3
+ * Bugfixes:
4
+
5
+ * Double master password request on first run
6
+
7
+ * Full cygwin support
8
+
9
+ * Full linux support
10
+
1
11
  === 1.0.5 / 2010-02-23
2
12
 
3
13
  * Bugfixes:
data/README.txt CHANGED
@@ -27,6 +27,10 @@ Always set the password by default, use:
27
27
  Turn off password confirmation prompts when a new password is entered:
28
28
  :confirm_prompt : false
29
29
 
30
+ Using bash completion for stored keys:
31
+ :bash_completion : true #=> completion only available during session
32
+ :bash_completion : :always #=> completion always available (keys exposed)
33
+
30
34
 
31
35
  == Usage
32
36
 
data/lib/yak.rb CHANGED
@@ -29,7 +29,7 @@ require 'session'
29
29
  class Yak
30
30
 
31
31
  # Version of Yak.
32
- VERSION = "1.0.6.pre"
32
+ VERSION = "1.0.6"
33
33
 
34
34
  # Default config used.
35
35
  DEFAULT_CONFIG = {:session => 30, :bash_completion => true}
@@ -322,12 +322,15 @@ Retrieved passwords get copied to the clipboard by default.
322
322
  options[:key] ||= argv.shift
323
323
  options[:value] ||= argv.shift
324
324
 
325
- if options[:action] == :retrieve && options[:key].nil?
326
- $stderr << opts.to_s
327
- exit 1
328
- end
325
+ raise OptionParser::InvalidOption if
326
+ options[:action] == :retrieve && options[:key].nil?
329
327
 
330
328
  options
329
+
330
+ rescue OptionParser::InvalidOption
331
+ $stderr << "\nError: Invalid option\n\n"
332
+ $stderr << opts.to_s
333
+ exit 1
331
334
  end
332
335
 
333
336
 
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yak
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
8
  - 6
9
- - pre
10
- version: 1.0.6.pre
9
+ version: 1.0.6
11
10
  platform: ruby
12
11
  authors:
13
12
  - Jeremie Castagna
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-02-24 00:00:00 -08:00
17
+ date: 2010-02-25 00:00:00 -08:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -101,13 +100,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
100
  version: "0"
102
101
  required_rubygems_version: !ruby/object:Gem::Requirement
103
102
  requirements:
104
- - - ">"
103
+ - - ">="
105
104
  - !ruby/object:Gem::Version
106
105
  segments:
107
- - 1
108
- - 3
109
- - 1
110
- version: 1.3.1
106
+ - 0
107
+ version: "0"
111
108
  requirements: []
112
109
 
113
110
  rubyforge_project: yak