drb_fileclient 0.4.0 → 0.4.1
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.tar.gz.sig +0 -0
- data/lib/drb_fileclient.rb +10 -3
- 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: 2907fc7d7eadafd999496b17cc58f9bc43e7951f295f5175a1ae2935d0f21d27
|
|
4
|
+
data.tar.gz: a99fcb56d7d443c316a9c73c361ff14fea5b5bd5f6c35319862ba40e0e5ae667
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce133cc67158a1d7bd22d532cf9256b99bc3e7ea026e4c5bbea42769c24cabfae65b666e79e00c169c9e6a93013a03d95cc56761050c51921aa7bf92c4cb2a0a
|
|
7
|
+
data.tar.gz: 9ff35d40c9403df53310a52e3c6ca148810e1b837a3d30233c801ffae524d542128ca4e39a03c9495687950e53c09d3f24c5d6a14058e7c898548b6dc7cd28f9
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/drb_fileclient.rb
CHANGED
|
@@ -86,10 +86,15 @@ class DRbFileClient
|
|
|
86
86
|
|
|
87
87
|
unless @directory or raw_path =~ /^dfs:\/\// then
|
|
88
88
|
return FileUtils.mkdir_p raw_path
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
filepath = if raw_path =~ /^dfs:\/\// then
|
|
92
|
+
parse_path(raw_path)
|
|
93
|
+
else
|
|
94
|
+
File.join(@directory, raw_path)
|
|
89
95
|
end
|
|
90
96
|
|
|
91
|
-
|
|
92
|
-
@file.mkdir_p path
|
|
97
|
+
@file.mkdir_p filepath
|
|
93
98
|
end
|
|
94
99
|
|
|
95
100
|
def mv(raw_path, raw_path2)
|
|
@@ -158,7 +163,9 @@ class DRbFileClient
|
|
|
158
163
|
end
|
|
159
164
|
|
|
160
165
|
def zip(filename_zip, a)
|
|
161
|
-
|
|
166
|
+
|
|
167
|
+
puts '@directory: ' + @directory.inspect if @debug
|
|
168
|
+
|
|
162
169
|
unless @directory or filename_zip =~ /^dfs:\/\// then
|
|
163
170
|
|
|
164
171
|
Zip::File.open(zipfile_zip, Zip::File::CREATE) do |x|
|
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.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
2aIZ9lf6/AT4LP07t9jB5oYLHlr2nBLIqtPXdJvg5RKKr79CQVmpJ5LCTjwTg9h+
|
|
31
31
|
g1Q=
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2018-08-
|
|
33
|
+
date: 2018-08-17 00:00:00.000000000 Z
|
|
34
34
|
dependencies: []
|
|
35
35
|
description:
|
|
36
36
|
email: james@jamesrobertson.eu
|
metadata.gz.sig
CHANGED
|
Binary file
|