drb_fileclient 0.6.0 → 0.6.1
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.rb +13 -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: e1f0a270e1365dcd6dd42f986f4527ef05f0ecd34ade395acd12355cb8078362
|
4
|
+
data.tar.gz: b35293345434cc1a18e9ad92d782b8ef18e199ebe6578ea6752010783c349d9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c45a27577fa8a15a8224f1b21d349bfe26c70dd79a6fd824aebd22e591a762e3a721a0eda4e9301dced3a93fb039a3b8798aa8ea7883e0ce2dcc808c2ff4501
|
7
|
+
data.tar.gz: 9321992f907fcdceb1022fdb8cfd8b2783b7770cdcf0329d8f5d76da437283043bbf8e7c95e60c45d348d65657fa83a88ed52c36e821276337a60fa5c1760722
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/drb_fileclient.rb
CHANGED
@@ -146,6 +146,18 @@ class DRbFileClient
|
|
146
146
|
|
147
147
|
alias exist? exists?
|
148
148
|
|
149
|
+
def glob(s)
|
150
|
+
|
151
|
+
if s =~ /^dfs:\/\// then
|
152
|
+
@file, s2 = parse_path(s)
|
153
|
+
else
|
154
|
+
s2 = File.join(@directory, s)
|
155
|
+
end
|
156
|
+
|
157
|
+
@file.glob s2
|
158
|
+
|
159
|
+
end
|
160
|
+
|
149
161
|
def ls(raw_path)
|
150
162
|
|
151
163
|
return Dir[raw_path] unless @directory or raw_path =~ /^dfs:\/\//
|
@@ -306,6 +318,7 @@ class DfsFile
|
|
306
318
|
def self.chdir(path) @client.chdir(path) end
|
307
319
|
def self.chmod(num, filename) @client.chmod(num, filename) end
|
308
320
|
def self.cp(path, path2) @client.cp(path, path2) end
|
321
|
+
def self.glob(s) @client.glob(s) end
|
309
322
|
def self.ls(path) @client.ls(path) end
|
310
323
|
def self.mkdir(name) @client.mkdir(name) end
|
311
324
|
def self.mkdir_p(path) @client.mkdir_p(path) 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
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
FGcgjmmz5fOIqq2sBxk6JW1yo2G43yIUzymWOYKT2Jh6RR0Gg3z66wWwYpFpx8yR
|
36
36
|
00JTBNVAgW+s2sLpeBtyMDbb
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-01-
|
38
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: zip
|
metadata.gz.sig
CHANGED
Binary file
|