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 CHANGED
@@ -20,6 +20,7 @@ command :generate do |c|
20
20
  conf['blogs'].each do |blog|
21
21
  @planet.blogs << Planet::Blog.new(
22
22
  feed: blog['feed'],
23
+ url: blog['url'],
23
24
  author: blog['author'],
24
25
  image: blog['image'],
25
26
  posts: [],
@@ -2,7 +2,7 @@ module Planet
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, PATCH].join('.')
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 = feed.url
52
+ blog.url ||= feed.url
53
53
  feed.entries.each do |entry|
54
54
  @@_posts << @post = Post.new(
55
55
  title: entry.title,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: planet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: