drb_fileclient-readwrite 0.1.6 → 0.1.8
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/lib/drb_fileclient-readwrite.rb +23 -23
- data.tar.gz.sig +3 -1
- metadata +5 -5
- 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: 11f863ffc1e5882397908738f13dcf6b4bbe6f14ef16480393412c40c35f2249
|
4
|
+
data.tar.gz: 5360addc8ee8e86209eaa8fb5afe091b43d8aea9c144c09a93353b64999add3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5be78797ca064ded5e1b359ac679d01d8036fdcc308b7c1af03d12d74fdc28560a68da3a64997d0aca1e832ecf0ff4e8f7fa3b11d35f3e55cd2653b358c1df0d
|
7
|
+
data.tar.gz: ac703e2321fe21d8969e6c9e4d940f87778147254a482f46be64ee0d0fe7fef65b4a7cf9e7a163a5ce6fe8238d5ef0379815a50b50ae0a9e33534cf1fe35dfb7
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -26,7 +26,7 @@ class DRbFileClientReadWrite < DRbFileClientReader
|
|
26
26
|
directory = File.join(@@directory, raw_path)
|
27
27
|
end
|
28
28
|
|
29
|
-
if @@file.
|
29
|
+
if @@file.exist? directory then
|
30
30
|
@@directory = directory
|
31
31
|
else
|
32
32
|
'No such file or directory'
|
@@ -60,13 +60,13 @@ class DRbFileClientReadWrite < DRbFileClientReader
|
|
60
60
|
@@file.glob s2
|
61
61
|
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
def mkdir(raw_path)
|
65
|
-
|
65
|
+
|
66
66
|
unless @@directory or raw_path =~ /^dfs:\/\// then
|
67
67
|
return FileUtils.mkdir raw_path
|
68
68
|
end
|
69
|
-
|
69
|
+
|
70
70
|
if raw_path =~ /^dfs:\/\// then
|
71
71
|
@@file, filepath = parse_path(raw_path)
|
72
72
|
else
|
@@ -82,13 +82,13 @@ class DRbFileClientReadWrite < DRbFileClientReader
|
|
82
82
|
|
83
83
|
@@file.mkdir filepath
|
84
84
|
end
|
85
|
-
|
85
|
+
|
86
86
|
def mkdir_p(raw_path)
|
87
|
-
|
87
|
+
|
88
88
|
unless @@directory or raw_path =~ /^dfs:\/\// then
|
89
|
-
return FileUtils.mkdir_p raw_path
|
90
|
-
end
|
91
|
-
|
89
|
+
return FileUtils.mkdir_p raw_path
|
90
|
+
end
|
91
|
+
|
92
92
|
if raw_path =~ /^dfs:\/\// then
|
93
93
|
@@file, filepath = parse_path(raw_path)
|
94
94
|
else
|
@@ -101,7 +101,7 @@ class DRbFileClientReadWrite < DRbFileClientReader
|
|
101
101
|
end
|
102
102
|
|
103
103
|
end
|
104
|
-
|
104
|
+
|
105
105
|
puts 'drb_fileclient-readwrite inside mkdir_p: ' + filepath.inspect
|
106
106
|
@@file.mkdir_p filepath
|
107
107
|
end
|
@@ -117,20 +117,20 @@ class DRbFileClientReadWrite < DRbFileClientReader
|
|
117
117
|
'/' + @@directory if @@file
|
118
118
|
|
119
119
|
end
|
120
|
-
|
120
|
+
|
121
121
|
def rm(path)
|
122
|
-
|
122
|
+
|
123
123
|
return FileUtils.rm path unless @@directory or path =~ /^dfs:\/\//
|
124
|
-
|
124
|
+
|
125
125
|
if path =~ /^dfs:\/\// then
|
126
126
|
@@file, path2 = parse_path( path)
|
127
127
|
else
|
128
128
|
path2 = File.join(@@directory, path)
|
129
129
|
end
|
130
|
-
|
130
|
+
|
131
131
|
@@file.rm path2
|
132
|
-
|
133
|
-
end
|
132
|
+
|
133
|
+
end
|
134
134
|
|
135
135
|
def rm_r(path, force: false)
|
136
136
|
|
@@ -163,22 +163,22 @@ class DRbFileClientReadWrite < DRbFileClientReader
|
|
163
163
|
@@file.touch s2, mtime: mtime
|
164
164
|
|
165
165
|
end
|
166
|
-
|
166
|
+
|
167
167
|
def write(filename=@@filename, s)
|
168
|
-
|
168
|
+
|
169
169
|
return File.write filename, s unless @@directory or filename =~ /^dfs:\/\//
|
170
|
-
|
170
|
+
|
171
171
|
if filename =~ /^dfs:\/\// then
|
172
172
|
@@file, path = parse_path(filename)
|
173
173
|
else
|
174
174
|
path = File.join(@@directory, filename)
|
175
175
|
end
|
176
|
-
|
176
|
+
|
177
177
|
@@file.write path, s
|
178
|
-
|
178
|
+
|
179
179
|
end
|
180
180
|
|
181
|
-
end
|
181
|
+
end
|
182
182
|
|
183
183
|
def DfsFile.chdir(path)
|
184
184
|
DRbFileClientReadWrite.new.chdir(path)
|
@@ -187,7 +187,7 @@ end
|
|
187
187
|
def DfsFile.directory?(filename)
|
188
188
|
DRbFileClientReadWrite.new.directory?(filename)
|
189
189
|
end
|
190
|
-
|
190
|
+
|
191
191
|
def DfsFile.glob(s)
|
192
192
|
DRbFileClientReadWrite.new.glob(s)
|
193
193
|
end
|
data.tar.gz.sig
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
|
1
|
+
�ܛB�f��_��V4�}�a��R�a)��Q�s9�S�D�ٍ�j��\$h�����S?��ޛ�� ۖ-��̚��Jow�D��Q^7�je���ݏE|������3*�|�=�'v����n��\�]��W���n�TK�0�l��Q0��Oo�0
|
2
|
+
��O eyI��k~)y��$�&�gl����E��f�]�8��U�?��n��5i�:�!��c7.A�-���F9�=Bá�!W�Z��۠�2�n���4r-0���
|
3
|
+
������
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drb_fileclient-readwrite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
ILzVBTpjvSiaWCjFvxvVJFct97WGSbaR2jPvZ03xyAONtWdKkv2yceiyfAMaldSQ
|
36
36
|
eftJvciSPh0DHzyI46OGIkLX
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2023-01-25 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: drb_fileclient-reader
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
version: '0.1'
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.1.
|
49
|
+
version: 0.1.6
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
version: '0.1'
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.1.
|
59
|
+
version: 0.1.6
|
60
60
|
description:
|
61
61
|
email: digital.robertson@gmail.com
|
62
62
|
executables: []
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
86
|
+
rubygems_version: 3.4.4
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: A DRb file reader and writer client to access the DRb_fileserver service.
|
metadata.gz.sig
CHANGED
Binary file
|