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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aac4c5bf2603750af085ade9036fd20874b0cca8cbfbbb36e51a774c5943cc3f
4
- data.tar.gz: fb4483969bc3717fa84838f2a636de99c8b97f8e0e56b3736190b7f9a4ec5250
3
+ metadata.gz: e967a4be41c2fd5821d23509e01b95c6c8935f0dfe437b62c92df188918a9956
4
+ data.tar.gz: 1186aa62d814caa569305fd3246eef0f4622f562b3794ed13c7a2bd3f050e403
5
5
  SHA512:
6
- metadata.gz: f697ca6f319dda244a197c48911f91697b17c7deaf920d54ec03bcbc04ff31ad1236f3e547370d16635baa2ef70eabbce2c10b3767828316bd44a3a4cc1cbad8
7
- data.tar.gz: 0ae4f1f63619bf461d5e39fa602194f2cbe24c81d742a01ae9c8d91dd17ee8b376fc13a0ec3929b2eb43fc2eb74af63028e72ca39a4021fc24d3a0f85b61c35a
6
+ metadata.gz: 782f8b6e8f0634ccf3803e90f2106c030232b59815a0c10a1d04795e6ae2394e1f871750ca6efa327b999e62eb65969d130e8e0b5259f277e8b3fa9182304657
7
+ data.tar.gz: adeaae21e4b29bf2c2a51c7d18c72c935a263e47c419e2c104a94336a7de98d3daa1bac6efe06572544aa243dd3efd97445b1556c52c2475ad414a57a09a7118
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
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-08-23 00:00:00.000000000 Z
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