diff options
author | Andre Arko <andre@arko.net> | 2010-08-14 22:58:34 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-08-15 13:13:10 -0700 |
commit | 0a2a4df098625b4263c14ca2eefe1046aedfbfa7 (patch) | |
tree | 9bf1635a6634ce153fe0ba2f97b125862a03da51 /lib/bundler/cli.rb | |
parent | 5d242793e958c6716861d4e37f3320229a5b16fc (diff) | |
download | bundler-0a2a4df098625b4263c14ca2eefe1046aedfbfa7.tar.gz |
Create gem version files that work with nested constants
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r-- | lib/bundler/cli.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index e22b3f0d51..7e5ae32636 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -430,8 +430,9 @@ module Bundler constant_name = name.split('_').map{|p| p.capitalize}.join constant_name = constant_name.split('-').map{|q| q.capitalize}.join('::') if constant_name =~ /-/ + constant_array = constant_name.split('::') FileUtils.mkdir_p(File.join(target, 'lib', name)) - opts = {:name => name, :constant_name => constant_name} + opts = {:name => name, :constant_name => constant_name, :constant_array => constant_array} template(File.join('newgem', 'Gemfile.tt'), File.join(target, 'Gemfile'), opts) template(File.join('newgem', 'Rakefile.tt'), File.join(target, 'Rakefile'), opts) template(File.join('newgem', 'gitignore.tt'), File.join(target, '.gitignore'), opts) |