gtk2passwordapp 2.5.1 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gtk2passwordapp/appconfig.rb +1 -7
- data/lib/gtk2passwordapp.rb +1 -1
- metadata +7 -6
@@ -174,7 +174,7 @@ end
|
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
177
|
-
def self.get_password(prompt,title=prompt
|
177
|
+
def self.get_password(prompt,title=prompt)
|
178
178
|
if password = Gtk2AppLib::DIALOGS.entry( prompt, {:TITLE=>title, :Entry => [{:visibility= => false},'activate']} ) then
|
179
179
|
password.strip!
|
180
180
|
if OTP then
|
@@ -184,12 +184,6 @@ end
|
|
184
184
|
# You might want to back up your otp here
|
185
185
|
# here, backup is a custom written script to backup the .otpr directory
|
186
186
|
system("#{BACKUPSCRIPT} otpr &") if BACKUPSCRIPT
|
187
|
-
elsif otp && password.length > 6 then
|
188
|
-
# the user wants to set a new password
|
189
|
-
Gtk2Password.set_password_to_pad(password)
|
190
|
-
# You might want to backup your otp here
|
191
|
-
# here, backup is a custom written script to backup the .otpr directory
|
192
|
-
system("#{BACKUPSCRIPT} otpr &") if BACKUPSCRIPT
|
193
187
|
end
|
194
188
|
end
|
195
189
|
end
|
data/lib/gtk2passwordapp.rb
CHANGED
@@ -42,7 +42,7 @@ module Gtk2Password
|
|
42
42
|
def initialize(program)
|
43
43
|
@program = program
|
44
44
|
@passwords = Gtk2Password::Passwords.new(Configuration::PASSWORDS_FILE) do |prompt|
|
45
|
-
Gtk2Password.get_password(prompt,prompt
|
45
|
+
Gtk2Password.get_password(prompt,prompt) || exit
|
46
46
|
end
|
47
47
|
@passwords.expired = Configuration::PASSWORD_EXPIRED
|
48
48
|
@modified = false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtk2passwordapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: crypt-tea
|
16
|
-
requirement: &
|
16
|
+
requirement: &17199960 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - =
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.3.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *17199960
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: gtk2applib
|
27
|
-
requirement: &
|
27
|
+
requirement: &17199340 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '15.3'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *17199340
|
36
36
|
description: ! 'A Ruby-Gnome password manager.
|
37
37
|
|
38
38
|
Uses crypt-tea''s Tiny Encryption Algorithm to encrypt the datafile.
|
@@ -82,3 +82,4 @@ signing_key:
|
|
82
82
|
specification_version: 3
|
83
83
|
summary: Ruby-Gnome Password Manager
|
84
84
|
test_files: []
|
85
|
+
has_rdoc: false
|