rxfhelper 1.6.2 → 1.6.4
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/rxfhelper.rb +10 -4
- data.tar.gz.sig +0 -0
- metadata +28 -27
- 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: 7ac5ca7e2c397100aff7023b09433d3673d7b83dfcd54506b6aeabba07196515
|
4
|
+
data.tar.gz: 1d5747ed72d0424a67b22c0c7002349794e4911c531c45cb1c3f83e8c8fc13a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b3ce123fabdfc8fe1bed242d873a5d31b3723fe1b86b5e749695bbdad4ecd11630b9176e7e71e8d89b300f9d594ecaf605d4f277c33e282cfeaf1195cc6696d
|
7
|
+
data.tar.gz: 99cdf654f1790675a9201633bf95cc1a3ba1543ab9493e2308be79f445b47c0e6cd8bf9974540654a1e1a68412d2f76785fa4adc77f21e26c180e020800b2914
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rxfhelper.rb
CHANGED
@@ -17,6 +17,7 @@ require 'onedrb'
|
|
17
17
|
module RXFHelperModule
|
18
18
|
include RXFileIOModule
|
19
19
|
|
20
|
+
def FileX.exist?(s) RXFHelper.exist?(s) end
|
20
21
|
def FileX.exists?(s) RXFHelper.exists?(s) end
|
21
22
|
def FileX.filetype(s) RXFHelper.filetype(s) end
|
22
23
|
def FileX.read(s) RXFHelper.read(s)[0] end
|
@@ -73,7 +74,7 @@ class RXFHelper < RXFileIO
|
|
73
74
|
|
74
75
|
end
|
75
76
|
|
76
|
-
def self.
|
77
|
+
def self.exist?(filename)
|
77
78
|
|
78
79
|
type = self.filetype(filename)
|
79
80
|
|
@@ -91,9 +92,13 @@ class RXFHelper < RXFileIO
|
|
91
92
|
|
92
93
|
return nil unless filex
|
93
94
|
|
94
|
-
filex.
|
95
|
+
filex.exist? filename
|
95
96
|
|
96
97
|
end
|
98
|
+
|
99
|
+
def self.exists?(filename)
|
100
|
+
self.exist?(filename)
|
101
|
+
end
|
97
102
|
|
98
103
|
def self.filetype(x)
|
99
104
|
|
@@ -112,7 +117,7 @@ class RXFHelper < RXFileIO
|
|
112
117
|
:file
|
113
118
|
else
|
114
119
|
|
115
|
-
if File.
|
120
|
+
if File.exist?(x) then
|
116
121
|
:file
|
117
122
|
else
|
118
123
|
:text
|
@@ -212,6 +217,7 @@ class RXFHelper < RXFileIO
|
|
212
217
|
raise(RXFHelperException, "401 %s unauthorized access" % x)
|
213
218
|
end
|
214
219
|
|
220
|
+
return [r.body, :url] if File.extname(x) == '.html'
|
215
221
|
obj = opt[:auto] ? objectize(r.body) : r.body
|
216
222
|
|
217
223
|
[obj, :url]
|
@@ -234,7 +240,7 @@ class RXFHelper < RXFileIO
|
|
234
240
|
r = DRbRegClient.new.get(x)
|
235
241
|
[r.is_a?(Rexle::Element::Value) ? r.to_s : r, :reg]
|
236
242
|
|
237
|
-
elsif x[/^file:\/\//] or File.
|
243
|
+
elsif x[/^file:\/\//] or File.exist?(x) then
|
238
244
|
|
239
245
|
puts 'RXFHelper.read before File.read' if opt[:debug]
|
240
246
|
contents = File.read(File.expand_path(x.sub(%r{^file://}, '')))
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rxfhelper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,32 +10,33 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-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FsfhQgpYsFcsa36hkeJO1pX0/eHKTBnuvz9oNrBui/P9ndNv1
|
26
|
+
NYh8iQIDAQABo4GKMIGHMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
27
|
+
BBRcv3w5XEJc1eUbl1hgB2bh5Ntf3jAmBgNVHREEHzAdgRtnZW1tYXN0ZXJAamFt
|
28
|
+
ZXNyb2JlcnRzb24uZXUwJgYDVR0SBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
|
29
|
+
c29uLmV1MA0GCSqGSIb3DQEBCwUAA4IBgQCgmrFFoHpNkF8XQWmi12R5xZTMeHTP
|
30
|
+
kAneYzr55LAnQOGYrd8rGcSyfrPMt4V06/UakfEddkUdtqbOHV0fumeY88E25ZpU
|
31
|
+
WWW0PL02uJaODYZlb3viy4fUdUvLuEuI3xAuUA63C7FUDmneaifPb1caZ/j1fp1K
|
32
|
+
mJQa8fSTKICQQiV3viPSWQG8uhuWVK2mJQg2VQc6siw9p+uOS8qwMuSd0X/Lwadq
|
33
|
+
vgS5N3Am2M0vrVrqSwwhpty0lBcj+YN5r6cxJe5mHyyxpGOsmFdUEjuvTs11HODT
|
34
|
+
wljxS1AhE2ASKdymcnAZDFneDXy64z8E2I0huu7FiyAc5DMyh6/5H5FQf72LqY/0
|
35
|
+
VJdqc+5cUsuRNtEXAW8zugk3gLderzRGNLiC2UbNhXyJ/1V727rjtJ80JQS2FsQM
|
36
|
+
JVmXeHQHl5G2mNQkGX+8bEb71uUAWTTV0pD/xEozDYBZeKf4zHV7ipBjkQBi5xqp
|
37
|
+
8xmfbXuCTAnz33gQA/GXEEqXRElPmFVIruM=
|
37
38
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
39
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
39
40
|
dependencies:
|
40
41
|
- !ruby/object:Gem::Dependency
|
41
42
|
name: rsc
|
@@ -183,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
184
|
- !ruby/object:Gem::Version
|
184
185
|
version: '0'
|
185
186
|
requirements: []
|
186
|
-
rubygems_version: 3.
|
187
|
+
rubygems_version: 3.4.4
|
187
188
|
signing_key:
|
188
189
|
specification_version: 4
|
189
190
|
summary: Helpful library for primarily reading the contents of a file either from
|
metadata.gz.sig
CHANGED
Binary file
|