security 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/security.rb +1 -1
- data/lib/security/password.rb +8 -1
- data/security-0.1.0.gem +0 -0
- metadata +8 -7
data/Gemfile.lock
CHANGED
data/lib/security.rb
CHANGED
data/lib/security/password.rb
CHANGED
@@ -39,7 +39,6 @@ module Security
|
|
39
39
|
flags[:D] ||= options.delete(:kind)
|
40
40
|
flags[:G] ||= options.delete(:value)
|
41
41
|
flags[:j] ||= options.delete(:comment)
|
42
|
-
flags[:s] ||= options.delete(:service) || options.delete(:server)
|
43
42
|
|
44
43
|
flags.delete_if{|k,v| v.nil?}.collect{|k, v| "-#{k} #{v}".strip}.join(" ")
|
45
44
|
end
|
@@ -65,6 +64,13 @@ module Security
|
|
65
64
|
def delete(options)
|
66
65
|
system "security delete-generic-password #{flags_for_options(options)}"
|
67
66
|
end
|
67
|
+
|
68
|
+
private
|
69
|
+
|
70
|
+
def flags_for_options(options = {})
|
71
|
+
options[:s] ||= options.delete(:service)
|
72
|
+
super(options)
|
73
|
+
end
|
68
74
|
end
|
69
75
|
end
|
70
76
|
|
@@ -91,6 +97,7 @@ module Security
|
|
91
97
|
private
|
92
98
|
|
93
99
|
def flags_for_options(options = {})
|
100
|
+
options[:s] ||= options.delete(:server)
|
94
101
|
options[:p] ||= options.delete(:path)
|
95
102
|
options[:P] ||= options.delete(:port)
|
96
103
|
options[:r] ||= options.delete(:protocol)
|
data/security-0.1.0.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: security
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-07-21 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70207242870160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.6.1
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70207242870160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70207242867600 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 0.9.2
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70207242867600
|
36
36
|
description: Library for interacting with the Mac OS X Keychain
|
37
37
|
email: m@mattt.me
|
38
38
|
executables: []
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- ./LICENSE
|
49
49
|
- ./Rakefile
|
50
50
|
- ./README.md
|
51
|
+
- ./security-0.1.0.gem
|
51
52
|
- ./security.gemspec
|
52
53
|
homepage: http://mattt.me
|
53
54
|
licenses: []
|
@@ -63,7 +64,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
64
|
version: '0'
|
64
65
|
segments:
|
65
66
|
- 0
|
66
|
-
hash:
|
67
|
+
hash: 940231964905790783
|
67
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
69
|
none: false
|
69
70
|
requirements:
|
@@ -72,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
73
|
version: '0'
|
73
74
|
segments:
|
74
75
|
- 0
|
75
|
-
hash:
|
76
|
+
hash: 940231964905790783
|
76
77
|
requirements: []
|
77
78
|
rubyforge_project:
|
78
79
|
rubygems_version: 1.8.15
|