brick_ftp 0.3.1 → 0.3.2
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/lib/brick_ftp/client.rb +5 -4
- data/lib/brick_ftp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a53c0a980b612af1614d180fe1c4a8e5ccdf5ce4
|
4
|
+
data.tar.gz: bdf44b3e6485972ba3c012ec7351511d38ca3109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0edb58d0f6df92808c99e9b4bc8c6b55bfe997888d7c146ed6e06dcab750f387f24559bd3d23c16801946f0f13c3e60bf20198175c43b2db1ba04a8474bf2138
|
7
|
+
data.tar.gz: ef7742934604f9f4e56d32cfba1afeb022359cce770b9ff9d0a55d05a6c4cb49c20b2ca0f65e6b013670baf0fa4b8d2b797872a533d9c5915f2ba45865956993
|
data/lib/brick_ftp/client.rb
CHANGED
@@ -157,12 +157,13 @@ module BrickFTP
|
|
157
157
|
|
158
158
|
# Show all history for a specific user.
|
159
159
|
# @see https://brickftp.com/ja/docs/rest-api/history/
|
160
|
+
# @param user_id [Integer] User ID.
|
160
161
|
# @param page [Integer] Page number of items to return in this request.
|
161
162
|
# @param per_page [Integer] Requested number of items returned per request. Default: 1000, maximum: 10000. Leave blank for default (strongly recommended).
|
162
163
|
# @param start_at [String] Date and time in the history to start from.
|
163
164
|
# @return [Array] array of `BrickFTP::API::History::User`
|
164
|
-
def list_user_history(page: nil, per_page: nil, start_at: nil)
|
165
|
-
query = { page: page, per_page: per_page, start_at: start_at }.reject { |_, v| v.nil? }
|
165
|
+
def list_user_history(user_id:, page: nil, per_page: nil, start_at: nil)
|
166
|
+
query = { user_id: user_id, page: page, per_page: per_page, start_at: start_at }.reject { |_, v| v.nil? }
|
166
167
|
BrickFTP::API::History::User.all(query)
|
167
168
|
end
|
168
169
|
|
@@ -326,7 +327,7 @@ module BrickFTP
|
|
326
327
|
# @param move_destination [String]
|
327
328
|
# @return [BrickFTP::API::FileMove]
|
328
329
|
def move_file(path:, move_destination:)
|
329
|
-
BrickFTP::API::FileOperation::Move.create(path: path,
|
330
|
+
BrickFTP::API::FileOperation::Move.create(path: path, :'move-destination' => move_destination)
|
330
331
|
end
|
331
332
|
|
332
333
|
# Copy a file or folder to the destination provided in the copy_destination parameter.
|
@@ -335,7 +336,7 @@ module BrickFTP
|
|
335
336
|
# @param copy_destination [String]
|
336
337
|
# @return [BrickFTP::API::FileCopy]
|
337
338
|
def copy_file(path:, copy_destination:)
|
338
|
-
BrickFTP::API::FileOperation::Copy.create(path: path,
|
339
|
+
BrickFTP::API::FileOperation::Copy.create(path: path, :'copy-destination' => copy_destination)
|
339
340
|
end
|
340
341
|
|
341
342
|
# Delete a file.
|
data/lib/brick_ftp/version.rb
CHANGED