rfeedparser 0.9.7 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README CHANGED
@@ -9,13 +9,12 @@ open source, see LICENSE file for details
9
9
  To use:
10
10
  If installed as a gem
11
11
  require 'rubygems'
12
- gem 'rfeedparser
13
- require 'feedparser'
12
+ require 'rfeedparser'
14
13
 
15
14
  fp = FeedParser.parse("some-feed-filepath-or-url")
16
15
 
17
16
  If not installed as a gem, copy the contents of lib into the ruby path and just use
18
- require 'feedparser'
17
+ require 'rfeedparser'
19
18
 
20
19
  fp = FeedParser.parse("some-feed-filepath-or-url")
21
20
 
data/RUBY-TESTING CHANGED
@@ -1,12 +1,15 @@
1
1
  === Testing rFeedParser ===
2
- Simply run `ruby feedparsertest.rb` to run all of the FeedParser tests.
3
- Optionally, you can start up feedparserserver.rb and run feedparser.rb
2
+ Simply run `ruby tests/rfeedparsertest.rb` to run all of the FeedParser tests.
3
+ Optionally, you can start up rfeedparserserver.rb and, in another shell, run rfeedparser.rb
4
4
  against "http://localhost:8097/tests/path/to/testcase.xml" if you want
5
- to try a test individually. I'll probably merge feedparserserver.rb into
6
- feedparsertext.rb soon.
5
+ to try a test individually. You can, of course, run rfeedparser.rb with
6
+ the file path to the testcase, but there may be HTTP headers required for
7
+ a successful run that can only be given by running rfeedparser against
8
+ the HTTP server path. I'll probably merge feedparserserver.rb into
9
+ rfeedparsertest.rb soon.
7
10
 
8
11
  === Last Count 20070321 ===
9
- By my last count, feedparsertext.rb says that there are 45 assertions
12
+ By my last count, rfeedparsertest.rb says that there are 45 assertions
10
13
  that fail, and 4 that error out. I've included here a few tests that
11
14
  "Failed, Sort Of". By that I mean, the behaviors the tests are meant to
12
15
  check are correct, but the test fails because of some other superficial
@@ -19,17 +19,14 @@ require 'pp'
19
19
  require 'rubygems'
20
20
  require 'base64'
21
21
  require 'iconv'
22
- begin
23
- gem 'hpricot', ">=0.5"
24
- gem 'character-encodings', ">=0.2.0"
25
- gem 'htmltools'
26
- gem 'htmlentities'
27
- gem 'activesupport'
28
- gem 'rchardet'
29
- rescue Gem::LoadError,LoadError
30
- end
31
-
32
- require 'chardet'
22
+ gem 'hpricot', ">=0.5"
23
+ gem 'character-encodings', ">=0.2.0"
24
+ gem 'htmltools', ">=1.10"
25
+ gem 'htmlentities', ">=4.0.0"
26
+ gem 'activesupport', ">=1.4.2"
27
+ gem 'rchardet', ">=1.0"
28
+
29
+ require 'rchardet'
33
30
  $chardet = true
34
31
 
35
32
  require 'hpricot'
@@ -1,11 +1,12 @@
1
1
  #!/usr/bin/ruby
2
- # This is the same server code that runs in feedparsertest.rb, but split
2
+ # This is the same server code that runs in rfeedparsertest.rb, but split
3
3
  # off so that we can fully check each test individually (i.e. get the HTTP
4
4
  # headers right).
5
+ # This really needs to be merged into rfeedparsertest.rb
5
6
  require 'rubygems'
6
7
  gem 'mongrel'
7
8
  require 'mongrel'
8
- require '../lib/feedparser'
9
+ require File.dirname(__FILE__)+'/../lib/rfeedparser'
9
10
  $PORT = 8097
10
11
  def translate_data(data)
11
12
  if data[0..3] == "\x4c\x6f\xa7\x94"
@@ -3,10 +3,8 @@
3
3
  # I've adapted it for feedparser.rb
4
4
  # http://intertwingly.net/blog/2005/10/30/Testing-FeedTools-Dynamically/
5
5
 
6
- # NOTE FIXME Mongrel doesn't like many of the encoding/x80*.xml tests. I don't know why
7
- # I haven't figured out yet how to make the Time methods "rollover" on 25 hours, 61 minutes, etc.
8
6
  require 'test/unit'
9
- require '../lib/feedparser'
7
+ require File.dirname(__FILE__)+'/../lib/rfeedparser'
10
8
 
11
9
  begin
12
10
  require 'rubygems'
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: rfeedparser
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.7
7
- date: 2007-03-24 00:00:00 -04:00
6
+ version: 0.9.8
7
+ date: 2007-04-03 00:00:00 -04:00
8
8
  summary: Parse RSS and Atom feeds in Ruby
9
9
  require_paths:
10
10
  - lib
@@ -29,11 +29,11 @@ post_install_message:
29
29
  authors:
30
30
  - Jeff Hodges
31
31
  files:
32
- - lib/feedparser.rb
32
+ - lib/rfeedparser.rb
33
33
  - tests/illformed
34
34
  - tests/wellformed
35
- - tests/feedparserserver.rb
36
- - tests/feedparsertest.rb
35
+ - tests/rfeedparserserver.rb
36
+ - tests/rfeedparsertest.rb
37
37
  - tests/illformed/amp
38
38
  - tests/illformed/atom
39
39
  - tests/illformed/atom10
@@ -3393,7 +3393,7 @@ files:
3393
3393
  - LICENSE
3394
3394
  - RUBY-TESTING
3395
3395
  test_files:
3396
- - tests/feedparsertest.rb
3396
+ - tests/rfeedparsertest.rb
3397
3397
  rdoc_options: []
3398
3398
 
3399
3399
  extra_rdoc_files:
@@ -3412,9 +3412,9 @@ dependencies:
3412
3412
  version_requirement:
3413
3413
  version_requirements: !ruby/object:Gem::Version::Requirement
3414
3414
  requirements:
3415
- - - ">"
3415
+ - - ">="
3416
3416
  - !ruby/object:Gem::Version
3417
- version: 0.0.0
3417
+ version: "1.0"
3418
3418
  version:
3419
3419
  - !ruby/object:Gem::Dependency
3420
3420
  name: activesupport
@@ -3423,7 +3423,7 @@ dependencies:
3423
3423
  requirements:
3424
3424
  - - ">="
3425
3425
  - !ruby/object:Gem::Version
3426
- version: "1.0"
3426
+ version: 1.4.2
3427
3427
  version:
3428
3428
  - !ruby/object:Gem::Dependency
3429
3429
  name: hpricot