gtk2passwordapp 0.0.8 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
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: 0.0.8
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - carlosjhr64@gmail.com
@@ -9,40 +9,47 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-27 00:00:00 -08:00
13
- default_executable: gtk2youtubeapp
12
+ date: 2009-12-12 00:00:00 -08:00
13
+ default_executable: gtk2passwordapp
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: crypt
16
+ name: crypt-tea
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: "0"
23
+ version: 1.3.0
24
24
  version:
25
- description: A Ruby-Gtk2 application to keep passwords. Uses gem crypt/blowfish to encrypt data. Requires crypt and gtk2.
25
+ - !ruby/object:Gem::Dependency
26
+ name: gtk2applib
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.0
34
+ version:
35
+ description: A Ruby-Gnome password manager. Uses crypt-tea's Tiny Encryption Algorithm to encrypt the datafile. Features random password generator and clipboard use.
26
36
  email: carlosjhr64@gmail.com
27
37
  executables:
28
38
  - gtk2passwordapp
29
- - gtk2passwordmenu
30
39
  extensions: []
31
40
 
32
41
  extra_rdoc_files: []
33
42
 
34
43
  files:
35
- - lib/configuration.rb
36
- - lib/global_options_variables.rb
37
- - lib/gtk2passwordapp.rb
38
- - lib/gtk2passwordmenu.rb
39
- - lib/iocrypt.rb
40
- - lib/passwords_data.rb
41
- - lib/setup_user_space.rb
42
- - gifs/logo.gif
44
+ - ./gtk2passwordapp/passwords.rb
45
+ - ./gtk2passwordapp/edit_box.rb
46
+ - ./gtk2passwordapp/appconfig.rb
47
+ - ./gtk2passwordapp/iocrypt.rb
48
+ - ./gtk2passwordapp/passwords_data.rb
49
+ - ./pngs/logo.png
43
50
  - README.txt
44
51
  has_rdoc: false
45
- homepage: http://ruby-gnome-apps.blogspot.com/search/label/Password
52
+ homepage: http://ruby-gnome-apps.blogspot.com/search/label/Passwords
46
53
  post_install_message:
47
54
  rdoc_options: []
48
55
 
@@ -66,6 +73,6 @@ rubyforge_project: gtk2passwordapp
66
73
  rubygems_version: 1.3.1
67
74
  signing_key:
68
75
  specification_version: 2
69
- summary: Ruby-Gtk2 application to maitain passwords.
76
+ summary: Ruby-Gnome Password Manager
70
77
  test_files: []
71
78
 
