rakelib/setup.rake in assaf-buildr-1.3.3 vs rakelib/setup.rake in assaf-buildr-1.3.4
- old
+ new
@@ -29,14 +29,10 @@
ENV['JAVA_HOME'] = java.lang.System.getProperty('java.home')
end
fail "Please set JAVA_HOME first #{'(no need to run as sudo)' if ENV['USER'] == 'root'}" unless ENV['JAVA_HOME']
end
-def set_gem_home
- ENV['GEM_HOME'] ||= Gem.path.find { |f| File.writable?(f) }
-end
-
def sudo_needed?
!( windows? || ENV['GEM_HOME'] )
end
# Finds and returns path to executable. Consults PATH environment variable.
@@ -76,10 +72,9 @@
# Setup environment for running this Rakefile (RSpec, Docter, etc).
desc "If you're building from sources, run this task first to setup the necessary dependencies."
missing = spec.dependencies.select { |dep| Gem::SourceIndex.from_installed_gems.search(dep).empty? }
task 'setup' do
set_java_home
- set_gem_home
missing.each do |dep|
install_gem dep.name, dep.version_requirements
end
end
puts "Missing Gems #{missing.join(', ')}, please run rake setup first!" unless missing.empty?