aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Medeiros <me@andremedeiros.info>2014-05-11 20:26:26 +0200
committerAndre Medeiros <me@andremedeiros.info>2014-09-12 15:23:33 +0200
commitdda571e982805a49ad252fcf07765d6cb8c3d936 (patch)
tree0ce5a465b76905bcf25e20ddf0a168678680f8f4
parentcda14ce657a1e62957d0277348e43b8dadd5a501 (diff)
downloadbundler-dda571e982805a49ad252fcf07765d6cb8c3d936.tar.gz
Create makefile with path `underscored_name`/`underscored_name`
This fixes compilation issues in Windows. Closes #3028
-rw-r--r--lib/bundler/cli/gem.rb1
-rw-r--r--lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/cli/gem.rb b/lib/bundler/cli/gem.rb
index 36663419..243f0285 100644
--- a/lib/bundler/cli/gem.rb
+++ b/lib/bundler/cli/gem.rb
@@ -29,6 +29,7 @@ module Bundler
:name => name,
:underscored_name => underscored_name,
:namespaced_path => namespaced_path,
+ :makefile_path => "#{underscored_name}/#{underscored_name}",
:constant_name => constant_name,
:constant_array => constant_array,
:author => git_user_name.empty? ? "TODO: Write your name" : git_user_name,
diff --git a/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt b/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt
index 3fd81816..8cfc828f 100644
--- a/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt
+++ b/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt
@@ -1,3 +1,3 @@
require "mkmf"
-create_makefile(<%=config[:underscored_name].inspect%>)
+create_makefile(<%= config[:makefile_path].inspect %>)