Rakefile in djspiewak-buildr-1.3.4.2 vs Rakefile in djspiewak-buildr-1.3.5

- old
+ new

@@ -26,18 +26,15 @@ end # Load the Gem specification for the current platform (Ruby or JRuby). def spec(platform = RUBY_PLATFORM[/java/] || 'ruby') - @specs ||= ['ruby', 'java'].inject({}) { |hash, platform| - $platform = platform - hash.update(platform=>Gem::Specification.load('buildr.gemspec')) + @specs ||= ['ruby', 'java'].inject({}) { |hash, spec_platform| + $platform = spec_platform + hash.update(spec_platform=>Gem::Specification.load('buildr.gemspec')) } @specs[platform] end - -# Right now used for documentation. -$github_url = 'http://github.com/buildr/buildr' # Tell us if we need sudo for various commands. def sudo_needed? Config::CONFIG['host_os'] !~ /windows|cygwin|bccwin|cygwin|djgpp|mingw|mswin|wince/i && !ENV['GEM_HOME'] end