Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clean up appraisal names for gemfile path

  • Loading branch information...
commit 75a49708f60a5589bb51a82332ad2c7782f37014 1 parent 97bba87
@osheroff osheroff authored gabebw committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/appraisal/appraisal.rb
View
6 lib/appraisal/appraisal.rb
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.