drb_fileclient 0.7.2 → 0.7.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/drb_fileclient.rb +8 -5
- data.tar.gz.sig +0 -0
- metadata +9 -10
- 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: d66acaefb595fe166f98c929cf925bc68481c16704e755fede8678154febd362
|
|
4
|
+
data.tar.gz: 559b0980b0351348caa2637918e397b8f6cdbe4545549ce67c2740fac56f825f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3f9bddb2678b221a0fe668d849f4baf5cc2524c0335ced4310478fee4122fdf33e8985f3fb812edebf6f144d1f69b8d2c6a0096282fb9322db4f36c8700afa0
|
|
7
|
+
data.tar.gz: a68b5f2219c1003f67e5d9829a917e761cc2f9ef300fae11e3221d3ea2ffed9226e40082f07a77f62ac9f610f3cfc0a1cbc8b5585e840a6bd63b26205a642e9b
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/drb_fileclient.rb
CHANGED
|
@@ -9,6 +9,7 @@ require 'c32'
|
|
|
9
9
|
#require 'dir-to-xml'
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
12
13
|
class DRbFileClient
|
|
13
14
|
using ColouredText
|
|
14
15
|
|
|
@@ -277,12 +278,13 @@ class DRbFileClient
|
|
|
277
278
|
or path =~ /^dfs:\/\//
|
|
278
279
|
|
|
279
280
|
if path =~ /^dfs:\/\// then
|
|
280
|
-
@file, path2 = parse_path(
|
|
281
|
+
@file, path2, addr = parse_path(path)
|
|
281
282
|
else
|
|
282
283
|
path2 = File.join(@directory, path)
|
|
283
284
|
end
|
|
284
285
|
|
|
285
|
-
@file.ru path2
|
|
286
|
+
found = @file.ru path2
|
|
287
|
+
return (addr + found) if found and addr
|
|
286
288
|
|
|
287
289
|
end
|
|
288
290
|
|
|
@@ -293,12 +295,13 @@ class DRbFileClient
|
|
|
293
295
|
end
|
|
294
296
|
|
|
295
297
|
if path =~ /^dfs:\/\// then
|
|
296
|
-
@file, path2 = parse_path(
|
|
298
|
+
@file, path2, addr = parse_path(path)
|
|
297
299
|
else
|
|
298
300
|
path2 = File.join(@directory, path)
|
|
299
301
|
end
|
|
300
302
|
|
|
301
|
-
@file.ru_r path2
|
|
303
|
+
found = @file.ru_r path2
|
|
304
|
+
return (addr + found) if found and addr
|
|
302
305
|
|
|
303
306
|
end
|
|
304
307
|
|
|
@@ -368,7 +371,7 @@ class DRbFileClient
|
|
|
368
371
|
port = filename[/(?<=^dfs:\/\/)[^:]+:(\d+)/,1] || '61010'
|
|
369
372
|
|
|
370
373
|
file_server = DRbObject.new nil, "druby://#{host || @host}:#{port}"
|
|
371
|
-
[file_server, filename[/(?<=^dfs:\/\/)[^\/]+\/(.*)/,1]]
|
|
374
|
+
[file_server, filename[/(?<=^dfs:\/\/)[^\/]+\/(.*)/,1], ("dfs://%s:%s" % [host, port])]
|
|
372
375
|
|
|
373
376
|
end
|
|
374
377
|
|
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.7.
|
|
4
|
+
version: 0.7.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-
|
|
38
|
+
date: 2022-02-15 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: zip
|
|
@@ -61,22 +61,22 @@ dependencies:
|
|
|
61
61
|
name: c32
|
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
|
63
63
|
requirements:
|
|
64
|
-
- - ">="
|
|
65
|
-
- !ruby/object:Gem::Version
|
|
66
|
-
version: 0.3.0
|
|
67
64
|
- - "~>"
|
|
68
65
|
- !ruby/object:Gem::Version
|
|
69
66
|
version: '0.3'
|
|
67
|
+
- - ">="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: 0.3.0
|
|
70
70
|
type: :runtime
|
|
71
71
|
prerelease: false
|
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
|
74
|
-
- - ">="
|
|
75
|
-
- !ruby/object:Gem::Version
|
|
76
|
-
version: 0.3.0
|
|
77
74
|
- - "~>"
|
|
78
75
|
- !ruby/object:Gem::Version
|
|
79
76
|
version: '0.3'
|
|
77
|
+
- - ">="
|
|
78
|
+
- !ruby/object:Gem::Version
|
|
79
|
+
version: 0.3.0
|
|
80
80
|
description:
|
|
81
81
|
email: digital.robertson@gmail.com
|
|
82
82
|
executables: []
|
|
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
104
|
version: '0'
|
|
105
105
|
requirements: []
|
|
106
|
-
|
|
107
|
-
rubygems_version: 2.7.10
|
|
106
|
+
rubygems_version: 3.2.22
|
|
108
107
|
signing_key:
|
|
109
108
|
specification_version: 4
|
|
110
109
|
summary: Reads or writes files from a remote DRb server. Simple as DfsFile.read or
|
metadata.gz.sig
CHANGED
|
Binary file
|