rxfreadwrite 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rxfreadwrite.rb +12 -7
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: 105da8f9e3330a77c1c273dc69436ae00f0f6d5542985f6c6e6d5f5406d0e869
|
4
|
+
data.tar.gz: f11935bba72bac57e3f0de3239f51daa4df6401ce3e4ac914bcc1b278e67174c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0cd7c3ea7a12f2229843bac64b36f99c35fbf4d511b42c4b0c62fdc5e48e6459f110a49d770c20b2188fc63d9c766636aacba9f99b271a0c7282795668d247a
|
7
|
+
data.tar.gz: 453e21fb3744a626221591773696849eb800ad2613f026f5808c48d2c3e68233f01bf64c40459510ac6911fafb11909a3849b6e22eee55488e3029bf22d0b015
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rxfreadwrite.rb
CHANGED
@@ -40,7 +40,8 @@ module RXFReadWriteModule
|
|
40
40
|
|
41
41
|
end
|
42
42
|
|
43
|
-
def FileX.
|
43
|
+
def FileX.exist?(s) RXFReadWrite.exist?(s) end
|
44
|
+
def FileX.exists?(s) RXFReadWrite.exist?(s) end
|
44
45
|
def FileX.mkdir(s) RXFReadWrite.mkdir(s) end
|
45
46
|
def FileX.mkdir_p(s) RXFReadWrite.mkdir_p(s) end
|
46
47
|
def FileX.pwd() RXFReadWrite.pwd() end
|
@@ -82,7 +83,7 @@ class RXFReadWrite < RXFReader
|
|
82
83
|
# of explicitly stating the path each time. e.g. touch 'foo.txt'
|
83
84
|
#
|
84
85
|
|
85
|
-
if x[/^file:\/\//] or File.
|
86
|
+
if x[/^file:\/\//] or File.exist?(File.dirname(x)) then
|
86
87
|
|
87
88
|
@@fs = :local
|
88
89
|
FileUtils.chdir x
|
@@ -97,8 +98,8 @@ class RXFReadWrite < RXFReader
|
|
97
98
|
|
98
99
|
end
|
99
100
|
|
100
|
-
def self.
|
101
|
-
puts 'inside readwrite exists?'
|
101
|
+
def self.exist?(filename)
|
102
|
+
#puts 'inside readwrite exists?'
|
102
103
|
type = self.filetype(filename)
|
103
104
|
|
104
105
|
filex = case type
|
@@ -112,9 +113,13 @@ class RXFReadWrite < RXFReader
|
|
112
113
|
|
113
114
|
return nil unless filex
|
114
115
|
|
115
|
-
filex.
|
116
|
+
filex.exist? filename
|
116
117
|
|
117
118
|
end
|
119
|
+
|
120
|
+
def self.exists?(filename)
|
121
|
+
self.exist?(filename)
|
122
|
+
end
|
118
123
|
|
119
124
|
def self.filetype(x)
|
120
125
|
|
@@ -144,7 +149,7 @@ class RXFReadWrite < RXFReader
|
|
144
149
|
|
145
150
|
def self.mkdir(x)
|
146
151
|
|
147
|
-
if x[/^file:\/\//] or File.
|
152
|
+
if x[/^file:\/\//] or File.exist?(File.dirname(x)) then
|
148
153
|
FileUtils.mkdir x
|
149
154
|
elsif x[/^dfs:\/\//]
|
150
155
|
DfsFile.mkdir x
|
@@ -244,7 +249,7 @@ class RXFReadWrite < RXFReader
|
|
244
249
|
|
245
250
|
else
|
246
251
|
|
247
|
-
if DfsFile.
|
252
|
+
if DfsFile.exist?(File.dirname(location)) then
|
248
253
|
DfsFile.write location, s
|
249
254
|
else
|
250
255
|
File.write(location, s)
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rxfreadwrite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
gnYmJHVhKvNaFwL4ryulhkA+n8o3Ve6Kzo/AGlO2+Ge6H0bqIUbS8UisqDa7IwlY
|
36
36
|
tvleW582+lzMrpAfWdGb4VFX
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2023-01-19 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rxfreader
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
rubygems_version: 3.
|
106
|
+
rubygems_version: 3.4.4
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Read and write files from remote locations (using the DFS protocol) as well
|
metadata.gz.sig
CHANGED
Binary file
|