osx_keychain 1.0.1 → 1.0.2
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.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +6 -1
- data/lib/osx_keychain.rb +11 -11
- metadata +22 -37
- metadata.gz.sig +0 -0
- data/.gemtest +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3d8304eaac3326ddbdaf58ecf74f7c440db78a4b09c051b17d9c3573cae0f855
|
4
|
+
data.tar.gz: c81d6da04213601f200ea6c3efc2767892062f4c699c15be48b87c84dc66c9ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ce7591121f229b32581484abee6e74cec3412ae7fc8c2aca186b55b2419b5bdc0a8d0845dbd8b6f30e1b0e979012302f95ce44a00ed003cd4f80fac092594d
|
7
|
+
data.tar.gz: 148870dc6d1ff0535afe3394f120e2eb4e615e8b19b4a034d41ad97fdecb15dd02a3de769fa16c5fadb56130e13c77ef8599bad331adf5c214aebf16fe2e167a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/osx_keychain.rb
CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
|
|
4
4
|
require 'inline'
|
5
5
|
|
6
6
|
class OSXKeychain
|
7
|
-
VERSION = '1.0.
|
7
|
+
VERSION = '1.0.2'
|
8
8
|
|
9
9
|
def []= service, username, password
|
10
10
|
set(service, username, password)
|
@@ -39,15 +39,15 @@ class OSXKeychain
|
|
39
39
|
"can't access keychains, Authorization failed: %d", status);
|
40
40
|
|
41
41
|
status = SecKeychainFindGenericPassword(keychains,
|
42
|
-
strlen(service), service,
|
43
|
-
username ? strlen(username) : 0, username,
|
42
|
+
(UInt32)strlen(service), service,
|
43
|
+
username ? (UInt32)strlen(username) : 0, username,
|
44
44
|
&length, &data, NULL);
|
45
45
|
|
46
46
|
if (status == errSecItemNotFound)
|
47
47
|
status = SecKeychainFindInternetPassword(keychains,
|
48
|
-
strlen(service), service,
|
48
|
+
(UInt32)strlen(service), service,
|
49
49
|
0, NULL,
|
50
|
-
username ? strlen(username) : 0, username,
|
50
|
+
username ? (UInt32)strlen(username) : 0, username,
|
51
51
|
0, NULL, 0, kSecProtocolTypeAny, kSecAuthenticationTypeAny,
|
52
52
|
&length, &data, NULL);
|
53
53
|
|
@@ -83,21 +83,21 @@ class OSXKeychain
|
|
83
83
|
"can't access keychains, Authorization failed: %d", status);
|
84
84
|
|
85
85
|
status = SecKeychainFindGenericPassword(keychain,
|
86
|
-
strlen(service), service,
|
87
|
-
username == NULL ? 0 : strlen(username), username,
|
86
|
+
(UInt32)strlen(service), service,
|
87
|
+
username == NULL ? 0 : (UInt32)strlen(username), username,
|
88
88
|
0, NULL, &item);
|
89
89
|
|
90
90
|
switch (status) {
|
91
91
|
case 0:
|
92
92
|
status = SecKeychainItemModifyAttributesAndData(item, NULL,
|
93
|
-
strlen(password), password);
|
93
|
+
(UInt32)strlen(password), password);
|
94
94
|
CFRelease(item);
|
95
95
|
break;
|
96
96
|
case errSecItemNotFound:
|
97
97
|
status = SecKeychainAddGenericPassword(keychain,
|
98
|
-
strlen(service), service,
|
99
|
-
username == NULL ? 0 : strlen(username), username,
|
100
|
-
strlen(password), password,
|
98
|
+
(UInt32)strlen(service), service,
|
99
|
+
username == NULL ? 0 : (UInt32)strlen(username), username,
|
100
|
+
(UInt32)strlen(password), password,
|
101
101
|
NULL);
|
102
102
|
break;
|
103
103
|
default:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osx_keychain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -12,7 +12,7 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
|
14
14
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
15
|
-
|
15
|
+
GRYDY29tMB4XDTE3MTEyMTIxMTExMFoXDTE4MTEyMTIxMTExMFowRTETMBEGA1UE
|
16
16
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
17
17
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
18
18
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -22,71 +22,57 @@ cert_chain:
|
|
22
22
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
23
23
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
24
24
|
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
AQAfAXSQpsW7YSxd1csRtA/M4Zt0AMXFMd76GJ8Lgtg8G0+VFbdChRyDuDb0kPlW
|
26
|
+
h9QQX/YABfCW8vxmssbMGrP+VGBAn7BbdTcfTlgCWrvMX1uL5aRL74nA4urKXqdW
|
27
|
+
a0nP70K4958P3GffBdtE3KGkU5xstFnXGajxuBRnL66E15KU0BNehVxdG258bdPu
|
28
|
+
EKN6MqBPftFiev3tuwqDV11r2GquDpniYcT+Mi8/PgeAgVT/afBeVgbB3KaZeTRR
|
29
|
+
AhXhF6Wi2GTMezlj5jlI5XV7WsJUSwTp/YiVvcmT74ZaCRvexm6EnNhkrvJJ1Xeu
|
30
|
+
V+HB+LYYhXWitInO/eXxDrFB
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2018-03-17 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: RubyInline
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3'
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3'
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: minitest
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '5.6'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5.6'
|
62
48
|
- !ruby/object:Gem::Dependency
|
63
49
|
name: rdoc
|
64
50
|
requirement: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - ~>
|
52
|
+
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: '4.0'
|
69
55
|
type: :development
|
70
56
|
prerelease: false
|
71
57
|
version_requirements: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- - ~>
|
59
|
+
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
61
|
version: '4.0'
|
76
62
|
- !ruby/object:Gem::Dependency
|
77
63
|
name: hoe
|
78
64
|
requirement: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- - ~>
|
66
|
+
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '3.
|
68
|
+
version: '3.16'
|
83
69
|
type: :development
|
84
70
|
prerelease: false
|
85
71
|
version_requirements: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
|
-
- - ~>
|
73
|
+
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
75
|
+
version: '3.16'
|
90
76
|
description: |-
|
91
77
|
Provides API and a command line tool to Access the OS X Keychain. The
|
92
78
|
command line tool isn't actually useful (use `security` instead), but
|
@@ -101,8 +87,7 @@ extra_rdoc_files:
|
|
101
87
|
- Manifest.txt
|
102
88
|
- README.txt
|
103
89
|
files:
|
104
|
-
- .autotest
|
105
|
-
- .gemtest
|
90
|
+
- ".autotest"
|
106
91
|
- History.txt
|
107
92
|
- Manifest.txt
|
108
93
|
- README.txt
|
@@ -116,23 +101,23 @@ licenses:
|
|
116
101
|
metadata: {}
|
117
102
|
post_install_message:
|
118
103
|
rdoc_options:
|
119
|
-
- --main
|
104
|
+
- "--main"
|
120
105
|
- README.txt
|
121
106
|
require_paths:
|
122
107
|
- lib
|
123
108
|
required_ruby_version: !ruby/object:Gem::Requirement
|
124
109
|
requirements:
|
125
|
-
- -
|
110
|
+
- - ">="
|
126
111
|
- !ruby/object:Gem::Version
|
127
112
|
version: '0'
|
128
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
114
|
requirements:
|
130
|
-
- -
|
115
|
+
- - ">="
|
131
116
|
- !ruby/object:Gem::Version
|
132
117
|
version: '0'
|
133
118
|
requirements: []
|
134
119
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.7.3
|
136
121
|
signing_key:
|
137
122
|
specification_version: 4
|
138
123
|
summary: Provides API and a command line tool to Access the OS X Keychain
|
metadata.gz.sig
CHANGED
Binary file
|
data/.gemtest
DELETED
File without changes
|