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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ec57e89e0d0588cc4ab855a9fb3047a950e57b53497b585e658593668660146
4
- data.tar.gz: e26f60db52598b80752b173d08d1113bd1ffdfd155b6d5a9bdb3bbf835346b76
3
+ metadata.gz: e1f0a270e1365dcd6dd42f986f4527ef05f0ecd34ade395acd12355cb8078362
4
+ data.tar.gz: b35293345434cc1a18e9ad92d782b8ef18e199ebe6578ea6752010783c349d9a
5
5
  SHA512:
6
- metadata.gz: d2ceaa76749231d9a4b2c5670ba91d70db4c395c52f41d0871a51bc6430a2259dd426496fc0bca426154937174cfe088179ffbcd18500590936b556f25d2a73b
7
- data.tar.gz: 6d6f2121e40ac1a2c536421745d1f038b7cd03e2ab9a83cd0489b2d7e7ebbe59469160705a4bdb5800c6454e7690233c731a1b5b1786f0beea1008e21cc3579f
6
+ metadata.gz: 6c45a27577fa8a15a8224f1b21d349bfe26c70dd79a6fd824aebd22e591a762e3a721a0eda4e9301dced3a93fb039a3b8798aa8ea7883e0ce2dcc808c2ff4501
7
+ data.tar.gz: 9321992f907fcdceb1022fdb8cfd8b2783b7770cdcf0329d8f5d76da437283043bbf8e7c95e60c45d348d65657fa83a88ed52c36e821276337a60fa5c1760722
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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.0
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-17 00:00:00.000000000 Z
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