files.com 1.1.54 → 1.1.55

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
  SHA256:
3
- metadata.gz: 5de6d4d1de25e0201363e4acf297b8c3cb2628f865281d4f7946747960bf5841
4
- data.tar.gz: 26bbe2708540cc3809fce5d01a587fbada79ecba9746e1b07b4fe9ca7f4a0196
3
+ metadata.gz: b31fa365addd85b82c892b0d6eec32a5b2aba077903ffa4e958f22c4e9f4c458
4
+ data.tar.gz: cd0ca7c60173fbdf05d1d5469ec5fb813fb2286ccd50daac7d1798cb458617f0
5
5
  SHA512:
6
- metadata.gz: 06130c21efb4ef782d00147cc7de1240dd92b7c12295a7cb883ff024e1c318a68c8cc898e74908bd66dbf852144fc246d07410bc3dbf6bfe4ed3ec2064086696
7
- data.tar.gz: 189fd904fac9d329ef2528a82f8adb02b6a02b4e9f8f97efe152de7d6f10f481b5f90fbe706f15b102d2fc7ddf2050b4219fddb7f835d4ac911a4a1db3181415
6
+ metadata.gz: fa0d31e3ff4fd6981322eb0471372acb73bf82c9168eb6f1e1f9c02fecd5b04be69a2d54b46c83f19e19edab73d89534c1c243d17700695334bb4b753ecb1d5a
7
+ data.tar.gz: 7a8513e8579f1fd829bff2cd33f8b5d9989c94f8e7adbb9207dc6dd0da1aff154aeea052d6c9ea1c083038f59fc3443a93b6617f2d673dc189323323f2f2ee6d
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.54
1
+ 1.1.55
data/docs/file.md CHANGED
@@ -178,7 +178,8 @@ Files::File.find(path,
178
178
  ```
179
179
  Files::File.copy(path,
180
180
  destination: "destination",
181
- structure: true
181
+ structure: true,
182
+ overwrite: true
182
183
  )
183
184
  ```
184
185
 
@@ -187,6 +188,7 @@ Files::File.copy(path,
187
188
  * `path` (string): Required - Path to operate on.
188
189
  * `destination` (string): Required - Copy destination path.
189
190
  * `structure` (boolean): Copy structure only?
191
+ * `overwrite` (boolean): Overwrite existing file(s) in the destination?
190
192
 
191
193
 
192
194
  ---
@@ -195,7 +197,8 @@ Files::File.copy(path,
195
197
 
196
198
  ```
197
199
  Files::File.move(path,
198
- destination: "destination"
200
+ destination: "destination",
201
+ overwrite: true
199
202
  )
200
203
  ```
201
204
 
@@ -203,6 +206,7 @@ Files::File.move(path,
203
206
 
204
207
  * `path` (string): Required - Path to operate on.
205
208
  * `destination` (string): Required - Move destination path.
209
+ * `overwrite` (boolean): Overwrite existing file(s) in the destination?
206
210
 
207
211
 
208
212
  ---
@@ -302,7 +306,8 @@ file = Files::File.new
302
306
 
303
307
  file.copy(
304
308
  destination: "destination",
305
- structure: true
309
+ structure: true,
310
+ overwrite: true
306
311
  )
307
312
  ```
308
313
 
@@ -311,6 +316,7 @@ file.copy(
311
316
  * `path` (string): Required - Path to operate on.
312
317
  * `destination` (string): Required - Copy destination path.
313
318
  * `structure` (boolean): Copy structure only?
319
+ * `overwrite` (boolean): Overwrite existing file(s) in the destination?
314
320
 
315
321
 
316
322
  ---
@@ -321,7 +327,8 @@ file.copy(
321
327
  file = Files::File.new
322
328
 
323
329
  file.move(
324
- destination: "destination"
330
+ destination: "destination",
331
+ overwrite: true
325
332
  )
326
333
  ```
327
334
 
@@ -329,6 +336,7 @@ file.move(
329
336
 
330
337
  * `path` (string): Required - Path to operate on.
331
338
  * `destination` (string): Required - Move destination path.
339
+ * `overwrite` (boolean): Overwrite existing file(s) in the destination?
332
340
 
333
341
 
334
342
  ---
@@ -860,6 +860,7 @@ module Files
860
860
  # Parameters:
861
861
  # destination (required) - string - Copy destination path.
862
862
  # structure - boolean - Copy structure only?
863
+ # overwrite - boolean - Overwrite existing file(s) in the destination?
863
864
  def copy(params = {})
864
865
  params ||= {}
865
866
  params[:path] = @attributes[:path]
@@ -876,6 +877,7 @@ module Files
876
877
  #
877
878
  # Parameters:
878
879
  # destination (required) - string - Move destination path.
880
+ # overwrite - boolean - Overwrite existing file(s) in the destination?
879
881
  def move(params = {})
880
882
  params ||= {}
881
883
  params[:path] = @attributes[:path]
@@ -1029,6 +1031,7 @@ module Files
1029
1031
  # Parameters:
1030
1032
  # destination (required) - string - Copy destination path.
1031
1033
  # structure - boolean - Copy structure only?
1034
+ # overwrite - boolean - Overwrite existing file(s) in the destination?
1032
1035
  def self.copy(path, params = {}, options = {})
1033
1036
  params ||= {}
1034
1037
  params[:path] = path
@@ -1045,6 +1048,7 @@ module Files
1045
1048
  #
1046
1049
  # Parameters:
1047
1050
  # destination (required) - string - Move destination path.
1051
+ # overwrite - boolean - Overwrite existing file(s) in the destination?
1048
1052
  def self.move(path, params = {}, options = {})
1049
1053
  params ||= {}
1050
1054
  params[:path] = path
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.54"
4
+ VERSION = "1.1.55"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.54
4
+ version: 1.1.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-27 00:00:00.000000000 Z
11
+ date: 2024-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable