rxfhelper 0.1.12 → 0.1.13

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
  SHA1:
3
- metadata.gz: 6ae27d6310ef571019707ac0cc7c5e4d2636d58c
4
- data.tar.gz: a6f6101d149ce2ad7a24c71c05807eefa0bf2538
3
+ metadata.gz: abe76701594031c89b7089a02b1b69b6e8f044b9
4
+ data.tar.gz: fc3f199f04e489e6aa7bdfa97e8da8bc63ddcf03
5
5
  SHA512:
6
- metadata.gz: e0ed14c8289be976fb7fefc9f9fb1cacec3849eb3d31fa1fe16b16f2f35477065aee458b14908b6ce5cf0cd8da9414203cf713f2a44b155eeb18afbe29a8118f
7
- data.tar.gz: 230bba30b58575ac82d24ccf7778f39cca29cc839d738db93a7ce5dc36c69ddbd01c59145b8989992cc5a20172da825911ea492daf28a0d280575f306211b029
6
+ metadata.gz: 5a79d3a24b42590fa50322b017d28af1a8360533f55f5070291f5beab8e044f037d9782d265df403612fd57ee6fe1a4f02bffb93b45ae685efbfd11f3cb1a962
7
+ data.tar.gz: 65b9b440caa0c9dd4583534662953cd3799778aea00c634dc5982113fb60d386dc2ec6318b1d57ec6499171b9529cbdc02631ed18624e7827a73b714344e7013
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -19,11 +19,17 @@ class RXFHelper
19
19
  def self.read(x)
20
20
 
21
21
  if x.strip[/^</] then
22
+
22
23
  [x, :xml]
23
- elsif x[/https?:\/\//] then
24
- [open(x, 'UserAgent' => 'RXFHelper'){|x| x.read}, :url]
25
- elsif x[/^file:\/\//] or File.exists?(x) then
26
- [File.read(File.expand_path(x.sub(%r{^file://}, ''))), :file]
24
+
25
+ elsif x.lines.length == 1 then
26
+
27
+ if x.strip[/^https?:\/\//] then
28
+ [open(x, 'UserAgent' => 'RXFHelper'){|x| x.read}, :url]
29
+ elsif x[/^file:\/\//] or File.exists?(x) then
30
+ [File.read(File.expand_path(x.sub(%r{^file://}, ''))), :file]
31
+ end
32
+
27
33
  else
28
34
  [x, :unknown]
29
35
  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.12
4
+ version: 0.1.13
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: 2014-03-23 00:00:00.000000000 Z
34
+ date: 2014-10-11 00:00:00.000000000 Z
35
35
  dependencies: []
36
36
  description:
37
37
  email: james@r0bertson.co.uk
@@ -52,7 +52,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: 2.1.2
56
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  version: '0'
61
61
  requirements: []
62
62
  rubyforge_project:
63
- rubygems_version: 2.0.14
63
+ rubygems_version: 2.2.2
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: rxfhelper
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- %�>=p���7�uA.W9폇�q������W���}�l�X���?Z��@{QGe�z y���\N���Y:�Z��EsO���l4����u�8�v�+��HĜ�̾�ɳ�s�1� Qg�չR��������~A�֗�_�A4���_%
2
- ��'!J��{��E<�<�y�j���>��n��o����Y?Q�]�;#?؞b�ަ`�+0�������'f`��i}�ϫ|�O�K ��*�h&� @�
1
+ �+oR=L:��'�[jP���e&�5T~؎�mZ���6󏉢h�� ���Y�p6 n&�e���9��t�� ��r��DN �����$"x�� PWG��<�Ew�=�B>��*�iT7�\o����ַ�ބdm\��v�}u+�1+hK��΄�����I��lj�_��V���}���i��弲��Q6!�l"���]ty�n�A1�虳w<��n��m�>M�t|1���x6��#�L��۱_U.W