<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,6 @@
 #!/usr/bin/env ruby
 
+$: &lt;&lt; File.expand_path(File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;lib&quot;))
 require &quot;ghi/cli&quot;
 $stdout.sync = true
 GHI::CLI::Executable.new.parse!(ARGV)</diff>
      <filename>bin/ghi</filename>
    </modified>
    <modified>
      <diff>@@ -4,50 +4,52 @@ require &quot;yaml&quot;
 module GHI
   VERSION = &quot;0.1.5&quot;
 
-  def self.login
-    return @login if defined? @login
-    @login = `git config --get github.user`.chomp
-    if @login.empty?
-      begin
-        print &quot;Please enter your GitHub username: &quot;
-        @login = gets.chomp
-        valid = user? @login
-        warn &quot;invalid username&quot; unless valid
-      end until valid
-      `git config --global github.user #@login`
+  class &lt;&lt; self
+    def login
+      return @login if defined? @login
+      @login = `git config --get github.user`.chomp
+      if @login.empty?
+        begin
+          print &quot;Please enter your GitHub username: &quot;
+          @login = gets.chomp
+          valid = user? @login
+          warn &quot;invalid username&quot; unless valid
+        end until valid
+        `git config --global github.user #@login`
+      end
+      @login
     end
-    @login
-  end
 
-  def self.token
-    return @token if defined? @token
-    @token = `git config --get github.token`.chomp
-    if @token.empty?
-      begin
-        print &quot;GitHub token (https://github.com/account): &quot;
-        @token = gets.chomp
-        valid = token? @token
-        warn &quot;invalid token for #{GHI.login}&quot; unless valid
-      end until valid
-      `git config --global github.token #@token`
+    def token
+      return @token if defined? @token
+      @token = `git config --get github.token`.chomp
+      if @token.empty?
+        begin
+          print &quot;GitHub token (https://github.com/account): &quot;
+          @token = gets.chomp
+          valid = token? @token
+          warn &quot;invalid token for #{login}&quot; unless valid
+        end until valid
+        `git config --global github.token #@token`
+      end
+      @token
     end
-    @token
-  end
 
-  private
+    private
 
-  def self.user?(username)
-    url = &quot;http://github.com/api/v2/yaml/user/show/#{username}&quot;
-    !YAML.load(Net::HTTP.get(URI.parse(url)))[&quot;user&quot;].nil?
-  rescue ArgumentError, URI::InvalidURIError
-    false
-  end
+    def user?(username)
+      url = &quot;http://github.com/api/v2/yaml/user/show/#{username}&quot;
+      !YAML.load(Net::HTTP.get(URI.parse(url)))[&quot;user&quot;].nil?
+    rescue ArgumentError, URI::InvalidURIError
+      false
+    end
 
-  def self.token?(token)
-    url  = &quot;http://github.com/api/v2/yaml/user/show/#{GHI.login}&quot;
-    url += &quot;?login=#{GHI.login}&amp;token=#{token}&quot;
-    !YAML.load(Net::HTTP.get(URI.parse(url)))[&quot;user&quot;][&quot;plan&quot;].nil?
-  rescue ArgumentError, NoMethodError, URI::InvalidURIError
-    false
+    def token?(token)
+      url  = &quot;http://github.com/api/v2/yaml/user/show/#{login}&quot;
+      url += &quot;?login=#{login}&amp;token=#{token}&quot;
+      !YAML.load(Net::HTTP.get(URI.parse(url)))[&quot;user&quot;][&quot;plan&quot;].nil?
+    rescue ArgumentError, NoMethodError, URI::InvalidURIError
+      false
+    end
   end
 end</diff>
      <filename>lib/ghi.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,7 @@ module GHI::CLI #:nodoc:
 
     def gets_from_editor(issue)
       if windows?
-        warn &quot;Please supply the message by using the -m option&quot;
+        warn &quot;Please supply the message with the -m option&quot;
         exit 1
       end
 
@@ -195,7 +195,7 @@ module GHI::CLI #:nodoc:
     end
 
     def windows?
-      RUBY_PLATFORM.include?(&quot;mswin&quot;)
+      RUBY_PLATFORM.include? &quot;mswin&quot;
     end
   end
 </diff>
      <filename>lib/ghi/cli.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ require &quot;ghi&quot;
 
 LOGGED_OUT_YAML = &lt;&lt;-YAML
 ---
-user: 
+user:
   id: 23
   login: defunkt
   name: Kristopher Walken Wanstrath
@@ -18,7 +18,7 @@ YAML
 
 LOGGED_IN_YAML = &lt;&lt;-YAML
 ---
-user: 
+user:
   id: 23
   login: defunkt
   name: Kristopher Walken Wanstrath
@@ -35,7 +35,7 @@ user:
   disk_usage: 50384
   owned_private_repo_count: 1
   private_gist_count: 0
-  plan: 
+  plan:
     name: mega
     collaborators: 60
     space: 20971520
@@ -54,7 +54,7 @@ describe GHI do
     GHI.should_receive(:`).once.and_return &quot;stephencelis\n&quot;
     GHI.login.should == &quot;stephencelis&quot;
   end
-  
+
   it &quot;should return token&quot; do
     GHI.should_receive(:`).once.and_return &quot;da39a3ee5e6b4b0d3255bfef95601890\n&quot;
     GHI.token.should == &quot;da39a3ee5e6b4b0d3255bfef95601890&quot;</diff>
      <filename>spec/ghi_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>89b9593afddaf3755b4f6c99ca10c68fd1d49067</id>
    </parent>
  </parents>
  <author>
    <name>Stephen Celis</name>
    <email>stephen@stephencelis.com</email>
  </author>
  <url>http://github.com/stephencelis/ghi/commit/db0d4a90861f49f2decfc7cb4af6d91924017454</url>
  <id>db0d4a90861f49f2decfc7cb4af6d91924017454</id>
  <committed-date>2009-08-05T16:23:17-07:00</committed-date>
  <authored-date>2009-08-05T16:23:17-07:00</authored-date>
  <message>Cleanup.</message>
  <tree>5240185a870c221a06bc6eb990bf3db6fcb2d078</tree>
  <committer>
    <name>Stephen Celis</name>
    <email>stephen@stephencelis.com</email>
  </committer>
</commit>
