Skip to content

Commit

Permalink
clean up appraisal names for gemfile path
Browse files Browse the repository at this point in the history
  • Loading branch information
osheroff authored and Gabe Berke-Williams committed Mar 25, 2012
1 parent 97bba87 commit 75a4970
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/appraisal/appraisal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def gemfile_path
FileUtils.mkdir(gemfile_root)
end

::File.join(gemfile_root, "#{name}.gemfile")
::File.join(gemfile_root, "#{clean_name}.gemfile")
end

def bundle_command
Expand All @@ -45,6 +45,10 @@ def bundle_command
def gemfile_root
::File.join(Dir.pwd, "gemfiles")
end

def clean_name
name.gsub(/[^\w\.]/, '')
end
end
end

0 comments on commit 75a4970

Please sign in to comment.