rxfhelper 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rxfhelper.rb +1 -10
- metadata +4 -4
data/lib/rxfhelper.rb
CHANGED
@@ -8,15 +8,7 @@ require 'open-uri'
|
|
8
8
|
#
|
9
9
|
class RXFHelper
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
def initialize(x)
|
14
|
-
@to_s = read x
|
15
|
-
end
|
16
|
-
|
17
|
-
private
|
18
|
-
|
19
|
-
def read(x)
|
11
|
+
def self.read(x)
|
20
12
|
if x.strip[/^</] then
|
21
13
|
x
|
22
14
|
elsif x[/https?:\/\//] then
|
@@ -26,5 +18,4 @@ class RXFHelper
|
|
26
18
|
end
|
27
19
|
end
|
28
20
|
|
29
|
-
alias to_xml to_s
|
30
21
|
end
|
metadata
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
name: rxfhelper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
7
|
+
authors:
|
8
|
+
- James Robertson
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2012-02-09 00:00:00 +00:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|