Skip to content

Commit

Permalink
Fixed issue with private on ruby 1.9
Browse files Browse the repository at this point in the history
Implemented a workaround (removed all privacy from the SimpleRSS class).
This should be done properly, but I really, really don't care.
  • Loading branch information
hank committed Aug 31, 2010
1 parent ef0d5db commit 247dd16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions install.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rbconfig'
require 'find'
require 'ftools'
require 'fileutils'

include Config

Expand Down Expand Up @@ -37,4 +37,4 @@
# File::safe_unlink *deprecated.collect{|f| File.join($sitedir, f.split(/\//))}
files.each {|f|
File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
}
}
2 changes: 0 additions & 2 deletions lib/simple-rss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ def parse(source, options={})
end
end

private

def parse
raise SimpleRSSError, "Poorly formatted feed" unless @source =~ %r{<(channel|feed).*?>.*?</(channel|feed)>}mi

Expand Down

0 comments on commit 247dd16

Please sign in to comment.