thoughtafter-simple-rss 1.2.3.1 → 1.2.3.2

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/Rakefile CHANGED
@@ -23,7 +23,7 @@ task :default => [ :test ]
23
23
  # Run the unit tests
24
24
  desc "Run all unit tests"
25
25
  Rake::TestTask.new("test") { |t|
26
- t.libs << "lib"
26
+ t.libs << ["lib", "test"]
27
27
  t.pattern = 'test/*/*_test.rb'
28
28
  t.verbose = true
29
29
  }
data/install.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rbconfig'
2
2
  require 'find'
3
- require 'fileutils'
3
+ require 'ftools'
4
4
 
5
5
  include Config
6
6
 
@@ -37,4 +37,4 @@ files = FileList["**/*"]
37
37
  # File::safe_unlink *deprecated.collect{|f| File.join($sitedir, f.split(/\//))}
38
38
  files.each {|f|
39
39
  File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
40
- }
40
+ }
data/lib/simple-rss.rb CHANGED
@@ -69,6 +69,8 @@ class SimpleRSS
69
69
  end
70
70
  end
71
71
 
72
+ private
73
+
72
74
  def parse
73
75
  raise SimpleRSSError, "Poorly formatted feed" unless @source =~ %r{<(channel|feed).*?>.*?</(channel|feed)>}mi
74
76
 
@@ -89,7 +91,7 @@ class SimpleRSS
89
91
  if $2 || $3
90
92
  tag_cleaned = clean_tag(tag)
91
93
  instance_variable_set("@#{ tag_cleaned }", clean_content(tag, $2, $3))
92
- self.class.send(:attr_reader, tag_cleaned)
94
+ self.class.class_eval("attr_reader :#{ tag_cleaned }")
93
95
  end
94
96
  end
95
97
 
data/simple-rss.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
- s.name = "thoughtafter-simple-rss"
3
- s.version = "1.2.3.1"
4
- s.date = "2011-01-07"
2
+ s.name = "simple-rss"
3
+ s.version = "1.2.3"
4
+ s.date = "2010-07-06"
5
5
  s.summary = "A simple, flexible, extensible, and liberal RSS and Atom reader for Ruby. It is designed to be backwards compatible with the standard RSS parser, but will never do RSS generation."
6
6
  s.email = "lucas@rufy.com"
7
7
  s.homepage = "http://github.com/cardmagic/simple-rss"
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
2
  class BaseTest < Test::Unit::TestCase
3
3
  def setup
4
4
  @rss09 = SimpleRSS.parse open(File.dirname(__FILE__) + '/../data/rss09.rdf')
@@ -69,4 +69,4 @@ class BaseTest < Test::Unit::TestCase
69
69
  def test_bad_feed
70
70
  assert_raise(SimpleRSSError) { SimpleRSS.parse(open(File.dirname(__FILE__) + '/../data/not-rss.xml')) }
71
71
  end
72
- end
72
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thoughtafter-simple-rss
3
3
  version: !ruby/object:Gem::Version
4
- hash: 65
4
+ hash: 71
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
9
  - 3
10
- - 1
11
- version: 1.2.3.1
10
+ - 2
11
+ version: 1.2.3.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Lucas Carlson