planet 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/planet +1 -0
- data/lib/planet/version.rb +1 -1
- data/lib/planet.rb +1 -1
- metadata +1 -1
data/bin/planet
CHANGED
data/lib/planet/version.rb
CHANGED
data/lib/planet.rb
CHANGED
@@ -49,7 +49,7 @@ class Planet
|
|
49
49
|
@@_blogs.each do |blog|
|
50
50
|
puts "=> Parsing #{ blog.feed }"
|
51
51
|
feed = Feedzirra::Feed.fetch_and_parse(blog.feed)
|
52
|
-
blog.url
|
52
|
+
blog.url ||= feed.url
|
53
53
|
feed.entries.each do |entry|
|
54
54
|
@@_posts << @post = Post.new(
|
55
55
|
title: entry.title,
|