gtk2passwordapp 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gtk2passwordapp2 +17 -12
- data/lib/gtk2passwordapp/appconfig.rb +0 -3
- metadata +6 -6
data/bin/gtk2passwordapp2
CHANGED
@@ -1,22 +1,20 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'rubygems'
|
3
|
-
gem 'gtk2applib', '~> 15.3'
|
4
|
-
$help = <<EOT
|
5
|
-
\t--no-gui\tcommand line access to passwords
|
6
|
-
\t--dump\t\tpp dump of data
|
7
|
-
EOT
|
8
|
-
require 'gtk2applib'
|
9
|
-
require 'gtk2passwordapp'
|
10
3
|
|
11
|
-
if (nogui =
|
12
|
-
|
4
|
+
if (nogui = ARGV.include?('--no-gui')) || (ARGV.include?('--dump')) then
|
5
|
+
require 'gtk2passwordapp/passwords'
|
6
|
+
# Unfortunately, gtk2applib makes this awkard.
|
7
|
+
# Have to assume things...
|
8
|
+
pwfile = File.expand_path('~/.gtk2passwordapp-2/passwords.dat')
|
9
|
+
raise "Need #{pwfile}" unless File.exist?(pwfile)
|
10
|
+
$stderr.print "Warning: password will be shown.\nPassword:"
|
13
11
|
pwd = $stdin.gets.strip
|
14
12
|
if nogui then
|
15
|
-
$stderr.print
|
13
|
+
$stderr.print "Warning: selected passwords will be shown.\nEnter Account pattern:"
|
16
14
|
pattern = Regexp.new( $stdin.gets.strip, Regexp::IGNORECASE )
|
17
15
|
end
|
18
16
|
begin
|
19
|
-
passwords = Gtk2Password::Passwords.new(
|
17
|
+
passwords = Gtk2Password::Passwords.new(pwfile, pwd)
|
20
18
|
passwords.load
|
21
19
|
if $options=~/-dump/ then
|
22
20
|
require 'pp'
|
@@ -31,12 +29,19 @@ if (nogui = $options=~/-no-gui/) || ($options=~/-dump/) then
|
|
31
29
|
end
|
32
30
|
end
|
33
31
|
rescue Exception
|
34
|
-
sleep(1.0)
|
35
32
|
puts $!
|
36
33
|
end
|
37
34
|
exit
|
38
35
|
end
|
39
36
|
|
37
|
+
gem 'gtk2applib', '~> 15.3'
|
38
|
+
$help = <<EOT
|
39
|
+
\t--no-gui\tcommand line access to passwords
|
40
|
+
\t--dump\t\tpp dump of data
|
41
|
+
EOT
|
42
|
+
require 'gtk2applib'
|
43
|
+
require 'gtk2passwordapp'
|
44
|
+
|
40
45
|
program = Gtk2AppLib::Program.new( Gtk2Password::ABOUT )
|
41
46
|
|
42
47
|
begin
|
@@ -118,9 +118,6 @@ module Configuration
|
|
118
118
|
AGAIN = 'Again' # for when verifying new passwords.
|
119
119
|
RETRY = 'Retry' # for when you got your password wrong.
|
120
120
|
|
121
|
-
# These are the --no-gui dialogs...
|
122
|
-
COMMAND_LINE_MSG1 = "Warning: password will be shown.\nPassword:"
|
123
|
-
COMMAND_LINE_MSG2 = "Warning: selected passwords will be shown.\nEnter Account pattern:"
|
124
121
|
end
|
125
122
|
|
126
123
|
# Set OTP to true if you're going to use a one time pad
|
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.3.
|
4
|
+
version: 2.3.1
|
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: 2012-06-
|
12
|
+
date: 2012-06-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: crypt-tea
|
16
|
-
requirement: &
|
16
|
+
requirement: &6740220 !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: *6740220
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: gtk2applib
|
27
|
-
requirement: &
|
27
|
+
requirement: &6739680 !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: *6739680
|
36
36
|
description: ! 'A Ruby-Gnome password manager.
|
37
37
|
|
38
38
|
Uses crypt-tea''s Tiny Encryption Algorithm to encrypt the datafile.
|