drb_fileclient 0.6.2 → 0.7.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
  SHA256:
3
- metadata.gz: 999b420d751011626f3ed98cdca573242b85e1935f7dd6e79e2d359ed288d180
4
- data.tar.gz: 261480c5b9e8b66685fbbfa308dc429120abdb3421c028c822f0e9ec9e732368
3
+ metadata.gz: 1ee3feb5166347679ba7107067598c719cf15663fa6a872c07fe6a53742bb727
4
+ data.tar.gz: 9ccfc67edaa513985ce97b6f81e94733bb4f7b637403b1c713cc273255c973f5
5
5
  SHA512:
6
- metadata.gz: b04b95f16e439987d441508da786bbe556652ea65a368d0a84428885f0b3fd4889cdfebb42ee97687f054c9f8d24ff0a2f1f48595054a0a19411201faa4a814a
7
- data.tar.gz: 87ef8faaabd5bd8b8196bc76d0a6eb8c2857c4a60d9795d244652ed619c3e00c5eca45ec507da3bf9e4c1ae5ffbe494e748d1495d225dd8e1cc0b05d55799a83
6
+ metadata.gz: 3584d15b675099e548d8c1943523db7705afcd0aaf4261dd6af957c98fe0bff876eaa26ed99a41bb62749c05200da07e34d7a5ecd3db1e5f0950b81f9d263894
7
+ data.tar.gz: 902a9ac523608de39170beab7004f1335e5100dabac8e7cb9f46bac0bee5682647a78988ea4ed2719e273bf908c85f92adb563cb5ed6993cd89254f6102f4dd0
checksums.yaml.gz.sig CHANGED
Binary file
@@ -5,6 +5,8 @@
5
5
  require 'drb'
6
6
  require 'zip'
7
7
  require 'c32'
8
+ # Commented out to avoid bug with RXFHelper constants
9
+ #require 'dir-to-xml'
8
10
 
9
11
 
10
12
  class DRbFileClient
@@ -253,6 +255,53 @@ class DRbFileClient
253
255
 
254
256
  end
255
257
 
258
+ def rm_r(path, force: false)
259
+
260
+ unless @directory or path =~ /^dfs:\/\// then
261
+ return FileUtils.rm_r(path, force: force)
262
+ end
263
+
264
+ if path =~ /^dfs:\/\// then
265
+ @file, path2 = parse_path( path)
266
+ else
267
+ path2 = File.join(@directory, path)
268
+ end
269
+
270
+ @file.rm_r(path2, force: force)
271
+
272
+ end
273
+
274
+ def ru(path)
275
+
276
+ return DirToXML.new(path, verbose: false).latest unless @directory \
277
+ or path =~ /^dfs:\/\//
278
+
279
+ if path =~ /^dfs:\/\// then
280
+ @file, path2 = parse_path( path)
281
+ else
282
+ path2 = File.join(@directory, path)
283
+ end
284
+
285
+ @file.ru path2
286
+
287
+ end
288
+
289
+ def ru_r(path)
290
+
291
+ unless @directory or path =~ /^dfs:\/\// then
292
+ return DirToXML.new(path, recursive: true, verbose: false).latest
293
+ end
294
+
295
+ if path =~ /^dfs:\/\// then
296
+ @file, path2 = parse_path( path)
297
+ else
298
+ path2 = File.join(@directory, path)
299
+ end
300
+
301
+ @file.ru_r path2
302
+
303
+ end
304
+
256
305
  def touch(s, mtime: Time.now)
257
306
 
258
307
  unless @directory or s =~ /^dfs:\/\// then
@@ -343,6 +392,13 @@ class DfsFile
343
392
  def self.read(filename) @client.read(filename) end
344
393
  def self.rm(filename) @client.rm(filename) end
345
394
 
395
+ def self.rm_r(filename, force: false)
396
+ @client.rm_r(filename, force: force)
397
+ end
398
+
399
+ def self.ru(path) @client.ru(path) end
400
+ def self.ru_r(path) @client.ru_r(path) end
401
+
346
402
  def self.touch(filename, mtime: Time.now)
347
403
  @client.touch(filename, mtime: mtime)
348
404
  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.7.2
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-11 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��Է‰~iF ,��q3��n_ ���v0�O��%�D9�`�P{���장,�~\S �13/MKj���Q�/C>iR�zZȤ ܄��Q�w���&@�`\�N��-n#��Y�ɡʼn��;�y��_��^uڛ}DTpڞ�Ņ����Ů&I�1֥@2gmq�-u�����K�n�Z���r&��ѻ�)6�E�L�n��\�a�_�:as���ld�K�� ����`���jw���gF2.���N:�룧��)��8�Xc(���v!C|$��ܩ \�Ӗ�|�k�������HM�? ������F �+
1
+ l. 1�l>s�홖|2N_W��Aj ��6��3jM"�U��R*9sòL
2
+ 2�ۿ�� sTw�1?�\�`���()�f�̏��I��@ Ci��'�kȽ�Ŕ�BQ�Y��Ǣ�=�����(_�#�7M�6��C��O�]0�=�i@X�������T 돶R�`�N9C�X��q��E��������v�4��o��(�a�T��N�WQT����s3���._Ur��Z L`�z�&�f�i8{W�{���*�R�� �l��i��
3
+ #[�!(KU!�{n���o[I�o�[-r6D��w��.b ���eߌ{|��;czc�i��q\/-5�i��V����BK.�9����?JA��tZk�o{��ˠD������w��