simple-rss 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple-rss.rb +2 -2
- 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: 96918bde2fd6588aa8a87cf1a2fe4bf89dc43167
|
4
|
+
data.tar.gz: e5f4049b281d381712f6635ae623440a0c38ce6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 292c0ebd0312c3aaa7a69c84b8afeaa7c950fd6a87d0c14fd323706588f13c517909eea62cad4ee7b92ed42fe741ee89033bd5d32f0d383fb842c2c0ce02a603
|
7
|
+
data.tar.gz: ecf6d422493633285f6547102a87f75c89bc90734cdfba7054c1d5330fbc3d0ac4cba4c13e53be0e5e9d08362498a705ebb1b2c592a704fdae12f289d0887181
|
data/lib/simple-rss.rb
CHANGED
@@ -2,7 +2,7 @@ require 'cgi'
|
|
2
2
|
require 'time'
|
3
3
|
|
4
4
|
class SimpleRSS
|
5
|
-
VERSION = "1.3.
|
5
|
+
VERSION = "1.3.1"
|
6
6
|
|
7
7
|
attr_reader :items, :source
|
8
8
|
alias :entries :items
|
@@ -152,7 +152,7 @@ class SimpleRSS
|
|
152
152
|
end
|
153
153
|
|
154
154
|
def unescape(content)
|
155
|
-
if content.force_encoding("binary") =~ /([^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]%)/n then
|
155
|
+
if content.respond_to?(:force_encoding) && content.force_encoding("binary") =~ /([^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]%)/n then
|
156
156
|
CGI.unescape(content).gsub(/(<!\[CDATA\[|\]\]>)/,'').strip
|
157
157
|
else
|
158
158
|
content.gsub(/(<!\[CDATA\[|\]\]>)/,'').strip
|