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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49f9ee281528a7cd9f9dc486e016c0c8fc18d1f1
4
- data.tar.gz: 9029aa1ba7de5a5bd50d298d4da9bfce1d02a058
3
+ metadata.gz: cd8fe5070190f090d671fd33b4c9ea5ba82725ed
4
+ data.tar.gz: d36e0affac8fa2a7f4e33a376cdbf795f1480f2b
5
5
  SHA512:
6
- metadata.gz: 33e24a4b172fbbe03c6447c35b9f92f6dc886952269a2a41bb47decc27299cb4e7af9a542fbcede282ae170c0599439362e7940fa50dd1ebdbe4b5f0075f18c0
7
- data.tar.gz: 8eb1e6a38caa1c4b1aa9a32bd173b79061059f5ac3597fb52814d7fcbc642f445deb3e652e7f9ae68566ef98fc83a9c051e06cb2ffe73a02a1b3bc28d21076e9
6
+ metadata.gz: 636ac956410a5f277544def93df765cda34c8d9dd70f6db9513e907217df1db4b7fa24e4f02d69eb64b1a916df6e48e2734bcc865eae50473e8ab2ca4c25874d
7
+ data.tar.gz: b3347fdeda2e1a14e2918cd5526cf91c7ddf603e57b0d491dbf8562256755af1d9e19d7d85816a0e195e89d7c137ed19c980a2d8d0d4a3915f7b0acc391acea9
@@ -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 = REXML::XPath.first(entry_xml, "entry/content").text
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
@@ -1,3 +1,3 @@
1
1
  module ConcertoSimpleRss
2
- VERSION = "0.3"
2
+ VERSION = "0.4"
3
3
  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.3'
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-17 00:00:00.000000000 Z
11
+ date: 2014-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails