github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

Floppy / rubymarks

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 5
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A Ruby gem (and Rails plugin) which generates URLs for social bookmarking services — Read more

  cancel

http://github.com/Floppy/rubymarks

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

update doc link 
James Smith (author)
Sun Nov 15 07:46:33 -0800 2009
commit  7725e9abc24f0bc5669e2df713d1703ed8d6ad77
tree    6ab38e42fe577e3d6be6cdb7550c5455fb15113c
parent  6ee8cb786c4506c5c6014a51e97dada81990f434
rubymarks /
name age
history
message
file .gitignore Wed Oct 01 15:40:15 -0700 2008 initial version of bookmark generation [Floppy]
file COPYING Wed Oct 01 15:40:15 -0700 2008 initial version of bookmark generation [Floppy]
file README Sun Nov 15 07:46:33 -0800 2009 update doc link [James Smith]
file Rakefile Loading commit data...
file init.rb
directory lib/
directory rails/ Thu Oct 02 12:28:41 -0700 2008 Add more services and make work as Rails plugin [Floppy]
file rubymarks.gemspec Thu Oct 02 12:36:38 -0700 2008 forgot include services file in gemspec [Floppy]
directory spec/
README
== Rubymarks

A Ruby gem (and Rails plugin) which generates links for social bookmarking
services.

Licensed under the MIT license (See COPYING file for details)

Author: James Smith (james@floppy.org.uk / http://www.floppy.org.uk)

Homepage: http://github.com/Floppy/rubymarks

Documentation: http://rdoc.info/projects/Floppy/rubymarks/

== INSTALLATION

1) Enable gems from gemcutter, if you haven't already done so:
    > sudo gem install gemcutter
    > sudo gem tumble

2) Install gem
    > sudo gem install rubymarks

== RAILS PLUGIN

This gem can be used as a Rails plugin. You can either extract it into
vendor/plugins, or use the new-style config.gem command in environment.rb. For
example:

    config.gem "Floppy-rubymarks", :lib => "rubymarks", :source => "http://gems.github.com", :version => '>= 0.0.1'

== USAGE

Once you've done that, you can use bookmark_tag in your views and controllers to
generate an HTML link tag, or bookmark_url to just generate the URL.
Examples:

    bookmark_url :tinyurl, "http://www.google.com"
    bookmark_tag :facebook, "http://www.google.com", :title => "Google"

Both functions accepts the following options - not all work with all services.

    :title - a title for the link (string)
    :text - some explanatory text to go with the link (string)
    :new_window - open the bookmark link in a new window (true or false)

Services supported are:

    :facebook
    :digg
    :delicious
    :stumbleupon
    :twitter
    :reddit
    :windowslive
    :google
    :myaol
    :magnolia
    :technorati
    :newsvine
    :myspace
    :tinyurl
    :snurl
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server