data/bin/gtk2passwordmenu DELETED
@@ -1,43 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # $Date: 2009/02/27 23:51:40 $
3
- ##########################################################
4
- require 'lib/global_options_variables'
5
- GlobalOptionsVariables.set('0.0.8',
6
- <<EOT
7
- Usage: gtk2passwordmenu [options]
8
-
9
- gtk2passwordmenu will only present the icon's menu.
10
- For the complete application, use gtk2passwordapp.
11
-
12
- Options:
13
- -h, --help print this help text and exit
14
- -v, --version print program version and exit
15
- -t, --test test
16
- -T, --trace trace
17
- EOT
18
- )
19
- require 'lib/setup_user_space'
20
- UserSpace.setup
21
- UserSpace.copy('/README.txt')
22
- require USER_CONF_DIR+CONF_FILE
23
- ##########################################################
24
- require 'lib/gtk2passwordmenu'
25
-
26
- lock = USER_CONF_DIR+'/lock'
27
- if File.exist?(lock) then
28
- $stderr.puts "process already running?"
29
- # user should then notice it's already running, but
30
- # let's remove the lock in case it's not and user
31
- # tries again....
32
- File.unlink(lock)
33
- else
34
- begin
35
- File.open(lock,'w'){|fh| fh.puts $$ }
36
- gpa = Gtk2PasswordMenu.new
37
- gpa.status_icon
38
- rescue Exception
39
- puts_bang!
40
- ensure
41
- File.unlink(lock) if File.exist?(lock)
42
- end
43
- end
data/gifs/logo.gif DELETED
Binary file
data/lib/configuration.rb DELETED
@@ -1,54 +0,0 @@
1
- # $Date: 2009/02/25 20:47:51 $
2
- # Note: you'll see in ~/.gtk2passwordapp-* a file called passphrase.txt.
3
- # Do not edit or delete passphrase, or you'll loose your passwords data.
4
- require 'gtk2'
5
- module Configuration
6
- # Note that the passwords data file name is auto generated, but...
7
- # You cam place your passwords data file in a directory other than ~/gtk2passwordapp-*
8
- PASSWORDS_DATA_DIR = USER_CONF_DIR
9
-
10
- ENTRY_WIDTH = 275
11
- LABEL_WIDTH = 75
12
- SPIN_BUTTON_LENGTH = 50
13
- PAD = 2 # cell padding
14
-
15
- MAX_PASSWORD_LENGTH = 20
16
- DEFAULT_PASSWORD_LENGTH = 7
17
- MIN_PASSWORD_LENGTH = 3
18
-
19
- VERIFIED_EXPIRED = 60*60 # one hour
20
- PASSWORD_EXPIRED = 60*60*24*30*3 # 3 months
21
-
22
- URL_PATTERN = Regexp.new('^https?:\/\/[^\s\']+$')
23
-
24
- # Here you can set your browser preferences for remote control.
25
- # As is, the first browser found will be used, like
26
- # BROWSER = '/usr/bin/epiphany -n'
27
- [
28
- # browser url remote option code
29
- [ 'browser', '--url' ],
30
- [ 'fennec', '' ],
31
- [ 'epiphany', '-n' ],
32
- [ 'firefox', '-new-tab' ],
33
- [ 'opera', '' ]
34
- ].each {|try|
35
- browser = `which #{try[0]} 2> /dev/null`.strip
36
- next if browser == ''
37
- BROWSER = "#{browser} #{try[1]}"
38
- break
39
- }
40
- $stderr.puts "Browser remote command: #{BROWSER}" if $trace
41
-
42
- FONT = Pango::FontDescription.new('Arial 10')
43
- RED = Gdk::Color.parse("#A00000")
44
- BLACK = Gdk::Color.parse("#000000")
45
- end
46
-
47
- def puts_bang!(h=nil, t=nil)
48
- if $trace then
49
- $stderr.puts h if h
50
- $stderr.puts $!
51
- $stderr.puts $!.backtrace
52
- $stderr.puts t if t
53
- end
54
- end
@@ -1,40 +0,0 @@
1
- # $Date: 2009/02/25 20:41:15 $
2
- GEM_LIB_DIR = File.expand_path( File.dirname(__FILE__) )
3
- GEM = GEM_LIB_DIR.split(/[\/\\]/)[-2]
4
- USER_CONF_DIR = ENV['HOME'] + "/.#{GEM}"
5
- GEM_ROOT_DIR = GEM_LIB_DIR.sub(/\/[^\/\\]+$/,'')
6
- CONF_FILE = '/configuration.rb'
7
- module GlobalOptionsVariables
8
- def self.set( version, help=nil, additional_options={} )
9
- raise "globals have been set elsewhere :-??" if $version || $quiet || $test || $trace
10
- $version = version
11
-
12
- options_map = {
13
- '--help' => 'h',
14
- '--quiet' => 'q',
15
- '--test' => 't',
16
- '--trace' => 'T',
17
- }
18
-
19
- options = ''
20
- opt = nil
21
- while ARGV[0]=~/^\-/ do
22
- opt = ARGV.shift
23
- options += (additional_options[opt])? additional_options[opt]: (options_map[opt])? options_map[opt]: opt
24
- end
25
-
26
- if help && options=~/h/ then
27
- puts help if help
28
- exit
29
- elsif options=~/v/ then
30
- puts $version
31
- exit
32
- end
33
-
34
- $quiet = (options=~/q/)? true: false
35
- $test = (options=~/t/)? true: false
36
- $trace = (options=~/t/i)? true: false
37
-
38
- return options
39
- end
40
- end