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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f65052a8ec208715cd5be9a8865e0a8a2c7ef0c57b799fdb39fad3b31b053f56
4
- data.tar.gz: 0d314d66233ebc4f1c61d442aaf34c5d49e647109464326776a837b6f9281b82
3
+ metadata.gz: 9ba32fab7b6cbe1adeb3e5f8e81a200baa6c4252b5e9baf94ecd21b64137cc8a
4
+ data.tar.gz: 584af5bfc10500b5c5f84335bf563e2f2bc9b6f78bcad58388f2591068673efb
5
5
  SHA512:
6
- metadata.gz: e86c3cb71eb7002eaa79c2f8b474e69f63bbadeb54e358c76dd783d9889de6bf046a736441777d6a2b0d5fea45e36539be1a560fcabacc54a23a136e3ea90158
7
- data.tar.gz: fe612c741098e32c7e45f1f01fef494a6a70d3e3374ea089a22ee936a1c33665db9046ac1c52f3b72f94192019c141cbc1085f4a0b41772943ed55708eb92ec8
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 = location[/(?<=^dfs:\/\/)[^\/]+\/(.*)/,1]
20
+ @@directory ||= location[/(?<=^dfs:\/\/)[^\/]+\/(.*)/,1]
21
21
  else
22
- @@directory = nil
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 filename, s unless @@directory or filename =~ /^dfs:\/\//
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.2
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-23 00:00:00.000000000 Z
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