rxfhelper 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rxfhelper.rb +3 -3
  2. metadata +2 -2
@@ -10,11 +10,11 @@ class RXFHelper
10
10
 
11
11
  def self.read(x)
12
12
  if x.strip[/^</] then
13
- x
13
+ [x, :xml]
14
14
  elsif x[/https?:\/\//] then
15
- open(x, 'UserAgent' => 'RXFHelper').read
15
+ [open(x, 'UserAgent' => 'RXFHelper').read, :url]
16
16
  else
17
- File.open(x, 'r').read
17
+ [File.open(x, 'r').read, :file]
18
18
  end
19
19
  end
20
20
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rxfhelper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-02-09 00:00:00 +00:00
13
+ date: 2012-04-08 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies: []
16
16