drb_fileclient 0.4.4 → 0.4.5
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.tar.gz.sig +0 -0
- data/lib/drb_fileclient.rb +9 -3
- 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: e967a4be41c2fd5821d23509e01b95c6c8935f0dfe437b62c92df188918a9956
|
4
|
+
data.tar.gz: 1186aa62d814caa569305fd3246eef0f4622f562b3794ed13c7a2bd3f050e403
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 782f8b6e8f0634ccf3803e90f2106c030232b59815a0c10a1d04795e6ae2394e1f871750ca6efa327b999e62eb65969d130e8e0b5259f277e8b3fa9182304657
|
7
|
+
data.tar.gz: adeaae21e4b29bf2c2a51c7d18c72c935a263e47c419e2c104a94336a7de98d3daa1bac6efe06572544aa243dd3efd97445b1556c52c2475ad414a57a09a7118
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/drb_fileclient.rb
CHANGED
@@ -139,11 +139,15 @@ class DRbFileClient
|
|
139
139
|
|
140
140
|
if raw_path =~ /^dfs:\/\// then
|
141
141
|
_, path = parse_path(raw_path)
|
142
|
-
@file, path2 = parse_path(raw_path2)
|
143
142
|
else
|
144
143
|
path = File.join(@directory, raw_path)
|
144
|
+
end
|
145
|
+
|
146
|
+
if raw_path2 =~ /^dfs:\/\// then
|
147
|
+
_, path2 = parse_path(raw_path2)
|
148
|
+
else
|
145
149
|
path2 = File.join(@directory, raw_path2)
|
146
|
-
end
|
150
|
+
end
|
147
151
|
|
148
152
|
@file.mv path, path2
|
149
153
|
end
|
@@ -228,9 +232,11 @@ class DRbFileClient
|
|
228
232
|
def parse_path(filename)
|
229
233
|
|
230
234
|
host = filename[/(?<=^dfs:\/\/)[^\/:]+/]
|
235
|
+
@host = host if host
|
236
|
+
|
231
237
|
port = filename[/(?<=^dfs:\/\/)[^:]+:(\d+)/,1] || '61010'
|
232
238
|
|
233
|
-
file_server = DRbObject.new nil, "druby://#{host}:#{port}"
|
239
|
+
file_server = DRbObject.new nil, "druby://#{host || @host}:#{port}"
|
234
240
|
[file_server, filename[/(?<=^dfs:\/\/)[^\/]+\/(.*)/,1]]
|
235
241
|
|
236
242
|
end
|
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.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
2aIZ9lf6/AT4LP07t9jB5oYLHlr2nBLIqtPXdJvg5RKKr79CQVmpJ5LCTjwTg9h+
|
31
31
|
g1Q=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-
|
33
|
+
date: 2018-09-07 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: zip
|
metadata.gz.sig
CHANGED
Binary file
|