rxfileio 0.2.2 → 0.2.3
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/rxfileio.rb +4 -4
- 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: '08d1e85a91de04e491f6ddc55f9b7a761c56528f8a05aa2629713067c8bb6dcf'
|
4
|
+
data.tar.gz: c06843254fd4e53b5d948e0f5f7c36d30c2b37f099790a775485bee5a0d8286c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc554443fed2e90df5b85617eb7680bf8896d7e4600e800ad4730ac1a2e1aa737452c143f93d384ada94dc4be94a363eeb5c697c8f68bf23ed23469f149e0eed
|
7
|
+
data.tar.gz: 1790ea0632b76cf409f8159d8c0ed8a0f2232959dc8579a34c41584c00dd878bd3747e9500549f306a5b7ca3bca886639ae4a21c1b221d306eca3cda35819338
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rxfileio.rb
CHANGED
@@ -11,7 +11,7 @@ require 'mymedia_ftp'
|
|
11
11
|
module RXFileIOModule
|
12
12
|
include RXFReadWriteModule
|
13
13
|
|
14
|
-
def FileX.exist?(filename)
|
14
|
+
def FileX.exist?(filename) exist?(filename) end
|
15
15
|
def FileX.chmod(num, s) RXFileIO.chmod(num, s) end
|
16
16
|
def FileX.cp(s, s2) RXFileIO.cp(s, s2) end
|
17
17
|
def FileX.ls(s) RXFileIO.ls(s) end
|
@@ -86,7 +86,7 @@ class RXFileIO < RXFReadWrite
|
|
86
86
|
|
87
87
|
def self.ls(x='*')
|
88
88
|
|
89
|
-
return Dir[x] if File.
|
89
|
+
return Dir[x] if File.exist?(File.dirname(x))
|
90
90
|
|
91
91
|
case x[/^\w+(?=:\/\/)/]
|
92
92
|
when 'file'
|
@@ -164,7 +164,7 @@ class RXFileIO < RXFReadWrite
|
|
164
164
|
|
165
165
|
[MyMediaFTP.read(x), :ftp]
|
166
166
|
|
167
|
-
elsif x[/^file:\/\//] or File.
|
167
|
+
elsif x[/^file:\/\//] or File.exist?(x) then
|
168
168
|
|
169
169
|
contents = File.read(File.expand_path(x.sub(%r{^file://}, '')))
|
170
170
|
|
@@ -324,7 +324,7 @@ class RXFileIO < RXFReadWrite
|
|
324
324
|
|
325
325
|
if not source =~ /:\/\// then
|
326
326
|
|
327
|
-
return true if File.
|
327
|
+
return true if File.exist? source
|
328
328
|
|
329
329
|
else
|
330
330
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rxfileio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
yLO5YIYbN1F1F4bnaaoKLedXnnC+5VCarLA4HblYDwqrZ78CQIBelACSnxeY9gD3
|
36
36
|
oyr0nnshzqXtH7vQD0nI5kqL
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rxfreadwrite
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
rubygems_version: 3.
|
126
|
+
rubygems_version: 3.4.4
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Features remote file operations using the DFS protocol and more.
|
metadata.gz.sig
CHANGED
Binary file
|