#!/usr/bin/env ruby # MIT Licence. require ‘net/http’ require ‘uri’ require ‘open-uri’ require ‘rubygems’ rescue LoadError require ‘hpricot’ require ‘cgi’ module Tumbler class TumblerWriteError < StandardError def initialize(*args) super @body = nil @code = nil end attr_accessor :body, :code end class Writer TUMBLR_API_WRITE = URI.parse(‘http://www.tumblr.com/api/write’) def initiali