password 1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/password +7 -0
  2. data/password.gemspec +1 -1
  3. metadata +4 -3
data/bin/password CHANGED
@@ -8,6 +8,10 @@ load_passwords
8
8
 
9
9
  # command-line args
10
10
  option_parser = OptionParser.new do |option_parser|
11
+ option_parser.on("-?", "--grep query", String) do |query|
12
+ @query = query
13
+ @action = :grep
14
+ end
11
15
  option_parser.on("-a") do
12
16
  @action = :all
13
17
  end
@@ -48,4 +52,7 @@ when :set
48
52
  Password::SITES[@site] = {:username => username, :password => password}
49
53
  show_credentials_for(@site) if @generated
50
54
  save_passwords
55
+ when :grep
56
+ Password::SITES.keys.each {|site| puts site if site =~ /#{@query}/}
51
57
  end
58
+
data/password.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  SPEC = Gem::Specification.new do |s|
3
3
  s.name = "password"
4
- s.version = "1.1"
4
+ s.version = "1.2"
5
5
  s.author = "Giles Bowkett"
6
6
  s.email = "gilesb@gmail.com"
7
7
  s.homepage = "http://gilesbowkett.blogspot.com/2008/02/sudo-gem-install-password.html"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: password
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.1"
4
+ version: "1.2"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giles Bowkett
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-21 00:00:00 -08:00
12
+ date: 2008-09-04 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -58,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
59
  requirements: []
59
60
 
60
61
  rubyforge_project: password
61
- rubygems_version: 1.0.0
62
+ rubygems_version: 1.2.0
62
63
  signing_key:
63
64
  specification_version: 2
64
65
  summary: Brain-dead simple password storage.