damog-feedbag 0.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/feedbag.rb +2 -4
- metadata +1 -1
data/lib/feedbag.rb
CHANGED
@@ -37,8 +37,6 @@ module Feedbag
|
|
37
37
|
$base_uri = nil
|
38
38
|
|
39
39
|
def self.feed?(url)
|
40
|
-
res = self.find(url)
|
41
|
-
|
42
40
|
# use LWR::Simple.normalize some time
|
43
41
|
url_uri = URI.parse(url)
|
44
42
|
url = "#{url_uri.scheme or 'http'}://#{url_uri.host}#{url_uri.path}"
|
@@ -95,9 +93,9 @@ module Feedbag
|
|
95
93
|
|
96
94
|
end
|
97
95
|
rescue OpenURI::HTTPError => the_error
|
98
|
-
puts "Error ocurred with `#{url}': #{the_error}"
|
96
|
+
$stderr.puts "Error ocurred with `#{url}': #{the_error}"
|
99
97
|
rescue SocketError => err
|
100
|
-
puts "Socket error ocurred with: `#{url}': #{err}"
|
98
|
+
$stderr.puts "Socket error ocurred with: `#{url}': #{err}"
|
101
99
|
end
|
102
100
|
|
103
101
|
$feeds
|