[Ruby] [ANN] feed-normalizer 1.5.0 Released
Patrick Minton
patrick.minton at gmail.com
Wed Feb 6 12:09:12 PST 2008
Thanks, Andy!
I'm getting this error now:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.hours
/opt/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.0/lib/parsers/
rss.rb:92:in `send'
/opt/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.0/lib/
parsers/rss.rb:92:in `skip'
/opt/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.0/lib/
parsers/rss.rb:55:in `package'
/opt/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.0/lib/
parsers/rss.rb:23:in `parse'
/opt/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.0/lib/
feed-normalizer.rb:130:in `parse'
/opt/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.0/lib/
feed-normalizer.rb:129:in `each'
/opt/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.0/lib/
feed-normalizer.rb:129:in `parse'
Hard for me to tell exactly what this is doing:
def self.skip(parser, attribute)
attributes = case attribute
when :skipHours: :hours
when :skipDays: :days
end
channel = parser.channel
channel.respond_to?(attribute) &&
channel.send(attribute).send(attributes).map { |e| e.content }
end
But I imagine this is barfing because 'attribute' is nil -- do I have
to catch some exception here? I have a huge collection of feeds and
no real way of programmatically 'guessing' if they are going to have
certain custom fields.
Thanks again,
Patrick
On Feb 5, 2008, at 8:17 PM, Andy Smith wrote:
>> feed-normalizer version 1.5.0 has been released!
>
> And you can find it at <http://feed-normalizer.rubyforge.org/>
>
> Sorry for the extra post.
>
>
>
>
>
>
>
> _______________________________________________
> Ruby at zenspider.com - Seattle.rb non-commercial list
> http://www.zenspider.com/seattle.rb
> http://www.zenspider.com/mailman/listinfo/ruby
More information about the Ruby
mailing list