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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec2bc30b75c15a678fc71292fdb526629e7a853f53b240859876084b7241386d
4
- data.tar.gz: 97aee822ce763d7107d684544165b361c4d2bda61d9ac51dca67e9676e255a09
3
+ metadata.gz: 7ac5ca7e2c397100aff7023b09433d3673d7b83dfcd54506b6aeabba07196515
4
+ data.tar.gz: 1d5747ed72d0424a67b22c0c7002349794e4911c531c45cb1c3f83e8c8fc13a3
5
5
  SHA512:
6
- metadata.gz: 986b8fb3dbba78560bf0931bcbaab3c609600c1978a022a0b34cc2968f1a593032665d3417e5d36fdf7476b39aaec40daa07e5279fdf5a20f44bbc1d73d48b7f
7
- data.tar.gz: 63e939066b5cbeb5781e8ced3160fd2278e6348a1898d23d286885ba16ef9d7068afb9573a3cbf73e850959bef010ea49bc876c6a152ef764a032bdb4a16bfa6
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.exists?(filename)
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.exists? filename
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.exists?(x) then
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.exists?(x) then
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.2
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
- MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
14
- YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjIwMTE4MTczMTA2WhcN
15
- MjMwMT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-01 00:00:00.000000000 Z
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.2.22
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