Navigation Menu

Skip to content

Commit

Permalink
Rails 3.1 and mysql2 > 0.3 play nice together.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Jun 18, 2011
1 parent 5b9b14f commit ab8b6df
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bin/refinerycms
Expand Up @@ -261,13 +261,6 @@ module Refinery
refinery_user_defined_gems = refinery_gemfile_contents.match(/# USER DEFINED(.*)# END USER DEFINED/m)
refinery_user_defined_gems = refinery_user_defined_gems[1] unless refinery_user_defined_gems.nil?

if @options[:database][:adapter] == 'mysql'
app_gemfile_contents = app_gemfile.read
app_gemfile.open('w') do |f|
f.write app_gemfile_contents.gsub %r{gem 'mysql2'.*}, "gem 'mysql2', '~> 0.2.7'"
end
end

app_gemfile.open('a') do |f|
f.write "\n#{refinery_gems}\n"
@options[:gems] = ([refinery_user_defined_gems] | [@options[:gems]]).flatten.compact
Expand Down

0 comments on commit ab8b6df

Please sign in to comment.