Skip to content

Sorting entries #8

Description

@renich

Hello,

I've aggregating two feeds and sorting them by date. Here's the code:

feeds = [
    'http://blog.woralelandia.com/tag/mi-musica/feed/',
    'http://mexicoindie.net/feed/'
]

stories = []
feeds.each do |f|
    feed = FeedNormalizer::FeedNormalizer.parse f
    stories.push( *feed.entries )
end

stories.sort_by! { |k| k[ :date_published ] }

SystemStackError: stack level too deep
from /home/renich/.gem/ruby/2.2.0/gems/feed-normalizer-1.5.2/lib/structures.rb:14:in `rescue in method_missing'

I am getting 20 stories so it shouldn't be much. Could you help me out with this and maybe add a suggestion at the readme?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions