mako_rss 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/lib/mako/feed_constructor.rb +3 -4
- data/lib/mako/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 290598ad944edc63e67424f6a7fe9000eef34764
|
|
4
|
+
data.tar.gz: 4549a791353d7f41cff731aef8c8b4ded2a65d96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d512d6f6a001ddb3125370831fd69796b32ad69d28fb2ad6306e8f9fb6a5e294a04643fa8b22837e6674775528239825f5c553c2206f4e2f6c6dd7e4a143f5b2
|
|
7
|
+
data.tar.gz: 03b3a7d9f2aae435f16dff3d93ccb1a223cfee968b61e8dee27f191b71d6457846e54da565ef142982efd8c89bebca2a86f05984a8680b4a1a9d48b04568d340
|
|
@@ -58,14 +58,13 @@ module Mako
|
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
# RSS.
|
|
61
|
+
# Some feeds use summary for the full article body, other feeds use content.
|
|
62
|
+
# This prefers content, but falls back to summary.
|
|
64
63
|
#
|
|
65
64
|
# @param [Feedjira::Feed]
|
|
66
65
|
# @return [String] an HTML string of the source article body
|
|
67
66
|
def entry_summary(entry)
|
|
68
|
-
entry.
|
|
67
|
+
!entry.content || entry.content.empty? ? entry.summary : entry.content
|
|
69
68
|
end
|
|
70
69
|
end
|
|
71
70
|
end
|
data/lib/mako/version.rb
CHANGED