damog-feedbag 0.5.11 → 0.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/feedbag.rb +4 -0
  2. metadata +1 -1
data/lib/feedbag.rb CHANGED
@@ -39,6 +39,8 @@ module Feedbag
39
39
  # use LWR::Simple.normalize some time
40
40
  url_uri = URI.parse(url)
41
41
  url = "#{url_uri.scheme or 'http'}://#{url_uri.host}#{url_uri.path}"
42
+ # hack:
43
+ url.sub!(/^feed:\/\//, 'http://')
42
44
 
43
45
  res = self.find(url)
44
46
  if res.size == 1 and res.first == url
@@ -55,6 +57,8 @@ module Feedbag
55
57
  url = nil
56
58
  if url_uri.scheme.nil?
57
59
  url = "http://#{url_uri.to_s}"
60
+ elsif url_uri.scheme == "feed"
61
+ return self.add_feed(url_uri.to_s.sub(/^feed:\/\//, 'http://'), nil)
58
62
  else
59
63
  url = url_uri.to_s
60
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: damog-feedbag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.11
4
+ version: 0.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Axiombox