Skip to content

Instantly share code, notes, and snippets.

@neweryankee
Created February 18, 2010 20:12
Show Gist options
  • Save neweryankee/308000 to your computer and use it in GitHub Desktop.
Save neweryankee/308000 to your computer and use it in GitHub Desktop.
NextBus gem from scratch
$ jeweler nextbus --testunit --summary 'NextBus API client' --description 'NextBus API client'
$ cd nextbus/
$ bundle init
# Specify required gems and versions in Gemfile
$ bundle install
$ bundle lock
$ git add .
$ git ci -m 'Specify required gems and lock versions'
$ bundle pack
$ git add .
$ git ci -m 'Pack .gem files'
# Add Bundler requirement in test helper
$ git ci -a -m 'Require Bundler in test helper'
# Add Bundler requirement in application
$ git ci -a -m 'Require Bundler first thing in application code'
$ rake version:write
$ rake gemspec
$ git add .
$ git ci -m 'Gemspec'
# Setup github repo
$ git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment