drb_fileclient 0.4.0 → 0.4.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: b2701a31776fa19fb41d2d7540dd932d88faf960b21c13cf27cbb545c40d376b
4
- data.tar.gz: 1b82c97e9e3475831499972753f8867316df21633002f2599af9a33f0aa0091b
3
+ metadata.gz: 2907fc7d7eadafd999496b17cc58f9bc43e7951f295f5175a1ae2935d0f21d27
4
+ data.tar.gz: a99fcb56d7d443c316a9c73c361ff14fea5b5bd5f6c35319862ba40e0e5ae667
5
5
  SHA512:
6
- metadata.gz: 375f4f0590d3937ab28446ef5968e06b5cb4cb1c36c370e37538eafbea7ed9f93326f28169151185d5fdb7c19f6f49d25f20143d5e42cb89e3267be39f1c0d7c
7
- data.tar.gz: eecec313c0369426e52b1f41a1ae68f1f580bffa333a942065e2c2ffc3664eb02f778b5569ad7d14ae0814322bc3d31b5205b03113a22011534c915d75b7a546
6
+ metadata.gz: ce133cc67158a1d7bd22d532cf9256b99bc3e7ea026e4c5bbea42769c24cabfae65b666e79e00c169c9e6a93013a03d95cc56761050c51921aa7bf92c4cb2a0a
7
+ data.tar.gz: 9ff35d40c9403df53310a52e3c6ca148810e1b837a3d30233c801ffae524d542128ca4e39a03c9495687950e53c09d3f24c5d6a14058e7c898548b6dc7cd28f9
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- path = parse_path(raw_path)
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
- puts '@directory: ' + @directory.inspect
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.0
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-14 00:00:00.000000000 Z
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