app_generators/newgem/newgem_generator.rb in newgem-1.2.0 vs app_generators/newgem/newgem_generator.rb in newgem-1.2.1

- old
+ new

@@ -149,10 +149,10 @@ @version = options[:version].to_s.split(/\./) @version_str = @version.join('.') @author = options[:author] @email = options[:email] unless @author && @email - require File.dirname(__FILE__) + '/../../lib/newgem/rubyforge-ext' unless Newgem.const_defined?("Rubyforge") + require File.dirname(__FILE__) + '/../../lib/newgem/rubyforge-ext' unless Object.const_defined?("Newgem") && Newgem.const_defined?("Rubyforge") rubyforge_config = Newgem::Rubyforge.new @author ||= rubyforge_config.full_name @email ||= rubyforge_config.email end @bin_names_list = (options[:bin_name] || "").split(',')