Skip to content

Instantly share code, notes, and snippets.

@jayroh
Forked from neweryankee/nextbus.bash
Created February 24, 2010 23:12
Show Gist options
  • Save jayroh/314003 to your computer and use it in GitHub Desktop.
Save jayroh/314003 to your computer and use it in GitHub Desktop.
$ cd nextbus/
$ git init
$ vim .gitignore
# add files to be ignored
$ git add .
$ git commit -m 'Initial commit'
# setup github repo, adding collaborator(s)
$ git remote add origin git@github.com:neweryankee/nextbus.git
$ git push origin master
$ vim Rakefile
# update Rakefile to instantiate a Jeweler::Tasks with project details
$ git add Rakefile
$ git commit -m 'Jeweler::Tasks in Rakefile'
$ rake -T
$ rake version:write # generates VERSION file at 0.0.0 and commit
$ rake gemspec
$ vim nextbus.gemspec
# update gemspec as needed
$ git add nextbus.gemspec
$ git commit -m 'Gemspec file'
$ vim LICENSE
# add license content
$ vim README.rdoc
# add readme content
$ rake gemspec # gemspec will inventory new license and readme files
$ git add .
$ git commit -m 'License and readme'
$ sudo rake install
$ cd ../ # move outside the current directory to test
$ irb
# require 'rubygems'
# require 'nextbus'
# Nextbus::Agency.all
$ cd nextbus/
$ git push origin master
$ rake git:release
$ rake gemcutter:release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment