From 423fb66175e788179ad5cc6185d7989299e1c360 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 23 Jul 2012 10:34:03 -0400 Subject: [PATCH] update docs a bit --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8ad3215..538294b 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,14 @@ gem 'rails', '3.2.3' # gem 'rack-rewrite' gems 'rake', 'nokogiri', 'rack-rewrite' +# define custom gem properties that get expanded to ones bundler understands +property :github, :git => 'git://github.com/$1/%s.git' + # values to the key are [ value ].flatten-ed and the $s are replaced on the fly, + # with $1 being the first parameter given + +# set up defaults for all gems in a particular environment +defaults_for env(:local), :path => '../%s' # the %s is the name of the gem + no_deployment do group :development, :test do gem 'rspec', '~> 2.6.0' @@ -46,9 +54,6 @@ no_deployment do # set up defaults for certain gems that are probably being used in envs defaults_for dev_gems, :require => nil - # set up defaults for all gems in a particular environment - defaults_for env(:local), :path => '../%s' # the %s is the name of the gem - env :local do # expands to: # @@ -62,7 +67,7 @@ no_deployment do # # gem 'flowerbox', :git => 'git://github.com/johnbintz/flowerbox.git', :require => nil # gem 'guard-flowerbox', :git => 'git://github.com/johnbintz/guard-flowerbox.git', :require => nil - gems dev_gems, :git => 'git://github.com/johnbintz/%s.git' + gems dev_gems, :github => 'johnbintz' end # only expanded on Mac OS X @@ -122,7 +127,7 @@ shouldn't be changing the main versions of your application gems. It WORKSFORME ### Getting local gems all set up `penchant bootstrap` will go through and find all git repo references in your `Gemfile.penchant` and -will download them to the specified directory (by default, '..'). This means blocks like this +will download them to the specified directory (by default, `..`). This means blocks like this will work as expected when you `penchant bootstrap` and then `penchant gemfile local`: ``` ruby