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.
- data/lib/spix_parser/version.rb +1 -1
- data/lib/spix_parser/wrappers/entry.rb +6 -1
- metadata +2 -2
data/lib/spix_parser/version.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
17
|
+
date: 2011-06-20 00:00:00 -03:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|