drb_fileclient 0.6.2 → 0.6.3

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: 999b420d751011626f3ed98cdca573242b85e1935f7dd6e79e2d359ed288d180
4
- data.tar.gz: 261480c5b9e8b66685fbbfa308dc429120abdb3421c028c822f0e9ec9e732368
3
+ metadata.gz: 11e459b03b12daa5f495705cfe50f05e054c273a31fc1e6f71ba919fc24070b3
4
+ data.tar.gz: 6b38f58bbdbff1b4da1129f70087cb2c7f60454d9ad4a7b9d44300a5a93eaa17
5
5
  SHA512:
6
- metadata.gz: b04b95f16e439987d441508da786bbe556652ea65a368d0a84428885f0b3fd4889cdfebb42ee97687f054c9f8d24ff0a2f1f48595054a0a19411201faa4a814a
7
- data.tar.gz: 87ef8faaabd5bd8b8196bc76d0a6eb8c2857c4a60d9795d244652ed619c3e00c5eca45ec507da3bf9e4c1ae5ffbe494e748d1495d225dd8e1cc0b05d55799a83
6
+ metadata.gz: 21558c01a3e3d3bbfa7e8c5d409d36d8575c844607a3904189e02554a24cc8c5c887d5663c3677399d2ddca44dae17b29f58ec3eac934b6dd22939db8fcdce56
7
+ data.tar.gz: 0eb1319c6eead463b8ada4b4cf45b29bb0fb6a3b5ac0121d3d7261b30a162887d1f8f96e32c0c7f6a8d69a81db7690628b8c60f48c6c6c7a0ea8b4345821e2eb
checksums.yaml.gz.sig CHANGED
Binary file
@@ -253,6 +253,22 @@ class DRbFileClient
253
253
 
254
254
  end
255
255
 
256
+ def rm_r(path, force: false)
257
+
258
+ unless @directory or path =~ /^dfs:\/\// then
259
+ return FileUtils.rm_r(path, force: force)
260
+ end
261
+
262
+ if path =~ /^dfs:\/\// then
263
+ @file, path2 = parse_path( path)
264
+ else
265
+ path2 = File.join(@directory, path)
266
+ end
267
+
268
+ @file.rm_r(path2, force: force)
269
+
270
+ end
271
+
256
272
  def touch(s, mtime: Time.now)
257
273
 
258
274
  unless @directory or s =~ /^dfs:\/\// then
@@ -343,6 +359,10 @@ class DfsFile
343
359
  def self.read(filename) @client.read(filename) end
344
360
  def self.rm(filename) @client.rm(filename) end
345
361
 
362
+ def self.rm_r(filename, force: false)
363
+ @client.rm_r(filename, force: force)
364
+ end
365
+
346
366
  def self.touch(filename, mtime: Time.now)
347
367
  @client.touch(filename, mtime: mtime)
348
368
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drb_fileclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  FGcgjmmz5fOIqq2sBxk6JW1yo2G43yIUzymWOYKT2Jh6RR0Gg3z66wWwYpFpx8yR
36
36
  00JTBNVAgW+s2sLpeBtyMDbb
37
37
  -----END CERTIFICATE-----
38
- date: 2022-02-08 00:00:00.000000000 Z
38
+ date: 2022-02-09 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: zip
metadata.gz.sig CHANGED
@@ -1 +1,3 @@
1
- �3����^�9�*� N�J�;����D�Z��‰�>�y��֕6<�'l���t����\�HV�b��Z'_0��Է‰~i�F ,��q�3��n_ ���v0�O��%�D9�`�P{���장,�~\S �13/MKj���Q�/C>iR�zZȤ ܄��Qw���&@�`\�N��-n#��Y�ɡʼn��;�y��_��^uڛ}DTpڞ�Ņ����Ů&I1֥@2gmq�-u�����KnZ���r&��ѻ�)6�E�L�n��\�a�_�:as���ld�K�� ����`���jw���gF2.���N:�룧��)��8�Xc(���v!C|$��ܩ \�Ӗ�|�k�������HM�? ������F �+
1
+ �i�ϲc��X�>O����� 'gu��Ncs��k����Ȧ br���X����:���979�/Y6� IC����*v�:�]&�q˓���lf97��]���Ie�ñ&%fV^��Ȱ�;���G췣��;AzhX���ۨ-ʁ˷y�!��D��JE7=ah}���P����ױ��8��E
2
+ b ٻ����d���@��y K(���Y#��+K<��$��f�Ψ�P/�1�9��m
3
+ ����&Eg�g�����?�5��^�!�Ed �E�N��r��V����Ӳ�'�5y��g�S�)�a�D���.�d=��KⰁ�)������d���