concerto_simple_rss 0.3 → 0.4
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/app/models/simple_rss.rb +4 -1
- data/lib/concerto_simple_rss/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd8fe5070190f090d671fd33b4c9ea5ba82725ed
|
|
4
|
+
data.tar.gz: d36e0affac8fa2a7f4e33a376cdbf795f1480f2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 636ac956410a5f277544def93df765cda34c8d9dd70f6db9513e907217df1db4b7fa24e4f02d69eb64b1a916df6e48e2734bcc865eae50473e8ab2ca4c25874d
|
|
7
|
+
data.tar.gz: b3347fdeda2e1a14e2918cd5526cf91c7ddf603e57b0d491dbf8562256755af1d9e19d7d85816a0e195e89d7c137ed19c980a2d8d0d4a3915f7b0acc391acea9
|
data/app/models/simple_rss.rb
CHANGED
|
@@ -198,7 +198,10 @@ class SimpleRss < DynamicContent
|
|
|
198
198
|
# contents without it being html encoded. most likely a prime candidate for optimizing
|
|
199
199
|
require 'rexml/document'
|
|
200
200
|
entry_xml = REXML::Document.new(item.to_s)
|
|
201
|
-
content_html =
|
|
201
|
+
content_html = ""
|
|
202
|
+
if (first = REXML::XPath.first(entry_xml, "entry/content"))
|
|
203
|
+
content_html = first.text
|
|
204
|
+
end
|
|
202
205
|
|
|
203
206
|
description = (item.summary.nil? ? content_html : item.summary.content)
|
|
204
207
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: concerto_simple_rss
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.4'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Michalski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-06-
|
|
11
|
+
date: 2014-06-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|