rxfhelper 0.1.13 → 0.1.14
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.tar.gz.sig +0 -0
- data/lib/rxfhelper.rb +6 -3
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c0aab26794cd35fd2c43e7be62aade40c680266
|
4
|
+
data.tar.gz: 2aef05ab9d9cf04fc502ce0a00e46c75a39ddd7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c74a98077276917e552bdbacf02c3902cd137e53a43bad429f2fd79a07beb5a88efa9b8891870574acd33dd7647889e28f0ab4e9b7f73e8692ce52f2cc3b95c3
|
7
|
+
data.tar.gz: 30900ab9985d4f98e03cd9be702bd9e192a705b7e8b1d4010ab3f9baebc7a01451b44e02f6279b90617160a0f3ea29004fb19d8d74245fb02c69c32bea4b5710
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rxfhelper.rb
CHANGED
@@ -16,7 +16,7 @@ end
|
|
16
16
|
#
|
17
17
|
class RXFHelper
|
18
18
|
|
19
|
-
def self.read(x)
|
19
|
+
def self.read(x, opt={})
|
20
20
|
|
21
21
|
if x.strip[/^</] then
|
22
22
|
|
@@ -25,7 +25,10 @@ class RXFHelper
|
|
25
25
|
elsif x.lines.length == 1 then
|
26
26
|
|
27
27
|
if x.strip[/^https?:\/\//] then
|
28
|
-
|
28
|
+
|
29
|
+
[open(x, 'UserAgent' => 'RXFHelper',\
|
30
|
+
http_basic_authentication: [opt[:username], opt[:password]]).read, :url]
|
31
|
+
|
29
32
|
elsif x[/^file:\/\//] or File.exists?(x) then
|
30
33
|
[File.read(File.expand_path(x.sub(%r{^file://}, ''))), :file]
|
31
34
|
end
|
@@ -49,4 +52,4 @@ class RXFHelper
|
|
49
52
|
File.join page_url[/.*\//], item_location
|
50
53
|
end
|
51
54
|
end
|
52
|
-
end
|
55
|
+
end
|
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: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
O2RItQ7fvC2yqgMhC3aFvYuyzVvCCVfpaXF27fmYJxwTDx2nzFloTDly/N5dz65L
|
32
32
|
IYLfAtXr6xii9w==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
35
35
|
dependencies: []
|
36
36
|
description:
|
37
37
|
email: james@r0bertson.co.uk
|
metadata.gz.sig
CHANGED
Binary file
|