brick_ftp 1.0.1 → 2.0.0
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/.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/CHANGELOG.md +17 -2
- data/README.md +2 -2
- data/lib/brick_ftp.rb +1 -1
- data/lib/brick_ftp/restful_api.rb +11 -11
- data/lib/brick_ftp/restful_api/add_group_member.rb +1 -1
- data/lib/brick_ftp/restful_api/client.rb +2 -2
- data/lib/brick_ftp/restful_api/complete_upload.rb +1 -1
- data/lib/brick_ftp/restful_api/continue_upload.rb +1 -1
- data/lib/brick_ftp/restful_api/copy_folder.rb +1 -1
- data/lib/brick_ftp/restful_api/count_folder_contents.rb +2 -2
- data/lib/brick_ftp/restful_api/count_users.rb +1 -1
- data/lib/brick_ftp/restful_api/create_api_key.rb +1 -1
- data/lib/brick_ftp/restful_api/create_behavior.rb +1 -1
- data/lib/brick_ftp/restful_api/create_bundle.rb +1 -1
- data/lib/brick_ftp/restful_api/create_folder.rb +1 -1
- data/lib/brick_ftp/restful_api/create_group.rb +1 -1
- data/lib/brick_ftp/restful_api/create_notification.rb +1 -1
- data/lib/brick_ftp/restful_api/create_permission.rb +1 -1
- data/lib/brick_ftp/restful_api/create_public_key.rb +1 -1
- data/lib/brick_ftp/restful_api/create_user.rb +1 -1
- data/lib/brick_ftp/restful_api/create_user_in_group.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/brick_ftp/restful_api/get_api_key.rb +1 -1
- data/lib/brick_ftp/restful_api/get_behavior.rb +1 -1
- data/lib/brick_ftp/restful_api/get_bundle.rb +1 -1
- data/lib/brick_ftp/restful_api/get_bundle_zip.rb +1 -1
- data/lib/brick_ftp/restful_api/get_file_in_bundle.rb +1 -1
- data/lib/brick_ftp/restful_api/get_folder_size.rb +1 -1
- data/lib/brick_ftp/restful_api/get_group.rb +1 -1
- data/lib/brick_ftp/restful_api/get_public_key.rb +1 -1
- data/lib/brick_ftp/restful_api/get_user.rb +1 -1
- data/lib/brick_ftp/restful_api/list_api_keys.rb +1 -1
- data/lib/brick_ftp/restful_api/list_behaviors.rb +1 -1
- data/lib/brick_ftp/restful_api/list_bundle_contents.rb +1 -1
- data/lib/brick_ftp/restful_api/list_bundles.rb +1 -1
- data/lib/brick_ftp/restful_api/list_folder_behaviors.rb +1 -1
- data/lib/brick_ftp/restful_api/list_folders.rb +1 -1
- data/lib/brick_ftp/restful_api/list_groups.rb +1 -1
- data/lib/brick_ftp/restful_api/list_notifications.rb +1 -1
- data/lib/brick_ftp/restful_api/list_permissions.rb +1 -1
- data/lib/brick_ftp/restful_api/list_public_keys.rb +1 -1
- data/lib/brick_ftp/restful_api/list_users.rb +1 -1
- 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_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 +1 -1
- data/lib/brick_ftp/restful_api/start_upload.rb +1 -1
- data/lib/brick_ftp/restful_api/unlock_user.rb +1 -1
- data/lib/brick_ftp/restful_api/update_behavior.rb +1 -1
- data/lib/brick_ftp/restful_api/update_group.rb +1 -1
- data/lib/brick_ftp/restful_api/update_group_member.rb +1 -1
- data/lib/brick_ftp/restful_api/update_user.rb +1 -1
- data/lib/brick_ftp/restful_api/upload_file.rb +4 -4
- 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
- metadata +8 -4
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
|
6
6
|
module RESTfulAPI
|
|
7
7
|
# Delete a file or folder
|
|
8
8
|
#
|
|
9
|
-
# @see https://developers.
|
|
9
|
+
# @see https://developers.files.com/#delete-a-file-or-folder Delete a file or folder
|
|
10
10
|
#
|
|
11
11
|
class DeleteFolder
|
|
12
12
|
include Command
|
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
|
4
4
|
module RESTfulAPI
|
|
5
5
|
# Delete a notification
|
|
6
6
|
#
|
|
7
|
-
# @see https://developers.
|
|
7
|
+
# @see https://developers.files.com/#delete-a-notification Delete a notification
|
|
8
8
|
#
|
|
9
9
|
class DeleteNotification
|
|
10
10
|
include Command
|
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
|
4
4
|
module RESTfulAPI
|
|
5
5
|
# Delete a permission
|
|
6
6
|
#
|
|
7
|
-
# @see https://developers.
|
|
7
|
+
# @see https://developers.files.com/#delete-a-permission Delete a permission
|
|
8
8
|
#
|
|
9
9
|
class DeletePermission
|
|
10
10
|
include Command
|
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
|
4
4
|
module RESTfulAPI
|
|
5
5
|
# Delete a public key
|
|
6
6
|
#
|
|
7
|
-
# @see https://developers.
|
|
7
|
+
# @see https://developers.files.com/#delete-a-public-key Delete a public key
|
|
8
8
|
#
|
|
9
9
|
class DeletePublicKey
|
|
10
10
|
include Command
|
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
|
4
4
|
module RESTfulAPI
|
|
5
5
|
# Download entire bundle as ZIP
|
|
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
|
# ### Params
|
|
10
10
|
#
|
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
|
4
4
|
module RESTfulAPI
|
|
5
5
|
# Download one file in a bundle
|
|
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
|
# ### Params
|
|
10
10
|
#
|
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
|
6
6
|
module RESTfulAPI
|
|
7
7
|
# List behaviors for a folder
|
|
8
8
|
#
|
|
9
|
-
# @see https://developers.
|
|
9
|
+
# @see https://developers.files.com/#list-behaviors-for-a-folder List behaviors for a folder
|
|
10
10
|
#
|
|
11
11
|
# ### Params
|
|
12
12
|
#
|
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
|
4
4
|
module RESTfulAPI
|
|
5
5
|
# List all notifications
|
|
6
6
|
#
|
|
7
|
-
# @see https://developers.
|
|
7
|
+
# @see https://developers.files.com/#list-all-notifications List all notifications
|
|
8
8
|
#
|
|
9
9
|
class ListNotifications
|
|
10
10
|
include Command
|
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
|
6
6
|
module RESTfulAPI
|
|
7
7
|
# Move or rename a file or folder
|
|
8
8
|
#
|
|
9
|
-
# @see https://developers.
|
|
9
|
+
# @see https://developers.files.com/#move-or-rename-a-file-or-folder Move or rename a file or folder
|
|
10
10
|
#
|
|
11
11
|
# ### Params
|
|
12
12
|
#
|
|
@@ -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
|
#
|
|
@@ -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
|
|
@@ -6,13 +6,13 @@ 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
|