drb_fileclient-reader 0.1.4 → 0.1.5

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: 150c2c52f8ee2df3b92f2a228f5868f59badf14bb9c572cb61c54ea638ce3ea9
4
- data.tar.gz: e18f9847a150ce4cfed1990ca572dfd33398c69e24e4868127d0064f3115eda4
3
+ metadata.gz: de6a3b50827e3fe464e1b2ad65754ca33b8300a7dca175f8c766fe9e27862161
4
+ data.tar.gz: b2b685201d4151fb198af7cb8232dfc616fd992f48eebaeee9c6cd350111bf3a
5
5
  SHA512:
6
- metadata.gz: 28337b3466a7e1294af6f0e621ec360705f930f0c30f2f031a46da581399f09b74c60c13db166016ca93a9831bc73da9d39c80e88f985d7171cdaf6a5e8e1976
7
- data.tar.gz: 14b3dde76774b4c4f28a869bb7e7c03a04362a4c54b90f41e6c17ad6d992acb4a0d447522ba99cba2f644596e31b8125016201ffd93d1ba644e1f394771fb4b1
6
+ metadata.gz: 0370e96c8d9a9f7209150e2ecb734f071cab935a4c17904f22d8627e4d21571a00ae41613989ed959415421ffcea3f2af19e1d66544a8f023a9b2647be0107a5
7
+ data.tar.gz: 4f75275a2856d1589249a1d7fadd8ea41746a2eb49f25938cd23210d97a3f11ef67be4cff98679aa58f7ce5effa1c6e4f51fe6ba48d3a8364487ec273c56eb05
checksums.yaml.gz.sig CHANGED
Binary file
@@ -32,7 +32,10 @@ class DRbFileClientReader
32
32
  return File.exists? filename unless @@directory or filename =~ /^dfs:\/\//
33
33
 
34
34
  if filename =~ /^dfs:\/\// then
35
- @@file, filename2 = parse_path(filename)
35
+
36
+ file, filename2 = parse_path(filename)
37
+ @@file ||= file
38
+
36
39
  else
37
40
 
38
41
  filename2 = File.join(@@directory, filename)
@@ -49,7 +52,8 @@ class DRbFileClientReader
49
52
  return File.read(filename) unless @@directory or filename =~ /^dfs:\/\//
50
53
 
51
54
  if filename =~ /^dfs:\/\// then
52
- @@file, path = parse_path(filename)
55
+ file, path = parse_path(filename)
56
+ @@file ||= file
53
57
  else
54
58
  path = File.join(@@directory, filename)
55
59
  end
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
4
+ version: 0.1.5
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-08-17 00:00:00.000000000 Z
38
+ date: 2022-08-18 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: c32
metadata.gz.sig CHANGED
Binary file