Skip to content

Commit

Permalink
Fix issues that arose from my previous commit. Thoroughly tested.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenheidel committed Jul 6, 2010
1 parent 94a97cb commit a8b4111
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/refinery
Expand Up @@ -86,15 +86,15 @@ unless (app_path = ARGV.shift).nil? or app_path.length == 0

# read in the Gemfile and write it back out with the refinerycms gem enabled.
(lines = refinery_root.join('Gemfile').open('r').read.split("\n")).each do |line|
line.gsub!("#gem 'refinerycms'", "gem 'refinerycms'")
line.gsub!(/\#*\s?gem 'refinerycms'/, "gem 'refinerycms'")

# Ensure that the correct database gem libraries are included for the database adapter
# that the user has specified in the refinery install command.
if line =~ /\#db\_adapter\=/
if line =~ %r{#db_adapter=#{db_adapter}}
line.gsub!(/^(\#*\ ?gem)/, 'gem')
line.gsub!(/^(\#*\s?gem)/, 'gem')
else
line.gsub!(/^(\ ?gem)/, '#gem')
line.gsub!(/^(\s?gem)/, '# gem')
end
end
end
Expand Down

0 comments on commit a8b4111

Please sign in to comment.