planet 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/planet/version.rb +1 -1
  2. data/lib/planet.rb +6 -1
  3. metadata +1 -1
@@ -2,7 +2,7 @@ module Planet
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- PATCH = 10
5
+ PATCH = 11
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, PATCH].join('.')
data/lib/planet.rb CHANGED
@@ -125,9 +125,14 @@ class Planet
125
125
  abort "=> No content found on entry"
126
126
  end
127
127
 
128
+ title = if !entry.title.nil?
129
+ entry.title.sanitize
130
+ else
131
+ self.name
132
+ end
128
133
 
129
134
  self.posts << @post = Post.new(
130
- title: entry.title.sanitize,
135
+ title: title,
131
136
  content: content,
132
137
  date: entry.published,
133
138
  url: self.url + entry.url,
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.3.10
4
+ version: 0.3.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: