pedrofranceschi / PastieRuby

Pastie.org implementation in Ruby.

Home Page:http://www.iBlogeek.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PastieRuby

DESCRIPTION:

Pastie.org implementation in Ruby.

INSTALL:

gem sources -a http://gems.github.com
sudo gem install pedrofranceschi-pastieruby

SYNOPSIS:

>> require 'pastieruby'

If you want to pastie some text, do:

>> myPastieUrl = pastie_text("This is a test", "plaintext", false)
=> "http://www.pastie.org/PASTIE_ID"

If you want to pastie a file, use:

>> myPastieUrl = pastie_file("/home/myuser/desktop/testing.txt")
=> "http://www.pastie.org/PASTIE_ID"

REQUIREMENTS:

  • mechanize

  • nokogiri

TODO:

  • Implement more file extensions in the pastie file function.

ABOUT:

2009 © Developed by pH (Pedro Henrique Cavallieri Franceschi) You can find me at pedrohfranceschi@gmail.com or @pedroh96. www.iBlogeek.com - 2006-2009 ©

About

Pastie.org implementation in Ruby.

http://www.iBlogeek.com/


Languages

Language:Ruby 100.0%