rxfhelper 0.1.8 → 0.1.9

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: 21817e49c5f707d47f0b86ee85f7af2d3b7f70be
4
- data.tar.gz: f25822d25d9c43794d9b2c190058b03cff174808
3
+ metadata.gz: 11f2189385ef1553bd3ebda9935750513eb0d597
4
+ data.tar.gz: 1ade4f7b3c51341718e14083b95ecadb036fd9de
5
5
  SHA512:
6
- metadata.gz: a45d8b8a8c47dc497464948443f0c1ed7db1820b09486055e09088eac2d40a0dbdd1f130e23fe0b14fc38bb940221d55ef3c51077b0bac2bb47cbc5cc18f236e
7
- data.tar.gz: 129c53b35a2b99db097db400dc4dacbeee0ce5e844584104207148fd3436a461eae12e6cd2121de751e10201baef091434e548c50da991f186378612d8a450f6
6
+ metadata.gz: 3da84851dd49b413aeaf0c954add3532c751bec9e391dbc308876eb6a8bc0cde8af8a8ccb8df3b62b4ab9cce36521bdbc4c887684e4263b46cc5ed2dbe10175a
7
+ data.tar.gz: 4038477cd1d8eb04e4b8d378076d16fc20358bb063995a2ba47364656b25c5513a0c81eb14324e675ab27e91ff1d19ae8d294a5971fe423307acfa48f91f9c07
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rxfhelper.rb CHANGED
@@ -4,6 +4,14 @@
4
4
 
5
5
  require 'open-uri'
6
6
 
7
+ class URL
8
+
9
+ def self.join(*a)
10
+ a.map {|x| x.sub(/(?:^\/|\/$)/,'') }.join '/'
11
+ end
12
+ end
13
+
14
+
7
15
  # Read XML File Helper
8
16
  #
9
17
  class RXFHelper
@@ -26,7 +34,7 @@ class RXFHelper
26
34
  case item_location
27
35
 
28
36
  when /^\//
29
- File.join page_url[/https?:\/\/[^\/]+/], item_location
37
+ URL.join page_url[/https?:\/\/[^\/]+/], item_location
30
38
 
31
39
  when /^http/
32
40
  item_location
data.tar.gz.sig CHANGED
Binary file
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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  3grI/G0AtKTAIxwzUSREdcTW8YLIXYWYIpyRKiQmAXMwaCWhArKClhk1rXMUcWcr
30
30
  wW03NZkjdRs2OHCClcThRcBXSEZpKXht
31
31
  -----END CERTIFICATE-----
32
- date: 2013-08-25 00:00:00.000000000 Z
32
+ date: 2013-08-26 00:00:00.000000000 Z
33
33
  dependencies: []
34
34
  description:
35
35
  email: james@r0bertson.co.uk
metadata.gz.sig CHANGED
Binary file