New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pummel

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pummel

  • 0.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

pummel

Auto-tumble your RSS feed! (Default: my (Evaryont) pinboard.in links)

Dependencies

  • Rack
  • Sinatra
  • Ruby-OEmbed (vendored under vendor/ruby-oembed)
  • RSS (built-in in Ruby 1.8+)

Installation

$ git clone git://github.com/evaryont/pummel.git
$ cd pummel
$ edit pummel.rb
# Edit the file to point to your choice of RSS feed
$ rackup
# Open your browser to http://localhost:9292/

Demo (& Heroku)

This web application was designed for Heroku, and is immediately compatible. You can see a demo (and my bookmarks!) at Heroku.

Inspiration

I was just browsing around on the web, aimlessly when I stumbled on the OEmbed project, and subsequently found OohEmbed. The author created a small-ish javascript application called Dumble, which is exactly what Pummel is, but uses a user's del.icio.us bookmarks rather than Pinboard. As I don't really use del.icio.us but instead of pinboard.in, I decided to create my own version.

Here it is.

Technical Overview

This is relatively geeky overview of how Pummel works, so if you want to skip it, go right ahead.

At application initiation, an Iconv object is created, and the RSS feed is fetched and parsed.

Every time the index page is requested, loop through each item in the feed, and pull it's link. Check if the link is embeddable. If it is, determine the type and use the correct HTML. (Note: This perhaps should be done by Ruby-OEmbed itself.) If it can not be embedded, create a simple link. If there is an error when embedding, show the error in a <pre> block, and create a simple link.

Every time the refresh page is requested (http://.../refresh) pull the feed again and parse it. Then redirect the user to the index page.

Note on Patches/Pull Requests

  1. Fork the project.
  2. Make your feature addition or bug fix.
  3. Add tests for it. This is important so I don't break it in a future version unintentionally.
  4. Commit, do not mess with Rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  5. Send me a pull request. Bonus points for topic branches.

Copyright (C) 2010 Colin Shea. See LICENSE for details.

FAQs

Package last updated on 17 Feb 2010

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc