brick_ftp 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -1
- data/CHANGELOG.md +20 -2
- data/brick_ftp.gemspec +1 -1
- data/lib/brick_ftp/api/base.rb +6 -0
- data/lib/brick_ftp/api/history/file.rb +1 -0
- data/lib/brick_ftp/api/history/folder.rb +1 -0
- data/lib/brick_ftp/api/history/login.rb +1 -0
- data/lib/brick_ftp/api/history/site.rb +1 -0
- data/lib/brick_ftp/api/history/user.rb +1 -0
- data/lib/brick_ftp/client.rb +58 -52
- data/lib/brick_ftp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1573831595893f675536b07ea2a3abca125de11
|
4
|
+
data.tar.gz: '0148c2307700f7bee1ec25fc54f0e9f44f294f75'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47a7022ff8aed22042d39ccb55901dff645b822e584c9387d462651da6c36302ed79d680c7c34d62515ee9cb2d7e418165d35733021209c995a09726167982ac
|
7
|
+
data.tar.gz: eb55b9da62d5719cd3e0cbb96f0079e4a90171cc3659b7afc7f4dd79e20bf9cb93397446faa517d4f68244d0fb9012da35088ac3db937514349397598641c4df
|
data/.rubocop.yml
CHANGED
@@ -9,9 +9,15 @@ Style/EmptyCaseCondition:
|
|
9
9
|
Style/FormatStringToken:
|
10
10
|
EnforcedStyle: template
|
11
11
|
|
12
|
-
Style/
|
12
|
+
Style/TrailingCommaInHashLiteral:
|
13
13
|
EnforcedStyleForMultiline: consistent_comma
|
14
14
|
|
15
|
+
Style/TrailingCommaInArrayLiteral:
|
16
|
+
EnforcedStyleForMultiline: consistent_comma
|
17
|
+
|
18
|
+
Metrics/ClassLength:
|
19
|
+
Enabled: false
|
20
|
+
|
15
21
|
Metrics/LineLength:
|
16
22
|
Max: 124
|
17
23
|
AllowURI: true
|
data/CHANGELOG.md
CHANGED
@@ -2,10 +2,10 @@ Changelog
|
|
2
2
|
====
|
3
3
|
|
4
4
|
|
5
|
-
[unreleased](https://github.com/koshigoe/brick_ftp/compare/v0.8.
|
5
|
+
[unreleased](https://github.com/koshigoe/brick_ftp/compare/v0.8.2...master)
|
6
6
|
----
|
7
7
|
|
8
|
-
[Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v0.8.
|
8
|
+
[Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v0.8.2...master)
|
9
9
|
|
10
10
|
### Enhancements:
|
11
11
|
|
@@ -14,6 +14,24 @@ Changelog
|
|
14
14
|
### Breaking Changes:
|
15
15
|
|
16
16
|
|
17
|
+
[0.8.2](https://github.com/koshigoe/brick_ftp/compare/v0.8.1...v0.8.2)
|
18
|
+
----
|
19
|
+
|
20
|
+
[Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v0.8.1...v0.8.2)
|
21
|
+
|
22
|
+
### Enhancements:
|
23
|
+
|
24
|
+
- [#96](https://github.com/koshigoe/brick_ftp/pull/96) Add display key to history (by [terencedignon](https://github.com/terencedignon))
|
25
|
+
|
26
|
+
### Fixed Bugs:
|
27
|
+
|
28
|
+
### Breaking Changes:
|
29
|
+
|
30
|
+
### Others
|
31
|
+
|
32
|
+
- [#98](https://github.com/koshigoe/brick_ftp/pull/98) Documentation is out of date (by [terencedignon](https://github.com/terencedignon))
|
33
|
+
|
34
|
+
|
17
35
|
[v0.8.1](https://github.com/koshigoe/brick_ftp/compare/v0.8.0...v0.8.1)
|
18
36
|
----
|
19
37
|
|
data/brick_ftp.gemspec
CHANGED
data/lib/brick_ftp/api/base.rb
CHANGED
data/lib/brick_ftp/client.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module BrickFTP
|
2
2
|
class Client
|
3
3
|
# Login and store authentication session.
|
4
|
-
# @see https://brickftp.com
|
4
|
+
# @see https://developers.brickftp.com/#authentication-with-a-session
|
5
5
|
# @param username [String] username of BrickFTP's user.
|
6
6
|
# @param password [String] password of BrickFTP's user.
|
7
7
|
def login(username, password)
|
@@ -9,20 +9,20 @@ module BrickFTP
|
|
9
9
|
end
|
10
10
|
|
11
11
|
# Logout and discard authentication session.
|
12
|
-
# @see https://brickftp.com
|
12
|
+
# @see https://developers.brickftp.com/#authentication-with-a-session
|
13
13
|
def logout
|
14
14
|
BrickFTP::API::Authentication.logout
|
15
15
|
end
|
16
16
|
|
17
17
|
# List all users on the current site.
|
18
|
-
# @see https://brickftp.com
|
18
|
+
# @see https://developers.brickftp.com/#users
|
19
19
|
# @return [Array] array of BrickFTP::API::User
|
20
20
|
def list_users
|
21
21
|
BrickFTP::API::User.all
|
22
22
|
end
|
23
23
|
|
24
24
|
# Show a single user.
|
25
|
-
# @see https://brickftp.com
|
25
|
+
# @see https://developers.brickftp.com/#users
|
26
26
|
# @param id user id.
|
27
27
|
# @return [BrickFTP::API::User] user object.
|
28
28
|
def show_user(id)
|
@@ -30,14 +30,14 @@ module BrickFTP
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# Create a new user on the current site.
|
33
|
-
# @see https://brickftp.com
|
33
|
+
# @see https://developers.brickftp.com/#users
|
34
34
|
# @param attributes [Hash] User's attributes.
|
35
35
|
def create_user(attributes)
|
36
36
|
BrickFTP::API::User.create(attributes)
|
37
37
|
end
|
38
38
|
|
39
39
|
# Update an existing user.
|
40
|
-
# @see https://brickftp.com
|
40
|
+
# @see https://developers.brickftp.com/#users
|
41
41
|
# @param user_or_id [BrickFTP::API::User, Integer] user object or user id.
|
42
42
|
# @param attributes [Hash] User's attributes.
|
43
43
|
# @return [BrickFTP::API::User] user object.
|
@@ -46,7 +46,7 @@ module BrickFTP
|
|
46
46
|
end
|
47
47
|
|
48
48
|
# Delete a user.
|
49
|
-
# @see https://brickftp.com
|
49
|
+
# @see https://developers.brickftp.com/#users
|
50
50
|
# @param user_or_id [BrickFTP::API::User, Integer] user object or user id.
|
51
51
|
# @return [Boolean] return true.
|
52
52
|
def delete_user(user_or_id)
|
@@ -54,13 +54,13 @@ module BrickFTP
|
|
54
54
|
end
|
55
55
|
|
56
56
|
# List all groups on the current site.
|
57
|
-
# @see https://brickftp.com
|
57
|
+
# @see https://developers.brickftp.com/#groups
|
58
58
|
def list_groups
|
59
59
|
BrickFTP::API::Group.all
|
60
60
|
end
|
61
61
|
|
62
62
|
# Show a single group.
|
63
|
-
# @see https://brickftp.com
|
63
|
+
# @see https://developers.brickftp.com/#groups
|
64
64
|
# @param id group id.
|
65
65
|
# @return [BrickFTP::API::Group] group object.
|
66
66
|
def show_group(id)
|
@@ -68,14 +68,14 @@ module BrickFTP
|
|
68
68
|
end
|
69
69
|
|
70
70
|
# Create a new group on the current site.
|
71
|
-
# @see https://brickftp.com
|
71
|
+
# @see https://developers.brickftp.com/#groups
|
72
72
|
# @param attributes [Hash] Group's attributes.
|
73
73
|
def create_group(attributes)
|
74
74
|
BrickFTP::API::Group.create(attributes)
|
75
75
|
end
|
76
76
|
|
77
77
|
# Update an existing group.
|
78
|
-
# @see https://brickftp.com
|
78
|
+
# @see https://developers.brickftp.com/#groups
|
79
79
|
# @param group_or_id [BrickFTP::API::Group, Integer] group object or group id.
|
80
80
|
# @param attributes [Hash] Group's attributes.
|
81
81
|
# @return [BrickFTP::API::Group] group object.
|
@@ -84,7 +84,7 @@ module BrickFTP
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# Delete a group.
|
87
|
-
# @see https://brickftp.com
|
87
|
+
# @see https://developers.brickftp.com/#groups
|
88
88
|
# @param group_or_id [BrickFTP::API::Group, Integer] group object or group id.
|
89
89
|
# @return [Boolean] return true.
|
90
90
|
def delete_group(group_or_id)
|
@@ -92,20 +92,20 @@ module BrickFTP
|
|
92
92
|
end
|
93
93
|
|
94
94
|
# List all permissions on the current site.
|
95
|
-
# @see https://brickftp.com
|
95
|
+
# @see https://developers.brickftp.com/#permissions
|
96
96
|
def list_permissions
|
97
97
|
BrickFTP::API::Permission.all
|
98
98
|
end
|
99
99
|
|
100
100
|
# Create a new permission on the current site.
|
101
|
-
# @see https://brickftp.com
|
101
|
+
# @see https://developers.brickftp.com/#permissions
|
102
102
|
# @param attributes [Hash] Permission's attributes.
|
103
103
|
def create_permission(attributes)
|
104
104
|
BrickFTP::API::Permission.create(attributes)
|
105
105
|
end
|
106
106
|
|
107
107
|
# Delete a permission.
|
108
|
-
# @see https://brickftp.com
|
108
|
+
# @see https://developers.brickftp.com/#permissions
|
109
109
|
# @param permission_or_id [BrickFTP::API::Permission, Integer] permission object or permission id.
|
110
110
|
# @return [Boolean] return true.
|
111
111
|
def delete_permission(permission_or_id)
|
@@ -113,20 +113,20 @@ module BrickFTP
|
|
113
113
|
end
|
114
114
|
|
115
115
|
# List all notifications on the current site.
|
116
|
-
# @see https://brickftp.com
|
116
|
+
# @see https://developers.brickftp.com/#notifications
|
117
117
|
def list_notifications
|
118
118
|
BrickFTP::API::Notification.all
|
119
119
|
end
|
120
120
|
|
121
121
|
# Create a new notification on the current site.
|
122
|
-
# @see https://brickftp.com
|
122
|
+
# @see https://developers.brickftp.com/#notifications
|
123
123
|
# @param attributes [Hash] Notification's attributes.
|
124
124
|
def create_notification(attributes)
|
125
125
|
BrickFTP::API::Notification.create(attributes)
|
126
126
|
end
|
127
127
|
|
128
128
|
# Delete a notification.
|
129
|
-
# @see https://brickftp.com
|
129
|
+
# @see https://developers.brickftp.com/#notifications
|
130
130
|
# @param notification_or_id [BrickFTP::API::Notification, Integer] notification object or notification id.
|
131
131
|
# @return [Boolean] return true.
|
132
132
|
def delete_notification(notification_or_id)
|
@@ -134,77 +134,83 @@ module BrickFTP
|
|
134
134
|
end
|
135
135
|
|
136
136
|
# Show the entire history for the current site.
|
137
|
-
# @see https://brickftp.com
|
137
|
+
# @see https://developers.brickftp.com/#history
|
138
138
|
# @param page [Integer] Page number of items to return in this request.
|
139
|
+
# @param display [String] Pass in 'full' to receive display summary
|
139
140
|
# @param per_page [Integer] Requested number of items returned per request. Default: 1000, maximum: 10000.
|
140
141
|
# Leave blank for default (strongly recommended).
|
141
142
|
# @param start_at [String] Date and time in the history to start from.
|
142
143
|
# @return [Array] array of `BrickFTP::API::History::Site`
|
143
|
-
def list_site_history(page: nil, per_page: nil, start_at: nil)
|
144
|
-
query = { page: page, per_page: per_page, start_at: start_at }.reject { |_, v| v.nil? }
|
144
|
+
def list_site_history(page: nil, display: nil, per_page: nil, start_at: nil)
|
145
|
+
query = { page: page, display: display, per_page: per_page, start_at: start_at }.reject { |_, v| v.nil? }
|
145
146
|
BrickFTP::API::History::Site.all(query)
|
146
147
|
end
|
147
148
|
|
148
149
|
# Show login history only.
|
149
|
-
# @see https://brickftp.com
|
150
|
+
# @see https://developers.brickftp.com/#history
|
150
151
|
# @param page [Integer] Page number of items to return in this request.
|
152
|
+
# @param display [String] Pass in 'full' to receive display summary
|
151
153
|
# @param per_page [Integer] Requested number of items returned per request. Default: 1000, maximum: 10000.
|
152
154
|
# Leave blank for default (strongly recommended).
|
153
155
|
# @param start_at [String] Date and time in the history to start from.
|
154
156
|
# @return [Array] array of `BrickFTP::API::History::Login`
|
155
|
-
def list_login_history(page: nil, per_page: nil, start_at: nil)
|
156
|
-
query = { page: page, per_page: per_page, start_at: start_at }.reject { |_, v| v.nil? }
|
157
|
+
def list_login_history(page: nil, display: nil, per_page: nil, start_at: nil)
|
158
|
+
query = { page: page, display: display, per_page: per_page, start_at: start_at }.reject { |_, v| v.nil? }
|
157
159
|
BrickFTP::API::History::Login.all(query)
|
158
160
|
end
|
159
161
|
|
160
162
|
# Show all history for a specific user.
|
161
|
-
# @see https://brickftp.com
|
163
|
+
# @see https://developers.brickftp.com/#history
|
162
164
|
# @param user_id [Integer] User ID.
|
165
|
+
# @param display [String] Pass in 'full' to receive display summary
|
163
166
|
# @param page [Integer] Page number of items to return in this request.
|
164
167
|
# @param per_page [Integer] Requested number of items returned per request.
|
165
168
|
# Default: 1000, maximum: 10000. Leave blank for default (strongly recommended).
|
166
169
|
# @param start_at [String] Date and time in the history to start from.
|
167
170
|
# @return [Array] array of `BrickFTP::API::History::User`
|
168
|
-
def list_user_history(user_id:, page: nil, per_page: nil, start_at: nil)
|
169
|
-
query = { user_id: user_id, page: page, per_page: per_page, start_at: start_at }
|
171
|
+
def list_user_history(user_id:, display: nil, page: nil, per_page: nil, start_at: nil)
|
172
|
+
query = { user_id: user_id, display: display, page: page, per_page: per_page, start_at: start_at }
|
173
|
+
.reject { |_, v| v.nil? }
|
170
174
|
BrickFTP::API::History::User.all(query)
|
171
175
|
end
|
172
176
|
|
173
177
|
# Show all history for a specific folder.
|
174
|
-
# @see https://brickftp.com
|
178
|
+
# @see https://developers.brickftp.com/#history
|
175
179
|
# @param path [String] path of folder.
|
180
|
+
# @param display [String] Pass in 'full' to receive display summary
|
176
181
|
# @param page [Integer] Page number of items to return in this request.
|
177
182
|
# @param per_page [Integer] Requested number of items returned per request.
|
178
183
|
# Default: 1000, maximum: 10000. Leave blank for default (strongly recommended).
|
179
184
|
# @param start_at [String] Date and time in the history to start from.
|
180
185
|
# @return [Array] array of `BrickFTP::API::History::Folder`
|
181
|
-
def list_folder_history(path:, page: nil, per_page: nil, start_at: nil)
|
182
|
-
query = { path: path, page: page, per_page: per_page, start_at: start_at }.reject { |_, v| v.nil? }
|
186
|
+
def list_folder_history(path:, display: nil, page: nil, per_page: nil, start_at: nil)
|
187
|
+
query = { path: path, display: display, page: page, per_page: per_page, start_at: start_at }.reject { |_, v| v.nil? }
|
183
188
|
BrickFTP::API::History::Folder.all(query)
|
184
189
|
end
|
185
190
|
|
186
191
|
# Show all history for a specific file.
|
187
|
-
# @see https://brickftp.com
|
192
|
+
# @see https://developers.brickftp.com/#history
|
188
193
|
# @param path [String] path of file.
|
194
|
+
# @param display [String] Pass in 'full' to receive display summary
|
189
195
|
# @param page [Integer] Page number of items to return in this request.
|
190
196
|
# @param per_page [Integer] Requested number of items returned per request.
|
191
197
|
# Default: 1000, maximum: 10000. Leave blank for default (strongly recommended).
|
192
198
|
# @param start_at [String] Date and time in the history to start from.
|
193
199
|
# @return [Array] array of `BrickFTP::API::History::File`
|
194
|
-
def list_file_history(path:, page: nil, per_page: nil, start_at: nil)
|
195
|
-
query = { path: path, page: page, per_page: per_page, start_at: start_at }.reject { |_, v| v.nil? }
|
200
|
+
def list_file_history(path:, display: nil, page: nil, per_page: nil, start_at: nil)
|
201
|
+
query = { path: path, display: display, page: page, per_page: per_page, start_at: start_at }.reject { |_, v| v.nil? }
|
196
202
|
BrickFTP::API::History::File.all(query)
|
197
203
|
end
|
198
204
|
|
199
205
|
# List all bundles on the current site.
|
200
|
-
# @see https://brickftp.com
|
206
|
+
# @see https://developers.brickftp.com/#bundles
|
201
207
|
# @return [Array] array of BrickFTP::API::Bundle
|
202
208
|
def list_bundles
|
203
209
|
BrickFTP::API::Bundle.all
|
204
210
|
end
|
205
211
|
|
206
212
|
# Show a single bundle.
|
207
|
-
# @see https://brickftp.com
|
213
|
+
# @see https://developers.brickftp.com/#bundles
|
208
214
|
# @param id bundle id.
|
209
215
|
# @return [BrickFTP::API::Bundle] bundle object.
|
210
216
|
def show_bundle(id)
|
@@ -212,14 +218,14 @@ module BrickFTP
|
|
212
218
|
end
|
213
219
|
|
214
220
|
# Create a new bundle on the current site.
|
215
|
-
# @see https://brickftp.com
|
221
|
+
# @see https://developers.brickftp.com/#bundles
|
216
222
|
# @param attributes [Hash] Bundle's attributes.
|
217
223
|
def create_bundle(attributes)
|
218
224
|
BrickFTP::API::Bundle.create(attributes)
|
219
225
|
end
|
220
226
|
|
221
227
|
# Delete a bundle.
|
222
|
-
# @see https://brickftp.com
|
228
|
+
# @see https://developers.brickftp.com/#bundles
|
223
229
|
# @param bundle_or_id [BrickFTP::API::Bundle, Integer] bundle object or bundle id.
|
224
230
|
# @return [Boolean] return true.
|
225
231
|
def delete_bundle(bundle_or_id)
|
@@ -227,7 +233,7 @@ module BrickFTP
|
|
227
233
|
end
|
228
234
|
|
229
235
|
# List the contents of a bundle.
|
230
|
-
# @see https://brickftp.com
|
236
|
+
# @see https://developers.brickftp.com/#bundles
|
231
237
|
# @param path [String]
|
232
238
|
# @param code [String]
|
233
239
|
# @param host [String]
|
@@ -237,7 +243,7 @@ module BrickFTP
|
|
237
243
|
end
|
238
244
|
|
239
245
|
# Provides download URLs that will enable you to download the files in a bundle.
|
240
|
-
# @see https://brickftp.com
|
246
|
+
# @see https://developers.brickftp.com/#bundles
|
241
247
|
# @param code [String]
|
242
248
|
# @param host [String]
|
243
249
|
# @param paths [Array] array of path string.
|
@@ -247,14 +253,14 @@ module BrickFTP
|
|
247
253
|
end
|
248
254
|
|
249
255
|
# List all behaviors on the current site.
|
250
|
-
# @see https://brickftp.com
|
256
|
+
# @see https://developers.brickftp.com/#behaviors
|
251
257
|
# @return [Array] array of BrickFTP::API::Behavior
|
252
258
|
def list_behaviors
|
253
259
|
BrickFTP::API::Behavior.all
|
254
260
|
end
|
255
261
|
|
256
262
|
# Show a single behavior.
|
257
|
-
# @see https://brickftp.com
|
263
|
+
# @see https://developers.brickftp.com/#behaviors
|
258
264
|
# @param id behavior id.
|
259
265
|
# @return [BrickFTP::API::Behavior] behavior object.
|
260
266
|
def show_behavior(id)
|
@@ -262,14 +268,14 @@ module BrickFTP
|
|
262
268
|
end
|
263
269
|
|
264
270
|
# Create a new behavior on the current site.
|
265
|
-
# @see https://brickftp.com
|
271
|
+
# @see https://developers.brickftp.com/#behaviors
|
266
272
|
# @param attributes [Hash] Behavior's attributes.
|
267
273
|
def create_behavior(attributes)
|
268
274
|
BrickFTP::API::Behavior.create(attributes)
|
269
275
|
end
|
270
276
|
|
271
277
|
# Update an existing behavior.
|
272
|
-
# @see https://brickftp.com
|
278
|
+
# @see https://developers.brickftp.com/#behaviors
|
273
279
|
# @param behavior_or_id [BrickFTP::API::Behavior, Integer] behavior object or behavior id.
|
274
280
|
# @param attributes [Hash] Behavior's attributes.
|
275
281
|
# @return [BrickFTP::API::Behavior] behavior object.
|
@@ -278,7 +284,7 @@ module BrickFTP
|
|
278
284
|
end
|
279
285
|
|
280
286
|
# Delete a behavior.
|
281
|
-
# @see https://brickftp.com
|
287
|
+
# @see https://developers.brickftp.com/#behaviors
|
282
288
|
# @param behavior_or_id [BrickFTP::API::Behavior, Integer] behavior object or behavior id.
|
283
289
|
# @return [Boolean] return true.
|
284
290
|
def delete_behavior(behavior_or_id)
|
@@ -286,14 +292,14 @@ module BrickFTP
|
|
286
292
|
end
|
287
293
|
|
288
294
|
# shows the behaviors that apply to the given path.
|
289
|
-
# @see https://brickftp.com
|
295
|
+
# @see https://developers.brickftp.com/#behaviors
|
290
296
|
# @return [Array] array of BrickFTP::API::FolderBehavior
|
291
297
|
def list_folder_behaviors(path:)
|
292
298
|
BrickFTP::API::FolderBehavior.all(path: path)
|
293
299
|
end
|
294
300
|
|
295
301
|
# Lists the contents of the folder provided in the URL.
|
296
|
-
# @see https://brickftp.com
|
302
|
+
# @see https://developers.brickftp.com/#file-and-folder-operations
|
297
303
|
# @param path [String]
|
298
304
|
# @param page [Integer] Page number of items to return in this request.
|
299
305
|
# @param per_page [Integer] Requested number of items returned per request.
|
@@ -315,7 +321,7 @@ module BrickFTP
|
|
315
321
|
end
|
316
322
|
|
317
323
|
# Create a folder.
|
318
|
-
# @see https://brickftp.com
|
324
|
+
# @see https://developers.brickftp.com/#file-and-folder-operations
|
319
325
|
# @param path [String]
|
320
326
|
# @return [BrickFTP::API::Folder]
|
321
327
|
def create_folder(path:)
|
@@ -323,7 +329,7 @@ module BrickFTP
|
|
323
329
|
end
|
324
330
|
|
325
331
|
# provides a download URL that will enable you to download a file.
|
326
|
-
# @see https://brickftp.com
|
332
|
+
# @see https://developers.brickftp.com/#file-and-folder-operations
|
327
333
|
# @param path [String] path for file.
|
328
334
|
# @param omit_download_uri [Boolean] If true, omit download_uri. (Add query `action=stat`)
|
329
335
|
# @return [BrickFTP::API::File] file object.
|
@@ -334,7 +340,7 @@ module BrickFTP
|
|
334
340
|
end
|
335
341
|
|
336
342
|
# Move or renames a file or folder to the destination provided in the move_destination parameter.
|
337
|
-
# @see https://brickftp.com
|
343
|
+
# @see https://developers.brickftp.com/#file-and-folder-operations
|
338
344
|
# @param path [String]
|
339
345
|
# @param move_destination [String]
|
340
346
|
# @return [BrickFTP::API::FileMove]
|
@@ -343,7 +349,7 @@ module BrickFTP
|
|
343
349
|
end
|
344
350
|
|
345
351
|
# Copy a file or folder to the destination provided in the copy_destination parameter.
|
346
|
-
# @see https://brickftp.com
|
352
|
+
# @see https://developers.brickftp.com/#file-and-folder-operations
|
347
353
|
# @param path [String]
|
348
354
|
# @param copy_destination [String]
|
349
355
|
# @return [BrickFTP::API::FileCopy]
|
@@ -352,7 +358,7 @@ module BrickFTP
|
|
352
358
|
end
|
353
359
|
|
354
360
|
# Delete a file.
|
355
|
-
# @see https://brickftp.com
|
361
|
+
# @see https://developers.brickftp.com/#file-and-folder-operations
|
356
362
|
# @param file_or_path [BrickFTP::API::File, String] file object or file(folder) path.
|
357
363
|
# @param recursive [Boolean]
|
358
364
|
# @return [Boolean] return true.
|
@@ -361,7 +367,7 @@ module BrickFTP
|
|
361
367
|
end
|
362
368
|
|
363
369
|
# Upload file.
|
364
|
-
# @see https://brickftp.com
|
370
|
+
# @see https://developers.brickftp.com/#file-uploading
|
365
371
|
# @param path [String]
|
366
372
|
# @param source [IO] source `data` (not `path`) to upload
|
367
373
|
# @param chunk_size [Integer] Size of chunk to multi-part upload.
|
data/lib/brick_ftp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brick_ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- koshigoe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|