drb_fileclient-readwrite 0.1.2 → 0.1.3
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/drb_fileclient-readwrite.rb +19 -0
- 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: b75b32f3dacb08f9e07f4e372e8fdefdd593f5091c79a9eea168d92d75e859d4
|
|
4
|
+
data.tar.gz: fa8f294001ea716daeacac43a9c27ecbd66b30ad9bbb4ecd53968c9eeb8eaebd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b935abfca5cb54d65bc2fecf8fc4545b6e1c185276d44c9fe517d798b675cd34494aac872098d79710c6489cacd65eab186ef60f84506e1c470961b780694a60
|
|
7
|
+
data.tar.gz: 21edf6b3edc0a65fb5aee6252a3de64097bfa7d34265b3ceae181ceb0b2255f1e4dacaea425e307503d4906a501263299533298236299fb3377b13115dc2afac
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -28,6 +28,21 @@ class DRbFileClientReadWrite < DRbFileClientReader
|
|
|
28
28
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
def directory?(filename=@filename)
|
|
32
|
+
|
|
33
|
+
return File.directory? filename unless @directory or filename =~ /^dfs:\/\//
|
|
34
|
+
|
|
35
|
+
if filename =~ /^dfs:\/\// then
|
|
36
|
+
@file, filename2 = parse_path(filename)
|
|
37
|
+
else
|
|
38
|
+
|
|
39
|
+
filename2 = File.join(@directory, filename)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
@file.directory?(filename2)
|
|
43
|
+
|
|
44
|
+
end
|
|
45
|
+
|
|
31
46
|
def glob(s)
|
|
32
47
|
|
|
33
48
|
if s =~ /^dfs:\/\// then
|
|
@@ -129,6 +144,10 @@ def DfsFile.chdir(path)
|
|
|
129
144
|
DRbFileClientReadWrite.new.chdir(path)
|
|
130
145
|
end
|
|
131
146
|
|
|
147
|
+
def DfsFile.directory?(filename)
|
|
148
|
+
DRbFileClient.new.directory?(filename)
|
|
149
|
+
end
|
|
150
|
+
|
|
132
151
|
def DfsFile.glob(s)
|
|
133
152
|
DRbFileClientReadWrite.new.glob(s)
|
|
134
153
|
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-readwrite
|
|
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
|
ILzVBTpjvSiaWCjFvxvVJFct97WGSbaR2jPvZ03xyAONtWdKkv2yceiyfAMaldSQ
|
|
36
36
|
eftJvciSPh0DHzyI46OGIkLX
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2022-02-
|
|
38
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: drb_fileclient-reader
|
metadata.gz.sig
CHANGED
|
Binary file
|