Skip to content

Commit

Permalink
switch book to 4.1; ignore dev-only gemfile instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Mar 27, 2014
1 parent 01559ce commit 6549a7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def self.dependencies(rails, ruby)
rubysl
)

# ignore dev-only instructions
app_base.gsub! /^\s+if options\.dev\?\s+\[.*?\]/m, ''

pattern = /GemfileEntry\.github[ (]'([-\w]+)',\s*'([-\/\w]+)'/
app_base.scan(pattern) do |gem, repos|
libs << gem
Expand Down
2 changes: 1 addition & 1 deletion vagrant/bin/work
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export GORP_RAILS=$HOME/git/rails

if [[ "$@" = "book" ]]; then
set svn 40 200
set svn 41 200
fi

if [[ "$@" = "gems" ]]; then
Expand Down

0 comments on commit 6549a7d

Please sign in to comment.