<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,29 +13,15 @@ Tumblr does not have a way to post code snippets simply and the current solution
 To make everything pretty, I have added the following CSS rules to my tumblr
 
   .gist {
-      line-height: 1.1em;
-      color: #ffffff;
+      line-height: 1.3em !important;
+      color: #ffffff !important;
   }
 
   .gist .gist-file {
-      border: 0;
+      border: 0 !important;
   }
 
   .gist .gist-file .gist-data {
-      background-color: transparent;
+      background-color: transparent !important;
+      padding-bottom: 1em;
   }
-
-  .gist .gist-file .gist-data .gist-highlight {
-      font-family:'Bitstream Vera Sans Mono','Courier',monospace;
-      padding-bottom: 0.5em;
-  }
-
-  .gist .gist-file .gist-meta {
-      margin-top: 0.5em;
-  }
-
-
-As well as adding the following to the tumblr template
-
-  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;http://gist.github.com/stylesheets/gist/embed.css&quot;/&gt;
-  </diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../lib/gistr')
 require 'optparse'
 require 'ostruct'
 
-opts = OpenStruct.new(:private =&gt; 1)
+opts = OpenStruct.new
 
 op = OptionParser.new do |o|
   o.on &quot;-e&quot;, &quot;--email=EMAIL&quot;, &quot;Tumblr email address&quot; do |email|</diff>
      <filename>bin/gistr</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,4 @@
-
 require 'open-uri'
-require 'activesupport'
 require 'hpricot'
 
 class Gistr
@@ -15,17 +13,15 @@ class Gistr
   def gist_code
     return @gist_code if @gist_code
 
-    js = open(&quot;http://gist.github.com/#{@gist_id}.js&quot;).read
-    
-    # Unescape the js into HTML
-    code = js.scan(/document.write\('([^']*)'/).flatten.last.gsub(&quot;\\\n&quot;, &quot;\n&quot;)
-
-    h = Hpricot(code)
+    # Use the secret .pibb format
+    code = open(&quot;http://gist.github.com/#{@gist_id}.pibb&quot;).read
 
-    # Remove the &lt;pre&gt; tag.
+    # Remove the &lt;pre&gt; tag
     #
     # Tumblr wrap lines at of HTML at times and having the additional 
     # whitespace in a &lt;pre&gt; is very undesirable.
+    h = Hpricot(code)
+
     h.search('pre').each do |pre|
       pre.swap(pre.inner_html)
     end
@@ -35,10 +31,13 @@ class Gistr
 
   private
   def post_to_tumblr(email, password, title, body)
+    post_private = post_private ? 1 : 0
+
     Net::HTTP.start(&quot;www.tumblr.com&quot;) do |http|
       req = Net::HTTP::Post.new(&quot;/api/write&quot;)
       req.set_form_data :email =&gt; email, :password =&gt; password,
-        :title =&gt; title, :body =&gt; body, :format =&gt; 'html'
+        :title =&gt; title, :body =&gt; body, :format =&gt; 'html',
+        :private =&gt; post_private
 
       http.request(req)
     end</diff>
      <filename>lib/gistr.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>96894c6263bccb163ae0bd7f8191f1b79d4f4440</id>
    </parent>
  </parents>
  <author>
    <name>Eric Lindvall</name>
    <email>eric@5stops.com</email>
  </author>
  <url>http://github.com/eric/gistr/commit/6fb99fb82c6021113600451e93ca8693ebe814a7</url>
  <id>6fb99fb82c6021113600451e93ca8693ebe814a7</id>
  <committed-date>2008-08-10T20:45:27-07:00</committed-date>
  <authored-date>2008-08-10T20:45:27-07:00</authored-date>
  <message>Update gist fetching from using .js to getting newly found .pibb format</message>
  <tree>7cc1bd6c36c20c7f507aacb3446d09e43901dae7</tree>
  <committer>
    <name>Eric Lindvall</name>
    <email>eric@5stops.com</email>
  </committer>
</commit>
