
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Since
v1.0.0
, feedjira replaces feedzirra. All future development has moved to feedjira-redis. Please update your projects accordingly.
FeedzirraRedis uses Datamapper's dm-redis-adapter to provide a persistance layer for the Feedzirra RSS/Atom feed consumption library.
FeedzirraRedis can be used in much the same fashion as Feedzirra itself. One common use for FeedzirraRedis is to avoid updating the feed with every page hit, so you could update the feed from a Rakefile on a cron job instead.
DataMapper.setup(:default, { :adapter => 'redis' })
FEED_URL = 'https://github.com/logankoester/feedzirra-redis/commits/master.atom'
namespace :blog do
desc 'Grab the latest blog posts'
task :update do
FeedzirraRedis::Feed.fetch_and_parse(FEED_URL)
end
end
FeedzirraRedis::Feed is actually a Datamapper model that wraps the interface to Feedzirra::Feed with some code to add persistence. Feeds are uniquely identified by their feed_url
property, so when you call fetch_and_parse
or update
a second time the new entries are associated with the original feed.
Run rake blog:update
to grab some entries.
Now you just need to fetch the object your Rakefile created.
@feed = FeedzirraRedis::Feed.first(:feed_url => FEED_URL)
FeedzirraRedis::Entry is also a Datamapper model, but it shares the same properties as Feedzirra::Entry.
%h1= @feed.title
- @feed.entries.each do |e|
%h2= e.title
%p= e.content
See the Feedzirra documentation or read the code (it's short!) for further details.
Copyright (c) 2011-2014 Logan Koester. See LICENSE.txt for further details.
FAQs
Unknown package
We found that feedzirra-redis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.