drb_fileclient 0.4.5 → 0.4.6

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: e967a4be41c2fd5821d23509e01b95c6c8935f0dfe437b62c92df188918a9956
4
- data.tar.gz: 1186aa62d814caa569305fd3246eef0f4622f562b3794ed13c7a2bd3f050e403
3
+ metadata.gz: 4dd24921abefc7ad1f0f6f252f33bf8a342a718d00fb8850a8068869007c7a5c
4
+ data.tar.gz: 6ed79b375fa269fc33b28a26ffeafe1223b9f0c18aeac071397116c7d3f1fb81
5
5
  SHA512:
6
- metadata.gz: 782f8b6e8f0634ccf3803e90f2106c030232b59815a0c10a1d04795e6ae2394e1f871750ca6efa327b999e62eb65969d130e8e0b5259f277e8b3fa9182304657
7
- data.tar.gz: adeaae21e4b29bf2c2a51c7d18c72c935a263e47c419e2c104a94336a7de98d3daa1bac6efe06572544aa243dd3efd97445b1556c52c2475ad414a57a09a7118
6
+ metadata.gz: 975d6904d5dad3172dd48c9a752da8b24bba28fa4b49db0c536e10beb15d5ae62f72e55da26441f4e9fe70adc3540b79fb4f3d7706f3742c3bf3c6ac37ac4ba9
7
+ data.tar.gz: e6e20757af201845c09d60d94cb07487f621045fa376b55683b673e879414c1b6acd48b2d6bd6f35fa5fab7080308d97e41f60a76d56e450660280b9596083ee
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -8,6 +8,7 @@ require 'zip'
8
8
 
9
9
  class DRbFileClient
10
10
 
11
+
11
12
  def initialize(location=nil, host: nil, port: '61010')
12
13
 
13
14
  if location then
@@ -75,6 +76,21 @@ class DRbFileClient
75
76
 
76
77
  end
77
78
 
79
+ def directory?(filename=@filename)
80
+
81
+ return File.directory? filename unless @directory or filename =~ /^dfs:\/\//
82
+
83
+ if filename =~ /^dfs:\/\// then
84
+ @file, filename2 = parse_path(filename)
85
+ else
86
+
87
+ filename2 = File.join(@directory, filename)
88
+ end
89
+
90
+ @file.directory?(filename2)
91
+
92
+ end
93
+
78
94
  def exists?(filename=@filename)
79
95
 
80
96
  return File.exists? filename unless @directory or filename =~ /^dfs:\/\//
@@ -247,17 +263,18 @@ class DfsFile
247
263
 
248
264
  @client = DRbFileClient.new
249
265
 
250
- def self.exists?(filename) @client.exists?(filename) end
251
- def self.chdir(path) @client.chdir(path) end
252
- def self.cp(path, path2) @client.cp(path, path2) end
253
- def self.ls(path) @client.ls(path) end
254
- def self.mkdir(name) @client.mkdir(name) end
255
- def self.mkdir_p(path) @client.mkdir_p(path) end
256
- def self.mv(path, path2) @client.mv(path, path2) end
257
- def self.pwd() @client.pwd() end
258
- def self.read(filename) @client.read(filename) end
259
- def self.rm(filename) @client.rm(filename) end
260
- def self.write(filename, s) @client.write(filename, s) end
261
- def self.zip(filename, a) @client.zip(filename, a) end
266
+ def self.directory?(filename) @client.directory?(filename) end
267
+ def self.exists?(filename) @client.exists?(filename) end
268
+ def self.chdir(path) @client.chdir(path) end
269
+ def self.cp(path, path2) @client.cp(path, path2) end
270
+ def self.ls(path) @client.ls(path) end
271
+ def self.mkdir(name) @client.mkdir(name) end
272
+ def self.mkdir_p(path) @client.mkdir_p(path) end
273
+ def self.mv(path, path2) @client.mv(path, path2) end
274
+ def self.pwd() @client.pwd() end
275
+ def self.read(filename) @client.read(filename) end
276
+ def self.rm(filename) @client.rm(filename) end
277
+ def self.write(filename, s) @client.write(filename, s) end
278
+ def self.zip(filename, a) @client.zip(filename, a) end
262
279
 
263
280
  end
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.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -10,27 +10,32 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0B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HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
27
+ c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
28
+ BgkqhkiG9w0BAQsFAAOCAYEAehovpYSCjyALI2nsoZgOXuhu2FLJqUQBuoJ71qhb
29
+ Taqk2GGL7H3rw+230F7JFa6+mEDhvPRtPpvFouUWCVkWt/cFjCSi6wMtPtWI1npX
30
+ Z24Rq7o4qhnGnNOgF4GUIAB9wKkuGpHpGu3Pm6sSsoY53RSdOIrUbATq7d9R+nDC
31
+ IuHsUhqWu0JHuIcJAt2nFdNhpAM1xI8xmpBB/ZAPmuBgCIGACRUj9zDwCcvQTexg
32
+ VpPvUCkhqF2HslhSBvMt0uWior6rx2NF1XjLcaNZ3D/RYODI+c8bzGuG/kiy49T1
33
+ GiV9YurS5UW2Pbpy6GnkvDWNOGwV3SuIeVzo0kcGh/O4zRzC0UHWXzfMshQZq+vj
34
+ jYmP2hJqU6kqXV8nvKfwDTVov3W49/Nx2NgvhKFga4gMlwRryZCYpWSNJ/2PnKke
35
+ Q2NfvYKLI+E2SiA6gvWccHs5PVlVg/BMshm3jnuqHGeuzxtSivRoTcRKfedcs6CL
36
+ NlXQCltmwWchk+xRD5gmICCy
32
37
  -----END CERTIFICATE-----
33
- date: 2018-09-07 00:00:00.000000000 Z
38
+ date: 2019-02-18 00:00:00.000000000 Z
34
39
  dependencies:
35
40
  - !ruby/object:Gem::Dependency
36
41
  name: zip
@@ -78,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
83
  - !ruby/object:Gem::Version
79
84
  version: '0'
80
85
  requirements: []
81
- rubyforge_project:
82
- rubygems_version: 2.7.6
86
+ rubygems_version: 3.0.1
83
87
  signing_key:
84
88
  specification_version: 4
85
89
  summary: Reads or writes files from a remote DRb server. Simple as DfsFile.read or
metadata.gz.sig CHANGED
Binary file