brick_ftp 1.0.1 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +8 -11
- data/.github/action/publish_gem/Dockerfile +14 -0
- data/.github/action/publish_gem/entrypoint.sh +18 -0
- data/.github/action/write_github_release/Dockerfile +14 -0
- data/.github/action/write_github_release/entrypoint.sh +48 -0
- data/.github/main.workflow +14 -0
- data/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +7 -0
- data/CHANGELOG.md +99 -2
- data/README.md +10 -11
- data/brick_ftp.gemspec +2 -3
- data/docker-compose.yml +7 -0
- data/lib/brick_ftp/client.rb +17 -4
- data/lib/brick_ftp/core_ext/hash/symbolize_keys.rb +4 -4
- data/lib/brick_ftp/restful_api/add_group_member.rb +2 -2
- data/lib/brick_ftp/restful_api/client.rb +23 -9
- data/lib/brick_ftp/restful_api/complete_upload.rb +2 -2
- data/lib/brick_ftp/restful_api/continue_upload.rb +2 -2
- data/lib/brick_ftp/restful_api/copy_folder.rb +1 -1
- data/lib/brick_ftp/restful_api/count_folder_contents.rb +3 -3
- data/lib/brick_ftp/restful_api/count_users.rb +1 -1
- data/lib/brick_ftp/restful_api/create_api_key.rb +2 -2
- data/lib/brick_ftp/restful_api/create_behavior.rb +2 -2
- data/lib/brick_ftp/restful_api/create_bundle.rb +2 -2
- data/lib/brick_ftp/restful_api/create_folder.rb +1 -1
- data/lib/brick_ftp/restful_api/create_group.rb +2 -2
- data/lib/brick_ftp/restful_api/create_notification.rb +2 -2
- data/lib/brick_ftp/restful_api/create_permission.rb +2 -2
- data/lib/brick_ftp/restful_api/create_public_key.rb +2 -2
- data/lib/brick_ftp/restful_api/create_user.rb +2 -2
- data/lib/brick_ftp/restful_api/create_user_in_group.rb +2 -2
- data/lib/brick_ftp/restful_api/delete_api_key.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_behavior.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_bundle.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_folder.rb +5 -7
- data/lib/brick_ftp/restful_api/delete_group.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_notification.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_permission.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_public_key.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_user.rb +1 -1
- data/lib/brick_ftp/restful_api/download_file.rb +2 -2
- data/lib/brick_ftp/restful_api/get_api_key.rb +2 -2
- data/lib/brick_ftp/restful_api/get_behavior.rb +2 -2
- data/lib/brick_ftp/restful_api/get_bundle.rb +2 -2
- data/lib/brick_ftp/restful_api/get_bundle_zip.rb +2 -2
- data/lib/brick_ftp/restful_api/get_file_in_bundle.rb +2 -2
- data/lib/brick_ftp/restful_api/get_folder_size.rb +1 -1
- data/lib/brick_ftp/restful_api/get_group.rb +2 -2
- data/lib/brick_ftp/restful_api/get_public_key.rb +2 -2
- data/lib/brick_ftp/restful_api/get_site_usage.rb +1 -1
- data/lib/brick_ftp/restful_api/get_user.rb +2 -2
- data/lib/brick_ftp/restful_api/list_api_keys.rb +2 -2
- data/lib/brick_ftp/restful_api/list_behaviors.rb +2 -2
- data/lib/brick_ftp/restful_api/list_bundle_contents.rb +2 -2
- data/lib/brick_ftp/restful_api/list_bundles.rb +2 -2
- data/lib/brick_ftp/restful_api/list_folder_behaviors.rb +2 -2
- data/lib/brick_ftp/restful_api/list_folders.rb +2 -2
- data/lib/brick_ftp/restful_api/list_groups.rb +2 -2
- data/lib/brick_ftp/restful_api/list_notifications.rb +2 -2
- data/lib/brick_ftp/restful_api/list_permissions.rb +2 -2
- data/lib/brick_ftp/restful_api/list_public_keys.rb +2 -2
- data/lib/brick_ftp/restful_api/list_users.rb +2 -2
- data/lib/brick_ftp/restful_api/move_folder.rb +1 -1
- data/lib/brick_ftp/restful_api/remove_group_member.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_file_history.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_folder_history.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_history.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_login_history.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_site_history.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_user_history.rb +1 -1
- data/lib/brick_ftp/restful_api/search_user.rb +2 -2
- data/lib/brick_ftp/restful_api/start_upload.rb +2 -2
- data/lib/brick_ftp/restful_api/unlock_user.rb +2 -2
- data/lib/brick_ftp/restful_api/update_behavior.rb +2 -2
- data/lib/brick_ftp/restful_api/update_group.rb +2 -2
- data/lib/brick_ftp/restful_api/update_group_member.rb +2 -2
- data/lib/brick_ftp/restful_api/update_user.rb +3 -3
- data/lib/brick_ftp/restful_api/upload_file.rb +5 -5
- data/lib/brick_ftp/restful_api.rb +11 -11
- data/lib/brick_ftp/types/behavior.rb +1 -1
- data/lib/brick_ftp/types/bundle.rb +1 -1
- data/lib/brick_ftp/types/bundle_content.rb +1 -1
- data/lib/brick_ftp/types/bundle_zip.rb +1 -1
- data/lib/brick_ftp/types/file.rb +1 -1
- data/lib/brick_ftp/types/file_in_bundle.rb +1 -1
- data/lib/brick_ftp/types/folder_contents_count.rb +2 -2
- data/lib/brick_ftp/types/group.rb +1 -1
- data/lib/brick_ftp/types/group_membership.rb +1 -1
- data/lib/brick_ftp/types/history.rb +1 -1
- data/lib/brick_ftp/types/notification.rb +1 -1
- data/lib/brick_ftp/types/permission.rb +1 -1
- data/lib/brick_ftp/types/upload.rb +1 -1
- data/lib/brick_ftp/types/user.rb +1 -1
- data/lib/brick_ftp/types/user_api_key.rb +1 -1
- data/lib/brick_ftp/types/user_public_key.rb +1 -1
- data/lib/brick_ftp/version.rb +1 -1
- data/lib/brick_ftp.rb +1 -1
- metadata +15 -24
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# Retrieve folder history
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#retrieve-folder-history Retrieve folder history
|
10
10
|
#
|
11
11
|
# ### Params
|
12
12
|
#
|
@@ -17,7 +17,7 @@ module BrickFTP
|
|
17
17
|
endpoint = "#{path}?#{query}" unless query.empty?
|
18
18
|
res = client.get(endpoint)
|
19
19
|
|
20
|
-
res.map { |i| BrickFTP::Types::History.new(i.symbolize_keys) }
|
20
|
+
res.map { |i| BrickFTP::Types::History.new(**i.symbolize_keys) }
|
21
21
|
end
|
22
22
|
|
23
23
|
def validate_page!(page)
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# Search users
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#search-users Search users
|
10
10
|
#
|
11
11
|
class SearchUser
|
12
12
|
include Command
|
@@ -22,7 +22,7 @@ module BrickFTP
|
|
22
22
|
res = client.get("/api/rest/v1/users.json?q[username]=#{ERB::Util.url_encode(username)}")
|
23
23
|
return nil if !res || res.empty?
|
24
24
|
|
25
|
-
BrickFTP::Types::User.new(res.first.symbolize_keys)
|
25
|
+
BrickFTP::Types::User.new(**res.first.symbolize_keys)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# Starting a new upload
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#starting-a-new-upload Starting a new upload
|
10
10
|
#
|
11
11
|
class StartUpload
|
12
12
|
include Command
|
@@ -21,7 +21,7 @@ module BrickFTP
|
|
21
21
|
def call(path)
|
22
22
|
res = client.post("/api/rest/v1/files/#{ERB::Util.url_encode(path)}", action: 'put')
|
23
23
|
|
24
|
-
BrickFTP::Types::Upload.new(res.symbolize_keys)
|
24
|
+
BrickFTP::Types::Upload.new(**res.symbolize_keys)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Unlock a user
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#unlock-a-user Unlock a user
|
8
8
|
#
|
9
9
|
class UnlockUser
|
10
10
|
include Command
|
@@ -19,7 +19,7 @@ module BrickFTP
|
|
19
19
|
def call(id)
|
20
20
|
res = client.post("/api/rest/v1/users/#{id}/unlock.json")
|
21
21
|
|
22
|
-
BrickFTP::Types::User.new(res.symbolize_keys)
|
22
|
+
BrickFTP::Types::User.new(**res.symbolize_keys)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Update a behavior
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#update-a-behavior Update a behavior
|
8
8
|
#
|
9
9
|
# ### Params
|
10
10
|
#
|
@@ -32,7 +32,7 @@ module BrickFTP
|
|
32
32
|
def call(id, params)
|
33
33
|
res = client.patch("/api/rest/v1/behaviors/#{id}.json", params.to_h.compact)
|
34
34
|
|
35
|
-
BrickFTP::Types::Behavior.new(res.symbolize_keys)
|
35
|
+
BrickFTP::Types::Behavior.new(**res.symbolize_keys)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Update a group
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#update-a-group Update a group
|
8
8
|
#
|
9
9
|
# ### Params
|
10
10
|
#
|
@@ -37,7 +37,7 @@ module BrickFTP
|
|
37
37
|
def call(id, params)
|
38
38
|
res = client.put("/api/rest/v1/groups/#{id}.json", params.to_h.compact)
|
39
39
|
|
40
|
-
BrickFTP::Types::Group.new(res.symbolize_keys)
|
40
|
+
BrickFTP::Types::Group.new(**res.symbolize_keys)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Update a member
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#update-a-member Update a member
|
8
8
|
#
|
9
9
|
# ### Params
|
10
10
|
#
|
@@ -33,7 +33,7 @@ module BrickFTP
|
|
33
33
|
def call(group_id, user_id, params)
|
34
34
|
res = client.patch("/api/rest/v1/groups/#{group_id}/memberships/#{user_id}.json", membership: params.to_h.compact)
|
35
35
|
|
36
|
-
BrickFTP::Types::GroupMembership.new(res.symbolize_keys)
|
36
|
+
BrickFTP::Types::GroupMembership.new(**res.symbolize_keys)
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Update a user
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#update-a-user Update a user
|
8
8
|
#
|
9
9
|
# ### Params
|
10
10
|
#
|
@@ -92,9 +92,9 @@ module BrickFTP
|
|
92
92
|
# @return [BrickFTP::Types::User] updated User
|
93
93
|
#
|
94
94
|
def call(id, params)
|
95
|
-
res = client.
|
95
|
+
res = client.patch("/api/rest/v1/users/#{id}.json", params.to_h.compact)
|
96
96
|
|
97
|
-
BrickFTP::Types::User.new(res.symbolize_keys)
|
97
|
+
BrickFTP::Types::User.new(**res.symbolize_keys)
|
98
98
|
end
|
99
99
|
end
|
100
100
|
end
|
@@ -6,18 +6,18 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# Overview of uploading
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#overview-of-uploading Overview of uploading
|
10
10
|
#
|
11
11
|
# ### Uploading files using the REST API is done in 3 stages:
|
12
12
|
#
|
13
|
-
# 1. {https://developers.
|
14
|
-
# 2. {https://developers.
|
15
|
-
# 3. {https://developers.
|
13
|
+
# 1. {https://developers.files.com/#starting-a-new-upload Start a new upload} by sending a request to REST API to indicate intent to upload a file.
|
14
|
+
# 2. {https://developers.files.com/#uploading-the-file-or-file-parts Upload the file} to the URL(s) provided by the REST API, possibly in parts via multiple uploads.
|
15
|
+
# 3. {https://developers.files.com/#completing-an-upload Complete the upload} by notifying the REST API that the file upload has completed.
|
16
16
|
#
|
17
17
|
class UploadFile
|
18
18
|
include Command
|
19
19
|
|
20
|
-
CHUNK_SIZE_RANGE = 5_242_880..5_368_709_120
|
20
|
+
CHUNK_SIZE_RANGE = (5_242_880..5_368_709_120).freeze
|
21
21
|
|
22
22
|
# At this point, you are to send a PUT request to the returned upload_uri with the file data,
|
23
23
|
# along with the headers and parameters provided to you from BrickFTP.
|
@@ -5,7 +5,7 @@ module BrickFTP
|
|
5
5
|
autoload :Client, 'brick_ftp/restful_api/client'
|
6
6
|
autoload :Command, 'brick_ftp/restful_api/command'
|
7
7
|
autoload :GetSiteUsage, 'brick_ftp/restful_api/get_site_usage'
|
8
|
-
# ref. https://developers.
|
8
|
+
# ref. https://developers.files.com/#users
|
9
9
|
autoload :ListUsers, 'brick_ftp/restful_api/list_users'
|
10
10
|
autoload :CountUsers, 'brick_ftp/restful_api/count_users'
|
11
11
|
autoload :SearchUser, 'brick_ftp/restful_api/search_user'
|
@@ -14,17 +14,17 @@ module BrickFTP
|
|
14
14
|
autoload :UpdateUser, 'brick_ftp/restful_api/update_user'
|
15
15
|
autoload :DeleteUser, 'brick_ftp/restful_api/delete_user'
|
16
16
|
autoload :UnlockUser, 'brick_ftp/restful_api/unlock_user'
|
17
|
-
# ref. https://developers.
|
17
|
+
# ref. https://developers.files.com/#user-api-keys
|
18
18
|
autoload :ListAPIKeys, 'brick_ftp/restful_api/list_api_keys'
|
19
19
|
autoload :GetAPIKey, 'brick_ftp/restful_api/get_api_key'
|
20
20
|
autoload :CreateAPIKey, 'brick_ftp/restful_api/create_api_key'
|
21
21
|
autoload :DeleteAPIKey, 'brick_ftp/restful_api/delete_api_key'
|
22
|
-
# ref. https://developers.
|
22
|
+
# ref. https://developers.files.com/#user-public-keys
|
23
23
|
autoload :ListPublicKeys, 'brick_ftp/restful_api/list_public_keys'
|
24
24
|
autoload :GetPublicKey, 'brick_ftp/restful_api/get_public_key'
|
25
25
|
autoload :CreatePublicKey, 'brick_ftp/restful_api/create_public_key'
|
26
26
|
autoload :DeletePublicKey, 'brick_ftp/restful_api/delete_public_key'
|
27
|
-
# ref. https://developers.
|
27
|
+
# ref. https://developers.files.com/#groups
|
28
28
|
autoload :ListGroups, 'brick_ftp/restful_api/list_groups'
|
29
29
|
autoload :GetGroup, 'brick_ftp/restful_api/get_group'
|
30
30
|
autoload :CreateGroup, 'brick_ftp/restful_api/create_group'
|
@@ -34,22 +34,22 @@ module BrickFTP
|
|
34
34
|
autoload :AddGroupMember, 'brick_ftp/restful_api/add_group_member'
|
35
35
|
autoload :UpdateGroupMember, 'brick_ftp/restful_api/update_group_member'
|
36
36
|
autoload :RemoveGroupMember, 'brick_ftp/restful_api/remove_group_member'
|
37
|
-
# ref. https://developers.
|
37
|
+
# ref. https://developers.files.com/#permissions
|
38
38
|
autoload :ListPermissions, 'brick_ftp/restful_api/list_permissions'
|
39
39
|
autoload :CreatePermission, 'brick_ftp/restful_api/create_permission'
|
40
40
|
autoload :DeletePermission, 'brick_ftp/restful_api/delete_permission'
|
41
|
-
# ref. https://developers.
|
41
|
+
# ref. https://developers.files.com/#notifications
|
42
42
|
autoload :ListNotifications, 'brick_ftp/restful_api/list_notifications'
|
43
43
|
autoload :CreateNotification, 'brick_ftp/restful_api/create_notification'
|
44
44
|
autoload :DeleteNotification, 'brick_ftp/restful_api/delete_notification'
|
45
|
-
# ref. https://developers.
|
45
|
+
# ref. https://developers.files.com/#history
|
46
46
|
autoload :RetrieveHistory, 'brick_ftp/restful_api/retrieve_history'
|
47
47
|
autoload :RetrieveSiteHistory, 'brick_ftp/restful_api/retrieve_site_history'
|
48
48
|
autoload :RetrieveLoginHistory, 'brick_ftp/restful_api/retrieve_login_history'
|
49
49
|
autoload :RetrieveUserHistory, 'brick_ftp/restful_api/retrieve_user_history'
|
50
50
|
autoload :RetrieveFolderHistory, 'brick_ftp/restful_api/retrieve_folder_history'
|
51
51
|
autoload :RetrieveFileHistory, 'brick_ftp/restful_api/retrieve_file_history'
|
52
|
-
# ref. https://developers.
|
52
|
+
# ref. https://developers.files.com/#bundles
|
53
53
|
autoload :ListBundles, 'brick_ftp/restful_api/list_bundles'
|
54
54
|
autoload :GetBundle, 'brick_ftp/restful_api/get_bundle'
|
55
55
|
autoload :CreateBundle, 'brick_ftp/restful_api/create_bundle'
|
@@ -57,14 +57,14 @@ module BrickFTP
|
|
57
57
|
autoload :ListBundleContents, 'brick_ftp/restful_api/list_bundle_contents'
|
58
58
|
autoload :GetFileInBundle, 'brick_ftp/restful_api/get_file_in_bundle'
|
59
59
|
autoload :GetBundleZip, 'brick_ftp/restful_api/get_bundle_zip'
|
60
|
-
# ref. https://developers.
|
60
|
+
# ref. https://developers.files.com/#behaviors
|
61
61
|
autoload :ListBehaviors, 'brick_ftp/restful_api/list_behaviors'
|
62
62
|
autoload :ListFolderBehaviors, 'brick_ftp/restful_api/list_folder_behaviors'
|
63
63
|
autoload :GetBehavior, 'brick_ftp/restful_api/get_behavior'
|
64
64
|
autoload :CreateBehavior, 'brick_ftp/restful_api/create_behavior'
|
65
65
|
autoload :UpdateBehavior, 'brick_ftp/restful_api/update_behavior'
|
66
66
|
autoload :DeleteBehavior, 'brick_ftp/restful_api/delete_behavior'
|
67
|
-
# ref. https://developers.
|
67
|
+
# ref. https://developers.files.com/#file-and-folder-operations
|
68
68
|
autoload :ListFolders, 'brick_ftp/restful_api/list_folders'
|
69
69
|
autoload :CreateFolder, 'brick_ftp/restful_api/create_folder'
|
70
70
|
autoload :CountFolderContents, 'brick_ftp/restful_api/count_folder_contents'
|
@@ -73,7 +73,7 @@ module BrickFTP
|
|
73
73
|
autoload :MoveFolder, 'brick_ftp/restful_api/move_folder'
|
74
74
|
autoload :CopyFolder, 'brick_ftp/restful_api/copy_folder'
|
75
75
|
autoload :DeleteFolder, 'brick_ftp/restful_api/delete_folder'
|
76
|
-
# ref. https://developers.
|
76
|
+
# ref. https://developers.files.com/#file-uploading
|
77
77
|
autoload :StartUpload, 'brick_ftp/restful_api/start_upload'
|
78
78
|
autoload :ContinueUpload, 'brick_ftp/restful_api/continue_upload'
|
79
79
|
autoload :CompleteUpload, 'brick_ftp/restful_api/complete_upload'
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# ## The behavior object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-behavior-object The behavior object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# ---------- | -------- | -----------
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# The bundle object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-bundle-object The bundle object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# ---------- | -------- | -----------
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# An element of bundle contents
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#list-bundle-contents List bundle contents
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# --------- | ------- | -----------
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module Types
|
5
5
|
using BrickFTP::CoreExt::Struct
|
6
6
|
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#download-entire-bundle-as-zip Download entire bundle as ZIP
|
8
8
|
#
|
9
9
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
10
10
|
# ------------ | -------- | -----------
|
data/lib/brick_ftp/types/file.rb
CHANGED
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# The file/folder object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-file-folder-object The file/folder object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# ------------------ | -------- | -----------
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module Types
|
5
5
|
using BrickFTP::CoreExt::Struct
|
6
6
|
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#download-one-file-in-a-bundle Download one file in a bundle
|
8
8
|
#
|
9
9
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
10
10
|
# ------------ | -------- | -----------
|
@@ -4,8 +4,8 @@ module BrickFTP
|
|
4
4
|
module Types
|
5
5
|
using BrickFTP::CoreExt::Struct
|
6
6
|
|
7
|
-
# @see https://developers.
|
8
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#count-folder-contents-recursively Count folder contents recursively
|
8
|
+
# @see https://developers.files.com/#count-folder-contents-non-recursively Count folder contents non-recursively
|
9
9
|
#
|
10
10
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
11
11
|
# ---------- | ------- | -----------
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# The group object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-group-object The group object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# --------- | ------------------------ | -----------
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# membership object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#add-a-member membership object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# --------- | ------- | -----------
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# The notification object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-notification-object The notification object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# ------------- | -------- | -----------
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# The notification object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-notification-object The notification object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# ------------- | ------- | -----------
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# The permission object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-permission-object The permission object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# ---------- | ------- | -----------
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# The upload object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-upload-object The upload object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# -------------------- | --------------- | -----------
|
data/lib/brick_ftp/types/user.rb
CHANGED
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# The user object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-user-object The user object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# ----------------------- | ------------------------ | -----------
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# The API key object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-api-key-object The API key object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# -------------- | -------- | -----------
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
|
7
7
|
# The public key object
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#the-public-key-object The public key object
|
10
10
|
#
|
11
11
|
# ATTRIBUTE | TYPE | DESCRIPTION
|
12
12
|
# ----------- | -------- | -----------
|
data/lib/brick_ftp/version.rb
CHANGED
data/lib/brick_ftp.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brick_ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- koshigoe
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.16'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.16'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: codecov
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.10
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1.10
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: pry
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,6 +146,11 @@ files:
|
|
160
146
|
- ".circleci/config.yml"
|
161
147
|
- ".github/ISSUE_TEMPLATE.md"
|
162
148
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
149
|
+
- ".github/action/publish_gem/Dockerfile"
|
150
|
+
- ".github/action/publish_gem/entrypoint.sh"
|
151
|
+
- ".github/action/write_github_release/Dockerfile"
|
152
|
+
- ".github/action/write_github_release/entrypoint.sh"
|
153
|
+
- ".github/main.workflow"
|
163
154
|
- ".gitignore"
|
164
155
|
- ".rspec"
|
165
156
|
- ".rubocop.yml"
|
@@ -173,6 +164,7 @@ files:
|
|
173
164
|
- bin/console
|
174
165
|
- bin/setup
|
175
166
|
- brick_ftp.gemspec
|
167
|
+
- docker-compose.yml
|
176
168
|
- lib/brick_ftp.rb
|
177
169
|
- lib/brick_ftp/client.rb
|
178
170
|
- lib/brick_ftp/core_ext.rb
|
@@ -273,7 +265,7 @@ homepage: https://github.com/koshigoe/brick_ftp
|
|
273
265
|
licenses:
|
274
266
|
- MIT
|
275
267
|
metadata: {}
|
276
|
-
post_install_message:
|
268
|
+
post_install_message:
|
277
269
|
rdoc_options: []
|
278
270
|
require_paths:
|
279
271
|
- lib
|
@@ -281,16 +273,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
281
273
|
requirements:
|
282
274
|
- - ">="
|
283
275
|
- !ruby/object:Gem::Version
|
284
|
-
version: 2.
|
276
|
+
version: 2.5.0
|
285
277
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
278
|
requirements:
|
287
279
|
- - ">="
|
288
280
|
- !ruby/object:Gem::Version
|
289
281
|
version: '0'
|
290
282
|
requirements: []
|
291
|
-
|
292
|
-
|
293
|
-
signing_key:
|
283
|
+
rubygems_version: 3.1.6
|
284
|
+
signing_key:
|
294
285
|
specification_version: 4
|
295
286
|
summary: BrickFTP's REST API client.
|
296
287
|
test_files: []
|