Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

supr

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supr

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Supr

Supr is a gem wrapping Stumble Upon's Su.pr url shortening service. The api is relatively new and thin on features, but this gem gives you access to the shorten and expand methods. More support for the post method is planned. Statistic information is still covered by the api but when that is exposed, it will be added here.

Supr uses semantic versioning and the api should be considered unstable until version 1.0.0. Consider yourself warned.

Installation

gem install supr

Usage

Create a Bitly client using your username and api key as follows:

supr_client = Supr.new(username, api_key)

You can then use that client to shorten or expand urls as so:

supr_client.shorten('http://www.google.com') supr_client.shorten('http://www.google.com') supr_client.expand('xJs4E')

Special Thanks

This gem is mostly based on the bitly gem written by Phil Nash. Special thanks to him for the code base to start with.

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • 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)
  • Send me a pull request. Bonus points for topic branches.

Copyright (c) 2010 Blake Chambers. See LICENSE for details.

FAQs

Package last updated on 04 Nov 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