diff options
author | Andre Medeiros <me@andremedeiros.info> | 2014-05-11 20:26:26 +0200 |
---|---|---|
committer | Andre Medeiros <me@andremedeiros.info> | 2014-09-12 15:23:33 +0200 |
commit | dda571e982805a49ad252fcf07765d6cb8c3d936 (patch) | |
tree | 0ce5a465b76905bcf25e20ddf0a168678680f8f4 | |
parent | cda14ce657a1e62957d0277348e43b8dadd5a501 (diff) | |
download | bundler-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.rb | 1 | ||||
-rw-r--r-- | lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/cli/gem.rb b/lib/bundler/cli/gem.rb index 36663419de..243f02856b 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 3fd81816f1..8cfc828f94 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 %>) |