files.com 1.1.14 → 1.1.16
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/file.md +1 -1
- data/docs/folder.md +1 -1
- data/lib/files.com/models/file.rb +1 -1
- data/lib/files.com/models/folder.rb +1 -1
- data/lib/files.com/version.rb +1 -1
- data/shared/url_test_data.json +18 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c27af83dde141511c39b3f9f9b6d80d9faf50e281d5cdffd42c5654685bfb59
|
|
4
|
+
data.tar.gz: 8259812e53e88d9d11c44e4032ed7160dba888536c65e7533d50b526eb0ae50e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5aa07f9005e36c7c004e57993168a14716a5d98777b2a81e4226ab27fabcc0496ccf16aa0595a266639bdc3057e2626bd820e0c818a0f24e09a965ecc20260f9
|
|
7
|
+
data.tar.gz: b56015064e34e4b22236c32e22224bab5171b3dc29d211fff7743f7a46e36672ba28543bff11ee4aee41f9fcff96f9cbf1a991a39ea7737ec934a93a006694e6
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.16
|
data/docs/file.md
CHANGED
|
@@ -45,7 +45,7 @@ may places where a Ruby File object can be used.
|
|
|
45
45
|
* `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
|
|
46
46
|
* `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
|
|
47
47
|
* `region` (string): Region location
|
|
48
|
-
* `permissions` (string): A short string representing the current user's permissions. Can be `r
|
|
48
|
+
* `permissions` (string): A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
|
|
49
49
|
* `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
|
|
50
50
|
* `is_locked` (boolean): Is this folder locked and unable to be modified?
|
|
51
51
|
* `download_uri` (string): Link to download file. Provided only in response to a download request.
|
data/docs/folder.md
CHANGED
|
@@ -47,7 +47,7 @@ Files::Dir is an alias of Files::Folder
|
|
|
47
47
|
* `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
|
|
48
48
|
* `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
|
|
49
49
|
* `region` (string): Region location
|
|
50
|
-
* `permissions` (string): A short string representing the current user's permissions. Can be `r
|
|
50
|
+
* `permissions` (string): A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
|
|
51
51
|
* `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
|
|
52
52
|
* `is_locked` (boolean): Is this folder locked and unable to be modified?
|
|
53
53
|
* `download_uri` (string): Link to download file. Provided only in response to a download request.
|
|
@@ -660,7 +660,7 @@ module Files
|
|
|
660
660
|
@attributes[:region] = value
|
|
661
661
|
end
|
|
662
662
|
|
|
663
|
-
# string - A short string representing the current user's permissions. Can be `r
|
|
663
|
+
# string - A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
|
|
664
664
|
def permissions
|
|
665
665
|
@attributes[:permissions]
|
|
666
666
|
end
|
|
@@ -245,7 +245,7 @@ module Files
|
|
|
245
245
|
@attributes[:region] = value
|
|
246
246
|
end
|
|
247
247
|
|
|
248
|
-
# string - A short string representing the current user's permissions. Can be `r
|
|
248
|
+
# string - A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
|
|
249
249
|
def permissions
|
|
250
250
|
@attributes[:permissions]
|
|
251
251
|
end
|
data/lib/files.com/version.rb
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"substitute_urls": [
|
|
3
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=%s&X-Goog-Expires=%s&X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-SignedHeaders=host",
|
|
4
|
+
"https://s3.amazonaws.com/test.example.com/metadata/1234/00000000-0000-0000-0001-00000000?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=%s&X-Amz-Expires=%s",
|
|
5
|
+
"https://filescomtests.blob.core.windows.net/testazureremote/ntie3buw/file-to-download.txt?sp=se=%s"
|
|
6
|
+
],
|
|
7
|
+
"error_urls": [
|
|
8
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101T120000Z",
|
|
9
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101T120000Z&X-Goog-Date=20220202T120000Z",
|
|
10
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Expires=900&X-Goog-Expires=600",
|
|
11
|
+
"https://filescomtests.blob.core.windows.net/testazureremote/ntie3buw/file-to-download.txt?sp=se=20220101T120000Z&sp=se=20220202T120000Z",
|
|
12
|
+
"https://filescomtests.blob.core.windows.net/testazureremote/ntie3buw/file-to-download.txt?sp=20220101T120000Z",
|
|
13
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101&X-Goog-Expires=900",
|
|
14
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=asdf&X-Goog-Expires=900",
|
|
15
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101T120000Z&&X-Goog-Expires=900",
|
|
16
|
+
"https://s3.amazonaws.com/test.example.com/metadata/1234/00000000-0000-0000-0001-00000000?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=asdf&X-Amz-Expires=900"
|
|
17
|
+
]
|
|
18
|
+
}
|
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.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-01-
|
|
11
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -296,6 +296,7 @@ files:
|
|
|
296
296
|
- lib/files.com/version.rb
|
|
297
297
|
- setup.sh
|
|
298
298
|
- shared/normalization_for_comparison_test_data.json
|
|
299
|
+
- shared/url_test_data.json
|
|
299
300
|
- spec/lib/api_client_spec.rb
|
|
300
301
|
- spec/list_spec.rb
|
|
301
302
|
- spec/models/file_spec.rb
|