From: Kouhei Sutou Date: 2008-04-20T09:41:41+09:00 Subject: Re: RSS::Parser only returns nil Hi, In "RSS::Parser only returns nil" on Thu, 17 Apr 2008 13:29:02 +0900, Cody Robbins wrote: > I am trying to use RSS::Parser to parse an RSS feed, like so: > > require 'rss' > require 'rss/parser' > RSS::Parser.parse(open('http://www.macrumors.com/macrumors.xml').read) > > This works exactly as advertised on my development machine, but on the > production machine RSS::Parser#parse only returns nil. Both machines > are running the same versions of Ruby, and I diffed the rss/ lib > directories on the two machines, and there are no differences (i.e., > they have the exact same copies of the RSS library code). > > The problem is not arising from trying to read the data from a URL. In > fact, nil is returned on the production machine whether the RSS is > read from a URL, a file, or entered directly as a string in the parse > call. The same nil result occurs with even a minimal RSS file. Check your RSS Parser version what you're using on both environments: % ruby -r rss -e 'puts RSS::VERSION' Thanks, -- kou