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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f7d2008959914d253d45c848df79bcdd45a6cbd
4
- data.tar.gz: b3a7ca9ebe100da7bc8c68c7490edb90388a0e9b
3
+ metadata.gz: a53c0a980b612af1614d180fe1c4a8e5ccdf5ce4
4
+ data.tar.gz: bdf44b3e6485972ba3c012ec7351511d38ca3109
5
5
  SHA512:
6
- metadata.gz: f6c1e0f9569ac5d9fb9f76a1c491db0a0df4f5e040a58da575ef7ad0455f08ff587f1ccee43ee4b75ab3fe1133a1e4215483d92ed6af347b5d48b873cb293964
7
- data.tar.gz: b50c205cb933df69506802cf3b8baa8686a40641ba298d7188226b63d0eb986389a0b2461edd0eeb1d79c267aab3dca7f20be05a6f8389126c2ec7e3184736f1
6
+ metadata.gz: 0edb58d0f6df92808c99e9b4bc8c6b55bfe997888d7c146ed6e06dcab750f387f24559bd3d23c16801946f0f13c3e60bf20198175c43b2db1ba04a8474bf2138
7
+ data.tar.gz: ef7742934604f9f4e56d32cfba1afeb022359cce770b9ff9d0a55d05a6c4cb49c20b2ca0f65e6b013670baf0fa4b8d2b797872a533d9c5915f2ba45865956993
@@ -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, move_destination: move_destination)
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, copy_destination: copy_destination)
339
+ BrickFTP::API::FileOperation::Copy.create(path: path, :'copy-destination' => copy_destination)
339
340
  end
340
341
 
341
342
  # Delete a file.
@@ -1,3 +1,3 @@
1
1
  module BrickFTP
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brick_ftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - koshigoe