concerto_simple_rss 0.9 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/simple_rss.rb +6 -6
- data/lib/concerto_simple_rss/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 920510da98f4e29a6a78743863b87b13b831e157
|
4
|
+
data.tar.gz: c86fdb040da61171251108ba49236eb2bbd9c0cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dce49c410e3b9013aa6847127eabecd895536c685290b7aa6c64b2d8ce097a0f4a1a20aa820555995d54f9b939a650b36e1439190c191ab98b5458d40e3be532
|
7
|
+
data.tar.gz: 9a938eed7e5bb4ec47c6dea41c58ae0829f3e659d82c787028fd72d5e7a3a00580327603a9b174cf25cfe2014312b520005d4e0a56ff214fa0a01e378183a5e5
|
data/app/models/simple_rss.rb
CHANGED
@@ -125,7 +125,7 @@ class SimpleRss < DynamicContent
|
|
125
125
|
htmltext = HtmlText.new()
|
126
126
|
htmltext.name = "#{feed_title}"
|
127
127
|
htmltext.data = sanitize(data)
|
128
|
-
contents << htmltext
|
128
|
+
contents << htmltext if !htmltext.data.blank?
|
129
129
|
else
|
130
130
|
# if there are any content-items then add each one as a separate content
|
131
131
|
# and strip off the content-item wrapper
|
@@ -133,21 +133,21 @@ class SimpleRss < DynamicContent
|
|
133
133
|
htmltext = HtmlText.new()
|
134
134
|
htmltext.name = "#{feed_title}"
|
135
135
|
htmltext.data = sanitize(n.to_s.gsub(/^\s*\<content-item\>/, '').gsub(/\<\/content-item\>\s*$/,''))
|
136
|
-
contents << htmltext
|
136
|
+
contents << htmltext if !htmltext.data.blank?
|
137
137
|
end
|
138
138
|
end
|
139
139
|
rescue => e
|
140
140
|
# maybe the html was not xml compliant-- this happens frequently in rss feed descriptions
|
141
141
|
# look for another separator and use it, if it exists
|
142
142
|
|
143
|
-
if data.include?("</content-item>")
|
143
|
+
if data.present? and data.include?("</content-item>")
|
144
144
|
# if there are any content-items then add each one as a separate content
|
145
145
|
# and strip off the content-item wrapper
|
146
146
|
data.split("</content-item>").each do |n|
|
147
147
|
htmltext = HtmlText.new()
|
148
148
|
htmltext.name = "#{feed_title}"
|
149
|
-
htmltext.data = sanitize(n.sub("<content-item>", ""))
|
150
|
-
contents << htmltext if !htmltext.data.
|
149
|
+
htmltext.data = sanitize(n.sub("<content-item>", ""))
|
150
|
+
contents << htmltext if !htmltext.data.blank?
|
151
151
|
end
|
152
152
|
|
153
153
|
else
|
@@ -157,7 +157,7 @@ class SimpleRss < DynamicContent
|
|
157
157
|
htmltext = HtmlText.new()
|
158
158
|
htmltext.name = "#{feed_title}"
|
159
159
|
htmltext.data = sanitize(data)
|
160
|
-
contents << htmltext
|
160
|
+
contents << htmltext if !htmltext.data.blank?
|
161
161
|
end
|
162
162
|
end
|
163
163
|
else
|
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: '1.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Michalski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.4.5
|
131
|
+
rubygems_version: 2.4.5.1
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: RSS Dynamic Concerto for Concerto 2.
|