drb_fileclient-reader 0.1.4 → 0.1.6
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 +11 -6
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 232fa62b301e0f22c918663addced5795431aa0403f2654d2e329c5cdab11d4f
|
4
|
+
data.tar.gz: 675fb32bc5cfe244242a63a9134382fb03ffcb7ea0e0de56aeb8397eeebfd3fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b98c0342db87fe17849b8d3010df85133b22d7bbc71c87c3d7793f03f682c988287715f8336c8d167233ca4a59d30a08c0f32b7a1959bdd9608b2ee0324f533
|
7
|
+
data.tar.gz: 68977c60b8a1ff865a4a16fdef7358cee5e18dd217952452069f123eaeefd58b405f5c6bcfc546a41719ecf78794f1f396956691d9b7096a38510837cd2680d8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -27,18 +27,21 @@ class DRbFileClientReader
|
|
27
27
|
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
30
|
+
def exist?(filename=@@filename)
|
31
31
|
|
32
|
-
return File.
|
32
|
+
return File.exist? filename unless @@directory or filename =~ /^dfs:\/\//
|
33
33
|
|
34
34
|
if filename =~ /^dfs:\/\// then
|
35
|
-
|
35
|
+
|
36
|
+
file, filename2 = parse_path(filename)
|
37
|
+
@@file ||= file
|
38
|
+
|
36
39
|
else
|
37
40
|
|
38
41
|
filename2 = File.join(@@directory, filename)
|
39
42
|
end
|
40
43
|
|
41
|
-
@@file.
|
44
|
+
@@file.exist?(filename2)
|
42
45
|
|
43
46
|
end
|
44
47
|
|
@@ -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
|
-
|
55
|
+
file, path = parse_path(filename)
|
56
|
+
@@file ||= file
|
53
57
|
else
|
54
58
|
path = File.join(@@directory, filename)
|
55
59
|
end
|
@@ -77,7 +81,8 @@ class DfsFile
|
|
77
81
|
|
78
82
|
@client = DRbFileClientReader.new
|
79
83
|
|
80
|
-
def self.
|
84
|
+
def self.exist?(filename) @client.exist?(filename) end
|
85
|
+
def self.exists?(filename) @client.exist?(filename) end
|
81
86
|
def self.read(filename) @client.read(filename) end
|
82
87
|
|
83
88
|
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
|
+
version: 0.1.6
|
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:
|
38
|
+
date: 2023-01-16 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: c32
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
86
|
+
rubygems_version: 3.4.1
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: A DRb file reader client to access the DRb_fileserver service.
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
�
|
1
|
+
X��M+�
|
2
|
+
���/H"��p8��52�M�?�PW!�7�b����5���X��:z�L3��0�N
|
3
|
+
�Sa�� ��� cL��]\���z:ßPmZ�-��$^�]%��Cp��B;~ρ�r#.y��äLlo���+�~v��O�8���M��J������b�pqal��*�t���y=4��^����嫷�����%'u���Ēb�݅��P;4A�����)Zf��k�����?�����O�����ԝ��'�f=��j��/Q��'��?y8���T�߽rT�)��Z��k_��-���օ����=�-N�S�/V�{����8��sH��M���ҳ�|��ڞ�jîO�Z�0���Ѹ}�WYp�Nj�Z���NA6��m
|