<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>acts_as_streeteasy</title>
    <link>http://acts.as.streeteasy.com</link>
    <language>en</language>
    <webMaster>dev@streeteasy.com (Matt Walker)</webMaster>
    <copyright>Copyright 2007-2008</copyright>
    <ttl>60</ttl>
    <pubDate>Fri, 04 Jan 2008 10:46:50 GMT</pubDate>
    <description>because we're as dumb as you are!</description>
    <item>
      <title>Migrating from Test::Unit to RSpec</title>
      <link>http://acts.as.streeteasy.com/archives/2008/1/4/migrating_from_testunit_to_rspec/</link>
      <pubDate>Fri, 04 Jan 2008 10:43:00 GMT</pubDate>
      <guid>http://acts.as.streeteasy.com/archives/2008/1/4/migrating_from_testunit_to_rspec/</guid>
      <author>jacqui@streeteasy.com (Jacqui)</author>
      <description>&lt;p&gt;We recently moved all of our test suite from Test::Unit to RSpec with great ease and success. I wrote up a summary of our process so that you too could get your app on specs.&lt;/p&gt;&lt;p&gt;You can check out &lt;a href="http://www.devchix.com/2008/01/04/migrating-from-testunit-to-rspec/"&gt;the original article here&lt;/a&gt;.&lt;/p&gt;</description>
      <category domain="http://acts.as.streeteasy.com/archives/tags/bdd">bdd</category>
      <category domain="http://acts.as.streeteasy.com/archives/tags/rspec">rspec</category>
      <category domain="http://acts.as.streeteasy.com/archives/tags/testing">testing</category>
    </item>
    <item>
      <title>Git in your prompt</title>
      <link>http://acts.as.streeteasy.com/archives/2007/12/19/git_in_your_prompt/</link>
      <pubDate>Wed, 19 Dec 2007 05:59:00 GMT</pubDate>
      <guid>http://acts.as.streeteasy.com/archives/2007/12/19/git_in_your_prompt/</guid>
      <author>cj@streeteasy.com (Corey)</author>
      <description>&lt;p&gt;I like to know what git branch I have checked out. A constant, in-my-face acknowledgment that I am not committing  changes to some obscure branch I checked out the night before. It&amp;#8217;s easy enough to merge these changes into the correct branch, but I need more.&lt;/p&gt;&lt;p&gt;The solution? Put it in your prompt.&lt;/p&gt;&lt;p&gt;When I&amp;#8217;m in a git repo with the master branch checked-out I want my prompt to look like this &lt;em&gt;my_git_project(&lt;strong&gt;master&lt;/strong&gt;) %&lt;/em&gt;&lt;br/&gt;otherwise leave out the git stuff &lt;em&gt;~ %&lt;/em&gt;&lt;/p&gt;Here is a simplified version of what I stuck in my ~/.zshrc file.&lt;br/&gt;&lt;pre&gt;setopt prompt_subst&lt;br/&gt;parse_git_branch() {&lt;br/&gt;  git branch &amp;mdash;no-color 2&amp;gt; /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'&lt;br/&gt;}&lt;br/&gt;PROMPT='%c$(parse_git_branch) %% '&lt;br/&gt;&lt;/pre&gt;&lt;p&gt;How this works&lt;/p&gt;&lt;p&gt;&lt;strong&gt;setopt prompt_subst:&lt;/strong&gt; Tells zsh that I want it to evaluate my prompt string every time it is printed.&lt;br/&gt;&lt;strong&gt;parse_git_branch:&lt;/strong&gt; Lists all the branches in the current git repo. Sed removes everything but the checked-out branch from the git output. If the current directory isn&amp;#8217;t in a git repo, then it just redirects the errors to /dev/null&lt;br/&gt;&lt;strong&gt;&lt;span class="caps"&gt;PROMPT&lt;/span&gt;=&amp;#8217;&lt;span&gt;c$(parse_git_branch)&lt;/span&gt; %% &amp;#8217;:&lt;/strong&gt; Prints out the current directory name and the git branch if it exists. Remember to you &amp;#8217; instead of &amp;#8221; because otherwise zsh won&amp;#8217;t evaluate the parse_git_branch function.&lt;/p&gt;For you bash folks this should work nicely.&lt;br/&gt;&lt;pre&gt;function parse_git_branch {&lt;br/&gt;  git branch &amp;mdash;no-color 2&amp;gt; /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'&lt;br/&gt;}&lt;br/&gt;PS1="\w\$(parse_git_branch) $ " &lt;br/&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;update&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://nubyonrails.com/"&gt;Geoffrey Grosenbach&lt;/a&gt; (aka TopFunky) created a version for tcsh as well. The gist of it is&amp;#8230;&lt;/p&gt;&lt;pre&gt;setenv GIT_BRANCH_CMD "sh -c 'git branch &amp;mdash;no-color 2&amp;gt; /dev/null' | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'" &lt;br/&gt;set prompt="[$HOST %~ `$GIT_BRANCH_CMD`]" &lt;br/&gt;&lt;/pre&gt;&lt;p&gt;But you can get a more detailed example &lt;a href="http://peepcode.com/system/uploads/2007/setprompt.txt"&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
      <category domain="http://acts.as.streeteasy.com/archives/tags/git">git</category>
      <category domain="http://acts.as.streeteasy.com/archives/tags/unix">unix</category>
    </item>
    <item>
      <title>OHAI</title>
      <link>http://acts.as.streeteasy.com/archives/2007/12/8/welcome_to_simplelog_this_is/</link>
      <pubDate>Sat, 08 Dec 2007 06:02:00 GMT</pubDate>
      <guid>http://acts.as.streeteasy.com/archives/2007/12/8/welcome_to_simplelog_this_is/</guid>
      <author>sd@notso.net (Sebastian)</author>
      <description>&lt;p&gt;Because the world really needs more of this:&lt;/p&gt;

&lt;pre&gt;
cj: The de-conorize Global! 
http://www.thelucid.com/articles/2007/11/07/minimize-parentheses-in-textmate
conor: I will write maximize-parentheses!
jd: PARENTHESES!? THIS IS SPARTAAAA!!!!!!11
conor: lolparens
jd: (O HAI!)
cj: TONIGHT WE DINE ON LISP!
jd: http://nessparta.ytmnd.com/
&lt;/pre&gt;</description>
      <category domain="http://acts.as.streeteasy.com/archives/tags/about">about</category>
    </item>
  </channel>
</rss>
