Author: assaf
Date: Fri Jun 26 17:37:57 2009
New Revision: 788780
URL: http://svn.apache.org/viewvc?rev=788780&view=rev
Log:
Fixed: BUILDR-290 Dependencies cannot be downloaded over SSL.
Modified:
buildr/trunk/CHANGELOG
buildr/trunk/lib/buildr/core/transports.rb
Modified: buildr/trunk/CHANGELOG
URL:
http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=788780&r1=788779&r2=788780&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Fri Jun 26 17:37:57 2009
@@ -5,6 +5,7 @@
* Added: Mandriva (urpmi) installation support (with help from Franck
Villaume).
* Added: BUILDR-163 cobertura:check (Marko Sibakov, Daniel Spiewak).
* Change: Updated to Rake 0.8.7, RSpec 1.2.6 and JRuby-openssl 0.5.1.
+* Fixed: BUILDR-290 Dependencies cannot be downloaded over SSL.
1.3.4 (2009-04-21)
* Added: BUILDR-93 Add specs for ScalaCheck integration
Modified: buildr/trunk/lib/buildr/core/transports.rb
URL:
http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/transports.rb?rev=788780&r1=788779&r2=788780&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/transports.rb (original)
+++ buildr/trunk/lib/buildr/core/transports.rb Fri Jun 26 17:37:57 2009
@@ -16,7 +16,6 @@
require 'uri'
require 'net/http'
-Net.autoload :HTTPS, 'net/https'
# PATCH: On Windows, Net::SSH 2.0.2 attempts to load the Pageant DLLs which
break on JRuby.
$LOADED_FEATURES << 'net/ssh/authentication/pageant.rb' if RUBY_PLATFORM =~
/java/
gem 'net-ssh' ; Net.autoload :SSH, 'net/ssh'
@@ -365,7 +364,10 @@
else
http = Net::HTTP.new(host, port)
end
- http.use_ssl = true if self.instance_of? URI::HTTPS
+ if self.instance_of? URI::HTTPS
+ require 'net/https'
+ http.use_ssl = true
+ end
yield http
end