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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f072cce5e865d662597df89db26a0ad9fce1ceed1458c1c9ca8a40125d44fb6
4
- data.tar.gz: 82f22f143b6010841cd1078d2f5e926968bc6be0f6b4ccd0f97b5b8b36e83a3b
3
+ metadata.gz: 105da8f9e3330a77c1c273dc69436ae00f0f6d5542985f6c6e6d5f5406d0e869
4
+ data.tar.gz: f11935bba72bac57e3f0de3239f51daa4df6401ce3e4ac914bcc1b278e67174c
5
5
  SHA512:
6
- metadata.gz: fc7863e1530a609729b92d7df0ad2f3d4515398ba4bf0f755100b077b393c746c36303f29dfe462dedc8d585095fd26ecb4e73b8c09eeb3915879e52b4225b55
7
- data.tar.gz: c27d5699d06c1c86dc611a9537c06b64b8fc1a216f7d060c483407b7075739ad70fa32df0b05f85bdca6d4838095693119ff8b2791d62bff07a3541698f1a225
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.exists?(s) RXFReadWrite.exists?(s) end
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.exists?(File.dirname(x)) then
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.exists?(filename)
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.exists? filename
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.exists?(File.dirname(x)) then
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.exists?(File.dirname(location)) then
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.6
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: 2022-04-11 00:00:00.000000000 Z
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.2.22
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