gtk2passwordapp 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/bin/gtk2passwordapp CHANGED
@@ -23,7 +23,7 @@ begin
23
23
  :website => 'http://ruby-gnome-apps.blogspot.com/search/label/Passwords',
24
24
  :website_label => 'Ruby-Gnome Password Manager',
25
25
  :license => 'GPL',
26
- :copyright => '2010-08-04 16:39:30',
26
+ :copyright => '2010-08-06 08:46:14',
27
27
  }
28
28
 
29
29
  PROGRAM.window(about) do |window|
@@ -39,10 +39,10 @@ module Configuration
39
39
  WIDGET_OPTIONS[:padding] = PADDING
40
40
  end
41
41
 
42
- def self.passwords_updated
43
- # You may want to mirror Configuration::PASSWORDS_DATA_DIR.
44
- # For example:
45
- # system( "scp #{Configuration::PASSWORDS_DATA_DIR}/*.dat user@192.168.1.123:.gtk2passwordapp-1/")
46
- # system( "scp #{Configuration::PASSWORDS_DATA_DIR}/passphrase.txt user@192.168.1.123:.gtk2passwordapp-1/passphrase.txt")
42
+ def self.passwords_updated(dumpfile)
43
+ # After the password files are saved, you have the option here to backup or mirror the files elsewhere....
44
+ #fn = File.basename(dumpfile)
45
+ #system( "scp #{dumpfile} user@192.168.1.123:.gtk2passwordapp-1/#{fn}")
46
+ #system( "scp #{Configuration::PASSWORDS_DATA_DIR}/passphrase.txt user@192.168.1.123:.gtk2passwordapp-1/passphrase.txt")
47
47
  end
48
48
  end
@@ -92,6 +92,7 @@ class Passwords < PasswordsData
92
92
  else
93
93
  super()
94
94
  end
95
+ return self.dumpfile
95
96
  end
96
97
 
97
98
  end
@@ -231,9 +231,7 @@ module Gtk2PasswordApp
231
231
  pwd2 = Gtk2PasswordApp.get_salt('Verify')
232
232
  return if !pwd2
233
233
  end
234
- #@pwd = pwd1
235
- passwords.save(pwd1)
236
- Gtk2AppLib.passwords_updated
234
+ Gtk2AppLib.passwords_updated( passwords.save(pwd1) )
237
235
  end
238
236
  end
239
237
  }
@@ -241,8 +239,7 @@ module Gtk2PasswordApp
241
239
  # Save
242
240
  widget[:save].signal_connect('clicked'){
243
241
  if updated then
244
- passwords.save
245
- Gtk2AppLib.passwords_updated
242
+ Gtk2AppLib.passwords_updated( passwords.save )
246
243
  updated = false
247
244
  Gtk2PasswordApp.rebuild_menu(passwords)
248
245
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk2passwordapp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 2
9
- - 1
10
- version: 1.2.1
8
+ - 3
9
+ - 0
10
+ version: 1.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - carlosjhr64@gmail.com
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-04 00:00:00 -07:00
18
+ date: 2010-08-06 00:00:00 -07:00
19
19
  default_executable: gtk2passwordapp
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency