drb_fileclient-reader 0.1.2 → 0.1.3
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-reader.rb +3 -3
- 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: 9ba32fab7b6cbe1adeb3e5f8e81a200baa6c4252b5e9baf94ecd21b64137cc8a
|
4
|
+
data.tar.gz: 584af5bfc10500b5c5f84335bf563e2f2bc9b6f78bcad58388f2591068673efb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d6335a539b05b53bf5523d260bd9418e48e7836d9de702179f1bece7921e93389072a809ccaf0ce5996cd2cb4d9066d7836e7872731c3fc98ff60b4a50c2086
|
7
|
+
data.tar.gz: 4f075865e34157b5a1214fbac8e863aa968d602206b07d5e93c4aaa838039c958ed03eab42fb23852acc41e8d2017a3118d25e87a9ecf8d10c045856345ad39c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -17,9 +17,9 @@ class DRbFileClientReader
|
|
17
17
|
|
18
18
|
host = location[/(?<=^dfs:\/\/)[^\/:]+/]
|
19
19
|
port = location[/(?<=^dfs:\/\/)[^:]+:(\d+)/,1] || '61010'
|
20
|
-
@@directory
|
20
|
+
@@directory ||= location[/(?<=^dfs:\/\/)[^\/]+\/(.*)/,1]
|
21
21
|
else
|
22
|
-
@@directory
|
22
|
+
@@directory ||= nil
|
23
23
|
end
|
24
24
|
|
25
25
|
DRb.start_service
|
@@ -45,7 +45,7 @@ class DRbFileClientReader
|
|
45
45
|
|
46
46
|
def read(filename=@@filename)
|
47
47
|
|
48
|
-
return File.read
|
48
|
+
return File.read(filename) unless @@directory or filename =~ /^dfs:\/\//
|
49
49
|
|
50
50
|
if filename =~ /^dfs:\/\// then
|
51
51
|
@@file, path = parse_path(filename)
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drb_fileclient-reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
im+YlEcJfPax42Av6oEBmm6oUqxICcrKX8DdDuNFC44LAC66kmOdMTNiVdeS82BG
|
36
36
|
CGf+32hX61V/Gw6Jiazh7a6L
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-02-
|
38
|
+
date: 2022-02-24 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: c32
|
metadata.gz.sig
CHANGED
Binary file
|