feedtools 0.2.28 → 0.2.29

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ === Feedtools 0.2.29
2
+ * fixed bug with utf-8 content in resolve_relative_uris
1
3
  === FeedTools 0.2.28
2
4
  * fixed major bug with autodiscovery
3
5
  === FeedTools 0.2.27
@@ -360,7 +360,7 @@ module FeedTools
360
360
 
361
361
  if FeedTools.configurations[:sanitization_enabled]
362
362
  fragments = HTML5::HTMLParser.parse_fragment(
363
- html, :tokenizer => HTML5::HTMLSanitizer)
363
+ html, :tokenizer => HTML5::HTMLSanitizer, :encoding => 'UTF-8')
364
364
  else
365
365
  fragments = HTML5::HTMLParser.parse_fragment(html)
366
366
  end
@@ -2,7 +2,7 @@ module FeedTools
2
2
  module FEED_TOOLS_VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 28
5
+ TINY = 29
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
3
+ <channel>
4
+ <title>RockCast Italia</title>
5
+ <link>http://rockcastitalia.com/</link>
6
+ <description>novità</description>
7
+ <generator>Feeder 220 http://reinventedsoftware.com/feeder/</generator>
8
+ </channel>
9
+ </rss>
@@ -96,4 +96,10 @@ class EncodingTest < Test::Unit::TestCase
96
96
  assert_equal("big5", feed.encoding)
97
97
  }
98
98
  end
99
- end
99
+
100
+ def test_utf_content
101
+ with_feed(:from_file => '/wellformed/encoding/utf8.xml') {|feed|
102
+ assert_equal("novit\303\240", feed.description)
103
+ }
104
+ end
105
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.28
5
- platform: ruby
4
+ version: 0.2.29
5
+ platform: ""
6
6
  authors:
7
7
  - Bob Aman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-01 00:00:00 -05:00
12
+ date: 2008-03-26 00:00:00 +10:30
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -2203,6 +2203,7 @@ files:
2203
2203
  - test/feeds/wellformed/encoding/utf-32le.xml
2204
2204
  - test/feeds/wellformed/encoding/utf-8-bom.xml
2205
2205
  - test/feeds/wellformed/encoding/utf16.xml
2206
+ - test/feeds/wellformed/encoding/utf8.xml
2206
2207
  - test/feeds/wellformed/encoding/utf_16.xml
2207
2208
  - test/feeds/wellformed/encoding/utf_32.xml
2208
2209
  - test/feeds/wellformed/encoding/x80_437.xml
@@ -3023,7 +3024,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3023
3024
  requirements: []
3024
3025
 
3025
3026
  rubyforge_project: feedtools
3026
- rubygems_version: 1.0.1
3027
+ rubygems_version: 0.9.5
3027
3028
  signing_key:
3028
3029
  specification_version: 2
3029
3030
  summary: Parsing, generation, and caching system for xml news feeds.