yak 1.0.4 → 1.0.5

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 +6 -0
  2. data/README.txt +1 -1
  3. data/lib/yak.rb +6 -4
  4. metadata +33 -5
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.0.5 / 2010-02-23
2
+
3
+ * Bugfixes:
4
+
5
+ * Fix for killing bad password sessions
6
+
1
7
  === 1.0.4 / 2010-02-23
2
8
 
3
9
  * Enhancemennts:
data/README.txt CHANGED
@@ -59,7 +59,7 @@ Changing the master password:
59
59
 
60
60
  Listing keys:
61
61
  $ yak --list
62
- # returns all saved pairs
62
+ # returns all saved keys
63
63
 
64
64
  $ yak --list key
65
65
  # returns all keys matching /key/
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.4"
32
+ VERSION = "1.0.5"
33
33
 
34
34
  # Default config used.
35
35
  DEFAULT_CONFIG = {:session => 30, :bash_completion => true}
@@ -62,6 +62,8 @@ class Yak
62
62
  self.send(*args)
63
63
 
64
64
  rescue CIPHER_ERROR => e
65
+ yak.end_session
66
+
65
67
  $stderr << "Bad password.\n"
66
68
  exit 1
67
69
  end
@@ -370,15 +372,15 @@ Retrieved passwords get copied to the clipboard by default.
370
372
 
371
373
  end_session if has_session?
372
374
 
373
- pid = fork do
375
+ @session_pid = fork do
374
376
  sleep @session_length
375
377
  remove_session_files
376
378
  end
377
379
 
378
380
  File.open(@password_file, "w+"){|f| f.write pswd }
379
- File.open(@pid_file, "w+"){|f| f.write pid }
381
+ File.open(@pid_file, "w+"){|f| f.write @session_pid }
380
382
 
381
- Process.detach pid
383
+ Process.detach @session_pid
382
384
  end
383
385
 
384
386
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 4
9
- version: 1.0.4
8
+ - 5
9
+ version: 1.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeremie Castagna
@@ -46,7 +46,7 @@ dependencies:
46
46
  type: :runtime
47
47
  version_requirements: *id002
48
48
  - !ruby/object:Gem::Dependency
49
- name: hoe
49
+ name: rubyforge
50
50
  prerelease: false
51
51
  requirement: &id003 !ruby/object:Gem::Requirement
52
52
  requirements:
@@ -54,11 +54,39 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  segments:
56
56
  - 2
57
+ - 0
57
58
  - 3
58
- - 3
59
- version: 2.3.3
59
+ version: 2.0.3
60
60
  type: :development
61
61
  version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
63
+ name: gemcutter
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
71
+ - 4
72
+ - 1
73
+ version: 0.4.1
74
+ type: :development
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
77
+ name: hoe
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ segments:
84
+ - 2
85
+ - 5
86
+ - 0
87
+ version: 2.5.0
88
+ type: :development
89
+ version_requirements: *id005
62
90
  description: |-
63
91
  Yak is a simple command line app to store and retrieve passwords securely
64
92
  under a master password, and allows one password repository per system user.