Pastie.org implementation in Ruby.
gem sources -a http://gems.github.com sudo gem install pedrofranceschi-pastieruby
>> 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"
-
mechanize
-
nokogiri
-
Implement more file extensions in the pastie file function.
2009 © Developed by pH (Pedro Henrique Cavallieri Franceschi) You can find me at [email protected] or @pedroh96. www.iBlogeek.com - 2006-2009 ©