files.com 1.1.408 → 1.1.410
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 +4 -4
- data/_VERSION +1 -1
- data/docs/gpg_key.md +24 -33
- data/lib/files.com/models/gpg_key.rb +23 -23
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 890943de14d9a0fe3e4d12315e681b2230bad2ec83ef4eeb281bde30465d8c57
|
|
4
|
+
data.tar.gz: 175e8535d865b6860d95e1bff78c63f3a6c3d085e5e97546b1e466ac903afd7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 458df91ea9083a298d01a7cbcf6cd0508d7faba57996f1b808e6759318f9f24c180aabd0c9d237d81cf12148e29e39dd07326c38a84721e57a894cc12eb84822
|
|
7
|
+
data.tar.gz: 49839fc7ef0192332c9d760822ce92b747e25cc458f449e033afabea949ca9ef26a4669f5c7b1dd9eda7c325c726560320239a1cf7e61061dd90e8b6f1d214b6
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.410
|
data/docs/gpg_key.md
CHANGED
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
"private_key_md5": "ab236cfe4a195f0226bc2e674afdd6b0",
|
|
15
15
|
"generated_public_key": "7f8bc1210b09b9ddf469e6b6b8920e76",
|
|
16
16
|
"generated_private_key": "ab236cfe4a195f0226bc2e674afdd6b0",
|
|
17
|
-
"private_key_password_md5": "[
|
|
17
|
+
"private_key_password_md5": "[the GPG private key password]"
|
|
18
18
|
}
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
* `id` (int64):
|
|
22
|
-
* `expires_at` (date-time):
|
|
23
|
-
* `name` (string):
|
|
21
|
+
* `id` (int64): GPG key ID.
|
|
22
|
+
* `expires_at` (date-time): GPG key expiration date.
|
|
23
|
+
* `name` (string): GPG key name.
|
|
24
24
|
* `partner_id` (int64): Partner ID who owns this GPG Key, if applicable.
|
|
25
25
|
* `partner_name` (string): Name of the Partner who owns this GPG Key, if applicable.
|
|
26
26
|
* `user_id` (int64): User ID who owns this GPG Key, if applicable.
|
|
27
|
-
* `public_key_md5` (string): MD5 hash of
|
|
28
|
-
* `private_key_md5` (string): MD5 hash of
|
|
29
|
-
* `generated_public_key` (string):
|
|
30
|
-
* `generated_private_key` (string):
|
|
31
|
-
* `private_key_password_md5` (string):
|
|
32
|
-
* `public_key` (string):
|
|
33
|
-
* `private_key` (string):
|
|
34
|
-
* `private_key_password` (string):
|
|
27
|
+
* `public_key_md5` (string): MD5 hash of the GPG public key
|
|
28
|
+
* `private_key_md5` (string): MD5 hash of the GPG private key.
|
|
29
|
+
* `generated_public_key` (string): GPG public key
|
|
30
|
+
* `generated_private_key` (string): GPG private key.
|
|
31
|
+
* `private_key_password_md5` (string): GPG private key password. Only required for password protected keys.
|
|
32
|
+
* `public_key` (string): The GPG public key
|
|
33
|
+
* `private_key` (string): The GPG private key
|
|
34
|
+
* `private_key_password` (string): The GPG private key password
|
|
35
35
|
* `generate_expires_at` (string): Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
|
36
36
|
* `generate_keypair` (boolean): If true, generate a new GPG key pair. Can not be used with `public_key`/`private_key`
|
|
37
37
|
* `generate_full_name` (string): Full name of the key owner. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
|
@@ -77,9 +77,6 @@ Files::GpgKey.find(id)
|
|
|
77
77
|
Files::GpgKey.create(
|
|
78
78
|
user_id: 1,
|
|
79
79
|
partner_id: 1,
|
|
80
|
-
public_key: "7f8bc1210b09b9ddf469e6b6b8920e76",
|
|
81
|
-
private_key: "ab236cfe4a195f0226bc2e674afdd6b0",
|
|
82
|
-
private_key_password: "[your GPG private key password]",
|
|
83
80
|
name: "key name",
|
|
84
81
|
generate_expires_at: "2025-06-19 12:00:00",
|
|
85
82
|
generate_keypair: false,
|
|
@@ -92,10 +89,10 @@ Files::GpgKey.create(
|
|
|
92
89
|
|
|
93
90
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
94
91
|
* `partner_id` (int64): Partner ID who owns this GPG Key, if applicable.
|
|
95
|
-
* `public_key` (string):
|
|
96
|
-
* `private_key` (string):
|
|
97
|
-
* `private_key_password` (string):
|
|
98
|
-
* `name` (string): Required -
|
|
92
|
+
* `public_key` (string): The GPG public key
|
|
93
|
+
* `private_key` (string): The GPG private key
|
|
94
|
+
* `private_key_password` (string): The GPG private key password
|
|
95
|
+
* `name` (string): Required - GPG key name.
|
|
99
96
|
* `generate_expires_at` (string): Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
|
100
97
|
* `generate_keypair` (boolean): If true, generate a new GPG key pair. Can not be used with `public_key`/`private_key`
|
|
101
98
|
* `generate_full_name` (string): Full name of the key owner. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
|
@@ -109,9 +106,6 @@ Files::GpgKey.create(
|
|
|
109
106
|
```
|
|
110
107
|
Files::GpgKey.update(id,
|
|
111
108
|
partner_id: 1,
|
|
112
|
-
public_key: "7f8bc1210b09b9ddf469e6b6b8920e76",
|
|
113
|
-
private_key: "ab236cfe4a195f0226bc2e674afdd6b0",
|
|
114
|
-
private_key_password: "[your GPG private key password]",
|
|
115
109
|
name: "key name"
|
|
116
110
|
)
|
|
117
111
|
```
|
|
@@ -120,10 +114,10 @@ Files::GpgKey.update(id,
|
|
|
120
114
|
|
|
121
115
|
* `id` (int64): Required - Gpg Key ID.
|
|
122
116
|
* `partner_id` (int64): Partner ID who owns this GPG Key, if applicable.
|
|
123
|
-
* `public_key` (string):
|
|
124
|
-
* `private_key` (string):
|
|
125
|
-
* `private_key_password` (string):
|
|
126
|
-
* `name` (string):
|
|
117
|
+
* `public_key` (string): The GPG public key
|
|
118
|
+
* `private_key` (string): The GPG private key
|
|
119
|
+
* `private_key_password` (string): The GPG private key password
|
|
120
|
+
* `name` (string): GPG key name.
|
|
127
121
|
|
|
128
122
|
|
|
129
123
|
---
|
|
@@ -148,9 +142,6 @@ gpg_key = Files::GpgKey.find(id)
|
|
|
148
142
|
|
|
149
143
|
gpg_key.update(
|
|
150
144
|
partner_id: 1,
|
|
151
|
-
public_key: "7f8bc1210b09b9ddf469e6b6b8920e76",
|
|
152
|
-
private_key: "ab236cfe4a195f0226bc2e674afdd6b0",
|
|
153
|
-
private_key_password: "[your GPG private key password]",
|
|
154
145
|
name: "key name"
|
|
155
146
|
)
|
|
156
147
|
```
|
|
@@ -159,10 +150,10 @@ gpg_key.update(
|
|
|
159
150
|
|
|
160
151
|
* `id` (int64): Required - Gpg Key ID.
|
|
161
152
|
* `partner_id` (int64): Partner ID who owns this GPG Key, if applicable.
|
|
162
|
-
* `public_key` (string):
|
|
163
|
-
* `private_key` (string):
|
|
164
|
-
* `private_key_password` (string):
|
|
165
|
-
* `name` (string):
|
|
153
|
+
* `public_key` (string): The GPG public key
|
|
154
|
+
* `private_key` (string): The GPG private key
|
|
155
|
+
* `private_key_password` (string): The GPG private key password
|
|
156
|
+
* `name` (string): GPG key name.
|
|
166
157
|
|
|
167
158
|
|
|
168
159
|
---
|
|
@@ -9,7 +9,7 @@ module Files
|
|
|
9
9
|
@options = options || {}
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
# int64 -
|
|
12
|
+
# int64 - GPG key ID.
|
|
13
13
|
def id
|
|
14
14
|
@attributes[:id]
|
|
15
15
|
end
|
|
@@ -18,7 +18,7 @@ module Files
|
|
|
18
18
|
@attributes[:id] = value
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
# date-time -
|
|
21
|
+
# date-time - GPG key expiration date.
|
|
22
22
|
def expires_at
|
|
23
23
|
@attributes[:expires_at]
|
|
24
24
|
end
|
|
@@ -27,7 +27,7 @@ module Files
|
|
|
27
27
|
@attributes[:expires_at] = value
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
# string -
|
|
30
|
+
# string - GPG key name.
|
|
31
31
|
def name
|
|
32
32
|
@attributes[:name]
|
|
33
33
|
end
|
|
@@ -63,7 +63,7 @@ module Files
|
|
|
63
63
|
@attributes[:user_id] = value
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
# string - MD5 hash of
|
|
66
|
+
# string - MD5 hash of the GPG public key
|
|
67
67
|
def public_key_md5
|
|
68
68
|
@attributes[:public_key_md5]
|
|
69
69
|
end
|
|
@@ -72,7 +72,7 @@ module Files
|
|
|
72
72
|
@attributes[:public_key_md5] = value
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
# string - MD5 hash of
|
|
75
|
+
# string - MD5 hash of the GPG private key.
|
|
76
76
|
def private_key_md5
|
|
77
77
|
@attributes[:private_key_md5]
|
|
78
78
|
end
|
|
@@ -81,7 +81,7 @@ module Files
|
|
|
81
81
|
@attributes[:private_key_md5] = value
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
# string -
|
|
84
|
+
# string - GPG public key
|
|
85
85
|
def generated_public_key
|
|
86
86
|
@attributes[:generated_public_key]
|
|
87
87
|
end
|
|
@@ -90,7 +90,7 @@ module Files
|
|
|
90
90
|
@attributes[:generated_public_key] = value
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
# string -
|
|
93
|
+
# string - GPG private key.
|
|
94
94
|
def generated_private_key
|
|
95
95
|
@attributes[:generated_private_key]
|
|
96
96
|
end
|
|
@@ -99,7 +99,7 @@ module Files
|
|
|
99
99
|
@attributes[:generated_private_key] = value
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
# string -
|
|
102
|
+
# string - GPG private key password. Only required for password protected keys.
|
|
103
103
|
def private_key_password_md5
|
|
104
104
|
@attributes[:private_key_password_md5]
|
|
105
105
|
end
|
|
@@ -108,7 +108,7 @@ module Files
|
|
|
108
108
|
@attributes[:private_key_password_md5] = value
|
|
109
109
|
end
|
|
110
110
|
|
|
111
|
-
# string -
|
|
111
|
+
# string - The GPG public key
|
|
112
112
|
def public_key
|
|
113
113
|
@attributes[:public_key]
|
|
114
114
|
end
|
|
@@ -117,7 +117,7 @@ module Files
|
|
|
117
117
|
@attributes[:public_key] = value
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
# string -
|
|
120
|
+
# string - The GPG private key
|
|
121
121
|
def private_key
|
|
122
122
|
@attributes[:private_key]
|
|
123
123
|
end
|
|
@@ -126,7 +126,7 @@ module Files
|
|
|
126
126
|
@attributes[:private_key] = value
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
-
# string -
|
|
129
|
+
# string - The GPG private key password
|
|
130
130
|
def private_key_password
|
|
131
131
|
@attributes[:private_key_password]
|
|
132
132
|
end
|
|
@@ -173,10 +173,10 @@ module Files
|
|
|
173
173
|
|
|
174
174
|
# Parameters:
|
|
175
175
|
# partner_id - int64 - Partner ID who owns this GPG Key, if applicable.
|
|
176
|
-
# public_key - string -
|
|
177
|
-
# private_key - string -
|
|
178
|
-
# private_key_password - string -
|
|
179
|
-
# name - string -
|
|
176
|
+
# public_key - string - The GPG public key
|
|
177
|
+
# private_key - string - The GPG private key
|
|
178
|
+
# private_key_password - string - The GPG private key password
|
|
179
|
+
# name - string - GPG key name.
|
|
180
180
|
def update(params = {})
|
|
181
181
|
params ||= {}
|
|
182
182
|
params[:id] = @attributes[:id]
|
|
@@ -257,10 +257,10 @@ module Files
|
|
|
257
257
|
# Parameters:
|
|
258
258
|
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
259
259
|
# partner_id - int64 - Partner ID who owns this GPG Key, if applicable.
|
|
260
|
-
# public_key - string -
|
|
261
|
-
# private_key - string -
|
|
262
|
-
# private_key_password - string -
|
|
263
|
-
# name (required) - string -
|
|
260
|
+
# public_key - string - The GPG public key
|
|
261
|
+
# private_key - string - The GPG private key
|
|
262
|
+
# private_key_password - string - The GPG private key password
|
|
263
|
+
# name (required) - string - GPG key name.
|
|
264
264
|
# generate_expires_at - string - Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
|
265
265
|
# generate_keypair - boolean - If true, generate a new GPG key pair. Can not be used with `public_key`/`private_key`
|
|
266
266
|
# generate_full_name - string - Full name of the key owner. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
|
@@ -283,10 +283,10 @@ module Files
|
|
|
283
283
|
|
|
284
284
|
# Parameters:
|
|
285
285
|
# partner_id - int64 - Partner ID who owns this GPG Key, if applicable.
|
|
286
|
-
# public_key - string -
|
|
287
|
-
# private_key - string -
|
|
288
|
-
# private_key_password - string -
|
|
289
|
-
# name - string -
|
|
286
|
+
# public_key - string - The GPG public key
|
|
287
|
+
# private_key - string - The GPG private key
|
|
288
|
+
# private_key_password - string - The GPG private key password
|
|
289
|
+
# name - string - GPG key name.
|
|
290
290
|
def self.update(id, params = {}, options = {})
|
|
291
291
|
params ||= {}
|
|
292
292
|
params[:id] = id
|
data/lib/files.com/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: files.com
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.410
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|