gtk2passwordapp 2.1.4 → 2.2.0
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.
- data/lib/gtk2passwordapp.rb +0 -4
- data/lib/gtk2passwordapp/appconfig.rb +11 -0
- metadata +2 -2
data/lib/gtk2passwordapp.rb
CHANGED
@@ -29,10 +29,6 @@ module Gtk2Password
|
|
29
29
|
Passwords::PROMPT[:again] = Configuration::AGAIN
|
30
30
|
Passwords::PROMPT[:retry] = Configuration::RETRY
|
31
31
|
|
32
|
-
def self.get_password(prompt,title=prompt)
|
33
|
-
Gtk2AppLib::DIALOGS.entry( prompt, {:TITLE=>title, :Entry => [{:visibility= => false},'activate']} )
|
34
|
-
end
|
35
|
-
|
36
32
|
Configuration::GUI.each do |clss,spr,keys|
|
37
33
|
code = Gtk2AppLib::Component.define(clss,spr,keys)
|
38
34
|
$stderr.puts "<<<START CODE EVAL>>>\n#{code}\n<<<END CODE EVAL>>>" if $trace && $verbose
|
@@ -134,4 +134,15 @@ end
|
|
134
134
|
#Gtk2AppLib::DIALOGS.quick_message("Warning: Could not create backup on 192.168.1.#{n}",{:TITLE => 'Warning',:SCROLLED_WINDOW => false})
|
135
135
|
Gtk2AppLib::DIALOGS.quick_message("Passwords Data Saved.",{:TITLE => 'Saved',:SCROLLED_WINDOW => false})
|
136
136
|
end
|
137
|
+
|
138
|
+
# HERE YOU CAN MODIFY THE CODE THAT WILL GIVE THE PASSWORD FOR YOU
|
139
|
+
def self.get_password(prompt,title=prompt)
|
140
|
+
password = Gtk2AppLib::DIALOGS.entry( prompt, {:TITLE=>title, :Entry => [{:visibility= => false},'activate']} )
|
141
|
+
## If no password is given, use a system given password
|
142
|
+
#if password.length == 0 then
|
143
|
+
# password = `ssh user@192.168.1.123 cat password.txt`.strip
|
144
|
+
#end
|
145
|
+
return password
|
146
|
+
end
|
147
|
+
|
137
148
|
end
|
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.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: crypt-tea
|