Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting entries #8

Open
renich opened this issue May 8, 2016 · 0 comments
Open

Sorting entries #8

renich opened this issue May 8, 2016 · 0 comments

Comments

@renich
Copy link

renich commented May 8, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant