public
Description: Drop dead easy subversion commit notifications.
Homepage: http://snitch.rubyforge.org
Clone URL: git://github.com/jnunemaker/snitch.git
Click here to lend your support to: snitch and make a donation at www.pledgie.com !
snitch /
name age message
file CHANGELOG.txt Wed Dec 12 18:06:01 -0800 2007 added email service from patch, made project na... [jnunemaker]
file History.txt Loading commit data...
file MIT-LICENSE Mon Oct 22 21:00:50 -0700 2007 added mit license git-svn-id: http://svn.addi... [jnunemaker]
file Manifest.txt
file PostInstall.txt
file README.txt
file Rakefile
file TODO.txt Wed Dec 12 18:06:01 -0800 2007 added email service from patch, made project na... [jnunemaker]
directory bin/
directory config/
directory lib/
directory script/
file setup.rb Sun Mar 25 20:52:46 -0700 2007 added first release of snitch git-svn-id: htt... [jnunemaker]
file snitch.gemspec
directory tasks/
directory test/
directory website/
README.txt
=Snitch
Snitch is an git/subversion post-commit service integration helper. SCMs typically have a post commit hook which is 
executed each time you commit a change to a repository. Snitch makes it really easy to hook into the post-commit and 
send the commit message along with the files changed to various services on the web. 

Snitch currently works with campfire, twitter and email.

==Installation:

NOTE: the twitter gem will not work with a 0.5+ version of hpricot at this time due to a xml parsing bug

1. sudo gem install hpricot --source http://code.whytheluckystiff.net -v 0.4.86 
  
2. sudo gem install twitter tinder snitch

   Needed for the git support:

   sudo gem sources -a http://gems.github.com/ 
   sudo gem install mojombo-grit open4 mime-types


3. Create a configuration file (default is /home/deploy/.snitch) that looks like the following (be sure to fill in all 
the values). Be sure that none of the tabs from below get stay in the config file. It gets parse by yaml so formatting 
is important.

  # SNITCH START
  # what is the location of svnlook (you can find this on *nix boxes by typing `which svnlook`)
  svnlook: /usr/bin/svnlook

  # If you want git support, comment out the line above and uncomment this one:
  # git: true

  # what services would you like to send commit messages to?
  services:
    :campfire:
      :subdomain: 
      :login: 
      :password: 
      :room: Development
    :twitter:
      :login: 
      :password: 
  # SNITCH END

4. Create or edit the post-commit file inside your repository to look like the following. Be sure to edit the 
CONFIG_FILE variable to wherever you created your config file in step 3.

  #!/bin/sh
  REPOS="$1"
  REV="$2"
  CONFIG_FILE="/home/deploy/.snitch"

  snitch $REPOS $REV $CONFIG_FILE 2> /tmp/snitch