spix_parser 1.6.8 → 1.6.9

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.
@@ -4,7 +4,7 @@ module Spix
4
4
  module Version
5
5
  MAJOR = 1
6
6
  MINOR = 6
7
- TINY = 8
7
+ TINY = 9
8
8
 
9
9
  def self.current_version
10
10
  "#{MAJOR}.#{MINOR}.#{TINY}"
@@ -58,6 +58,7 @@ module Spix
58
58
  Sanitizer.strip_comments(text)
59
59
  Sanitizer.strip_disallowed_tags(text)
60
60
  Sanitizer.entities_to_chars(text)
61
+ Spix::Utils.format_links({:text => text, :site_url => @feed.site_url})
61
62
  end
62
63
  memoize(:content)
63
64
 
@@ -79,9 +80,13 @@ module Spix
79
80
 
80
81
  private
81
82
  def encoded_raw_content
82
- text = @entry.entry_content || @entry.entry_summary || ""
83
+ text = content_in?(@entry.entry_content) || content_in?(@entry.entry_summary) || ""
83
84
  text.busk_normalize
84
85
  end
86
+
87
+ def content_in? text
88
+ text unless text.to_s.strip.empty?
89
+ end
85
90
  end
86
91
  end
87
92
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: spix_parser
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.6.8
5
+ version: 1.6.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Marcio Lopes de Faria
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-06-06 00:00:00 -03:00
17
+ date: 2011-06-20 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency