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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/simple-rss.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 290068b62d7bb22bbbbb7aad26c35050614689a4
4
- data.tar.gz: 8eafbfa8bd7b223cd8a6d24e2e260aebaa941566
3
+ metadata.gz: 96918bde2fd6588aa8a87cf1a2fe4bf89dc43167
4
+ data.tar.gz: e5f4049b281d381712f6635ae623440a0c38ce6d
5
5
  SHA512:
6
- metadata.gz: 31facc5057c131752d89878d05af5b3f6e15cc1636bb6886d036b2ee946dd2dabb052d1f7a5a28b1f1650096ebb416b89ae65e791097d65c587155c15e19b484
7
- data.tar.gz: 09ebda720962bccdcac1bbd25317ac31280df864914f069ece306c48849e1e7d78bcdaf1466be9e659114507f3d630f6b4507865053ea15e1e6121c24e324fd5
6
+ metadata.gz: 292c0ebd0312c3aaa7a69c84b8afeaa7c950fd6a87d0c14fd323706588f13c517909eea62cad4ee7b92ed42fe741ee89033bd5d32f0d383fb842c2c0ce02a603
7
+ data.tar.gz: ecf6d422493633285f6547102a87f75c89bc90734cdfba7054c1d5330fbc3d0ac4cba4c13e53be0e5e9d08362498a705ebb1b2c592a704fdae12f289d0887181
@@ -2,7 +2,7 @@ require 'cgi'
2
2
  require 'time'
3
3
 
4
4
  class SimpleRSS
5
- VERSION = "1.3.0"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-rss
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Carlson