Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

clean up appraisal names for gemfile path

  • Loading branch information...
commit 75a49708f60a5589bb51a82332ad2c7782f37014 1 parent 97bba87
osheroff authored March 14, 2012 gabebw committed March 25, 2012

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  lib/appraisal/appraisal.rb
6  lib/appraisal/appraisal.rb
@@ -33,7 +33,7 @@ def gemfile_path
33 33
         FileUtils.mkdir(gemfile_root)
34 34
       end
35 35
 
36  
-      ::File.join(gemfile_root, "#{name}.gemfile")
  36
+      ::File.join(gemfile_root, "#{clean_name}.gemfile")
37 37
     end
38 38
 
39 39
     def bundle_command
@@ -45,6 +45,10 @@ def bundle_command
45 45
     def gemfile_root
46 46
       ::File.join(Dir.pwd, "gemfiles")
47 47
     end
  48
+
  49
+    def clean_name
  50
+      name.gsub(/[^\w\.]/, '')
  51
+    end
48 52
   end
49 53
 end
50 54
 

0 notes on commit 75a4970

Please sign in to comment.
Something went wrong with that request. Please try again.