files.com 1.1.11 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/public_key.md +3 -1
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/public_key.rb +10 -1
- 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: 9ddfbf63696b85ce8662ae8ad29a4696feab35e54015c7f611678ccfd0930731
|
4
|
+
data.tar.gz: 568f34737be454a282544b05d8d0cf9ea692a3a73b8a0fe62adb621ce7ad59bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7af0061e10b3076ce71bd101c52c95ee852115a587b4730fae45bafad863a225233e38cc90b3ca5345653f9b8fa5f758806d0e966abf9ef60516d3c242c675c6
|
7
|
+
data.tar.gz: 027732430dcfc0b927ca78fcad726eea680b2a3c0774caa85049a71cec46ee9985dbf11007b08e4122eaff6c972968b3ca89b9c28944c291bb4cd6352afd23dc
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.13
|
data/docs/public_key.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
"title": "My public key",
|
9
9
|
"created_at": "2000-01-01T01:00:00Z",
|
10
10
|
"fingerprint": "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
|
11
|
+
"fingerprint_sha256": "V5Q5t/ghT3R8Tol5GX9385bzmpygWVRnLuI9EXNrjCX",
|
11
12
|
"username": "User",
|
12
13
|
"user_id": 1
|
13
14
|
}
|
@@ -16,7 +17,8 @@
|
|
16
17
|
* `id` (int64): Public key ID
|
17
18
|
* `title` (string): Public key title
|
18
19
|
* `created_at` (date-time): Public key created at date/time
|
19
|
-
* `fingerprint` (string): Public key fingerprint
|
20
|
+
* `fingerprint` (string): Public key fingerprint (MD5)
|
21
|
+
* `fingerprint_sha256` (string): Public key fingerprint (SHA256)
|
20
22
|
* `username` (string): Username of the user this public key is associated with
|
21
23
|
* `user_id` (int64): User ID this public key is associated with
|
22
24
|
* `public_key` (string): Actual contents of SSH key.
|
data/lib/files.com/errors.rb
CHANGED
@@ -61,6 +61,7 @@ module Files
|
|
61
61
|
class InvalidFilterCombinationError < BadRequestError; end
|
62
62
|
class InvalidFilterFieldError < BadRequestError; end
|
63
63
|
class InvalidFilterParamError < BadRequestError; end
|
64
|
+
class InvalidFilterParamValueError < BadRequestError; end
|
64
65
|
class InvalidInputEncodingError < BadRequestError; end
|
65
66
|
class InvalidInterfaceError < BadRequestError; end
|
66
67
|
class InvalidOauthProviderError < BadRequestError; end
|
@@ -32,7 +32,7 @@ module Files
|
|
32
32
|
@attributes[:created_at]
|
33
33
|
end
|
34
34
|
|
35
|
-
# string - Public key fingerprint
|
35
|
+
# string - Public key fingerprint (MD5)
|
36
36
|
def fingerprint
|
37
37
|
@attributes[:fingerprint]
|
38
38
|
end
|
@@ -41,6 +41,15 @@ module Files
|
|
41
41
|
@attributes[:fingerprint] = value
|
42
42
|
end
|
43
43
|
|
44
|
+
# string - Public key fingerprint (SHA256)
|
45
|
+
def fingerprint_sha256
|
46
|
+
@attributes[:fingerprint_sha256]
|
47
|
+
end
|
48
|
+
|
49
|
+
def fingerprint_sha256=(value)
|
50
|
+
@attributes[:fingerprint_sha256] = value
|
51
|
+
end
|
52
|
+
|
44
53
|
# string - Username of the user this public key is associated with
|
45
54
|
def username
|
46
55
|
@attributes[:username]
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|