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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/drb_fileclient.rb +21 -0
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 999b420d751011626f3ed98cdca573242b85e1935f7dd6e79e2d359ed288d180
|
4
|
+
data.tar.gz: 261480c5b9e8b66685fbbfa308dc429120abdb3421c028c822f0e9ec9e732368
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b04b95f16e439987d441508da786bbe556652ea65a368d0a84428885f0b3fd4889cdfebb42ee97687f054c9f8d24ff0a2f1f48595054a0a19411201faa4a814a
|
7
|
+
data.tar.gz: 87ef8faaabd5bd8b8196bc76d0a6eb8c2857c4a60d9795d244652ed619c3e00c5eca45ec507da3bf9e4c1ae5ffbe494e748d1495d225dd8e1cc0b05d55799a83
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/drb_fileclient.rb
CHANGED
@@ -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.
|
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-
|
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
|