Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6553497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:35:20+00:00 2026-05-25T12:35:20+00:00

With Ruby 1.8, FeedTools is able to get and parse rss/atom feed links given

  • 0

With Ruby 1.8, FeedTools is able to get and parse rss/atom feed links given a non-feed link. For eg:

ruby-1.8.7-p174 > f = FeedTools::Feed.open("http://techcrunch.com/")
 => #<FeedTools::Feed:0xc99cf8 URL:http://feeds.feedburner.com/TechCrunch> 
ruby-1.8.7-p174 > f.title
 => "TechCrunch" 

Whereas, with JRuby 1.5.2, FeedTools is unable to get and parse rss/atom feed links given a non-feed link. For eg:

jruby-1.5.2 > f = FeedTools::Feed.open("http://techcrunch.com/")                              
 => #<FeedTools::Feed:0x1206 URL:http://techcrunch.com/> 
jruby-1.5.2 > f.title                                           
 => nil 

At times, it also gives the following error:

FeedTools::FeedAccessError: [URL] does
not appear to be a feed.

Any ideas on how I can get FeedTools to work with JRuby?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:35:20+00:00Added an answer on May 25, 2026 at 12:35 pm

    There seems to be a bug in the feedtools gem. In the method to locate feed links with a given mime type, replace ‘lambda’ with ‘Proc.new’ to return from the method from inside the proc when the feed link is found.

    --- a/feedtools-0.2.29/lib/feed_tools/helpers/html_helper.rb
    +++ b/feedtools-0.2.29/lib/feed_tools/helpers/html_helper.rb
    @@ -620,7 +620,7 @@
             end
           end
           get_link_nodes.call(document.root)
    -      process_link_nodes = lambda do |links|
    +      process_link_nodes = Proc.new do |links|
             for link in links
               next unless link.kind_of?(REXML::Element)
               if link.attributes['type'].to_s.strip.downcase ==
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm aggregating RSS feeds using FeedTools. I followed this tutorial: http://simonwoodside.com/weblog/2008/12/7/ruby_on_rails_feedrss_aggregator/ and everything functioned
Ruby can add methods to the Number class and other core types to get
Ruby's File.open takes modes and options as arguments. Where do I find a complete
Ruby newbie here. I'm trying to use the Easyjour module ( http://easyjour.rubyforge.org/ ) from
Ruby's Time.parse() works for dates from Dec 14 1901 up Jan 18 2038 (this
ruby-1.8.7-p174 > [0,1][2..3] => [] ruby-1.8.7-p174 > [0,1][3..4] => nil In a 0-index setting
Ruby 1.9.2, RoR 3.0.1. When I run 'rspec spec' I get this error. Can't
The Ruby code: require 'nokogiri' f = open(doc2.xml) # f.each { |line| puts line}
Ruby has two different exceptions mechanisms: Throw/Catch and Raise/Rescue. Why do we have two?
Ruby setters—whether created by (c)attr_accessor or manually—seem to be the only methods that need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.