From 95f9c3dc541a8dd7dea7aa485c1620259f9fc27d Mon Sep 17 00:00:00 2001 From: Postmodern Date: Sat, 7 Jan 2012 17:41:31 -0800 Subject: Moved lib/bundler/templates to data/bundler/templates. * This complies with the Ruby Packaging Specification (http://chneukirchen.github.com/rps/), lib/ is for code data/ is for static data. * This also prevents YARD from throwing warning as it attempts to parse Erb .rb files as Ruby code. --- lib/bundler/installer.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/bundler/installer.rb') diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb index 40d4fed2bc..e261f49f30 100644 --- a/lib/bundler/installer.rb +++ b/lib/bundler/installer.rb @@ -1,8 +1,11 @@ +require 'bundler/config' require 'erb' require 'rubygems/dependency_installer' module Bundler class Installer < Environment + include Config + class << self attr_accessor :post_install_messages end @@ -129,7 +132,7 @@ module Bundler def generate_bundler_executable_stubs(spec) bin_path = Bundler.bin_path - template = File.read(File.expand_path('../templates/Executable', __FILE__)) + template = File.read(File.join(Config::TEMPLATES,'Executable')) relative_gemfile_path = Bundler.default_gemfile.relative_path_from(bin_path) ruby_command = Thor::Util.ruby_command -- cgit v1.2.1