drb_fileclient 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1f0a270e1365dcd6dd42f986f4527ef05f0ecd34ade395acd12355cb8078362
4
- data.tar.gz: b35293345434cc1a18e9ad92d782b8ef18e199ebe6578ea6752010783c349d9a
3
+ metadata.gz: 999b420d751011626f3ed98cdca573242b85e1935f7dd6e79e2d359ed288d180
4
+ data.tar.gz: 261480c5b9e8b66685fbbfa308dc429120abdb3421c028c822f0e9ec9e732368
5
5
  SHA512:
6
- metadata.gz: 6c45a27577fa8a15a8224f1b21d349bfe26c70dd79a6fd824aebd22e591a762e3a721a0eda4e9301dced3a93fb039a3b8798aa8ea7883e0ce2dcc808c2ff4501
7
- data.tar.gz: 9321992f907fcdceb1022fdb8cfd8b2783b7770cdcf0329d8f5d76da437283043bbf8e7c95e60c45d348d65657fa83a88ed52c36e821276337a60fa5c1760722
6
+ metadata.gz: b04b95f16e439987d441508da786bbe556652ea65a368d0a84428885f0b3fd4889cdfebb42ee97687f054c9f8d24ff0a2f1f48595054a0a19411201faa4a814a
7
+ data.tar.gz: 87ef8faaabd5bd8b8196bc76d0a6eb8c2857c4a60d9795d244652ed619c3e00c5eca45ec507da3bf9e4c1ae5ffbe494e748d1495d225dd8e1cc0b05d55799a83
checksums.yaml.gz.sig CHANGED
Binary file
@@ -253,6 +253,22 @@ class DRbFileClient
253
253
 
254
254
  end
255
255
 
256
+ def touch(s, mtime: Time.now)
257
+
258
+ unless @directory or s =~ /^dfs:\/\// then
259
+ return FileUtils.touch(s, mtime: mtime)
260
+ end
261
+
262
+ if s =~ /^dfs:\/\// then
263
+ @file, s2 = parse_path(s)
264
+ else
265
+ s2 = File.join(@directory, s)
266
+ end
267
+
268
+ @file.touch s2, mtime: mtime
269
+
270
+ end
271
+
256
272
  def write(filename=@filename, s)
257
273
 
258
274
  return File.write filename, s unless @directory or filename =~ /^dfs:\/\//
@@ -326,6 +342,11 @@ class DfsFile
326
342
  def self.pwd() @client.pwd() end
327
343
  def self.read(filename) @client.read(filename) end
328
344
  def self.rm(filename) @client.rm(filename) end
345
+
346
+ def self.touch(filename, mtime: Time.now)
347
+ @client.touch(filename, mtime: mtime)
348
+ end
349
+
329
350
  def self.write(filename, s) @client.write(filename, s) end
330
351
  def self.zip(filename, a) @client.zip(filename, a) end
331
352
 
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.1
4
+ version: 0.6.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-01-18 00:00:00.000000000 Z
38
+ date: 2022-02-08 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: zip
metadata.gz.sig CHANGED
Binary file