rxfhelper 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rxfhelper.rb +3 -1
- metadata +3 -5
data/lib/rxfhelper.rb
CHANGED
@@ -13,8 +13,10 @@ class RXFHelper
|
|
13
13
|
[x, :xml]
|
14
14
|
elsif x[/https?:\/\//] then
|
15
15
|
[open(x, 'UserAgent' => 'RXFHelper').read, :url]
|
16
|
+
elsif x[/^file:\/\//] or File.exists?(x) then
|
17
|
+
[File.open(x.sub(%r{^file://}, ''), 'r').read, :file]
|
16
18
|
else
|
17
|
-
[
|
19
|
+
[nil, :relative_url]
|
18
20
|
end
|
19
21
|
end
|
20
22
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rxfhelper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- James Robertson
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
14
|
-
default_executable:
|
13
|
+
date: 2012-09-13 00:00:00 Z
|
15
14
|
dependencies: []
|
16
15
|
|
17
16
|
description:
|
@@ -24,7 +23,6 @@ extra_rdoc_files: []
|
|
24
23
|
|
25
24
|
files:
|
26
25
|
- lib/rxfhelper.rb
|
27
|
-
has_rdoc: true
|
28
26
|
homepage:
|
29
27
|
licenses: []
|
30
28
|
|
@@ -48,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
46
|
requirements: []
|
49
47
|
|
50
48
|
rubyforge_project:
|
51
|
-
rubygems_version: 1.
|
49
|
+
rubygems_version: 1.8.23
|
52
50
|
signing_key:
|
53
51
|
specification_version: 3
|
54
52
|
summary: rxfhelper
|