ruby-feedparser 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/feedparser/rexml_patch.rb +3 -0
- data/lib/feedparser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef98b8e94313acaf4bb675bf288be24431c4667259cdba3c0cd8442a50a8a60d
|
4
|
+
data.tar.gz: 143101e95cd72744fe963cd2a9eb925c17060a718bc06e7024f41f221b50ab97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0ae6ccf83dc9fae3d8d0b16df210852d230c2927bccc5f94ce113e21efe51c175eb0123054183f2c63ae98b4356fdd66fee56628f9acf821c5c781f1da1763b
|
7
|
+
data.tar.gz: 1a920814efea8833c9b4172b1f97b54e76b3951013820da855786dc9303058a4a306b244d62b1ac7d8023c0c48fde9a8754e38884c5e0e0b4e8c8d9714aa54ee
|
data/Rakefile
CHANGED
@@ -6,14 +6,17 @@ require 'feedparser/textconverters'
|
|
6
6
|
# With those changes, it uses unpack/pack with some error handling
|
7
7
|
module REXML
|
8
8
|
module Encoding
|
9
|
+
alias rexml_decode decode
|
9
10
|
def decode(str)
|
10
11
|
return str.toUTF8(@encoding)
|
11
12
|
end
|
12
13
|
|
14
|
+
alias rexml_encode encode
|
13
15
|
def encode(str)
|
14
16
|
return str
|
15
17
|
end
|
16
18
|
|
19
|
+
alias rexml_encoding= encoding=
|
17
20
|
def encoding=(enc)
|
18
21
|
return if defined? @encoding and enc == @encoding
|
19
22
|
@encoding = enc || 'utf-8'
|
data/lib/feedparser/version.rb
CHANGED