Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskite committed Feb 24, 2011
2 parents 3e4ade9 + f8544e1 commit a7895d0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
16 changes: 11 additions & 5 deletions CHANGELOG.rdoc
@@ -1,18 +1,24 @@
== 0.6.1 / 2011-02-24

*Bug fixes

* Fix a bug preventing SSL connections from working

== 0.6.0 / 2011-02-17

* Major enhancements

* Added support for HTTP Basic Auth with URLs containing a username and password
* Added support for anonymous HTTP proxies
* Added support for HTTP Basic Auth with URLs containing a username and password
* Added support for anonymous HTTP proxies

* Minor enhancements

* Added read_timeout option to set the HTTP request timeout in seconds
* Added read_timeout option to set the HTTP request timeout in seconds

* Bug fixes

* Don't fatal error if a page request times out
* Fix double encoding of links containing %20
* Don't fatal error if a page request times out
* Fix double encoding of links containing %20

== 0.5.0 / 2010-09-01

Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.5.0
0.6.1
2 changes: 1 addition & 1 deletion anemone.gemspec
@@ -1,6 +1,6 @@
spec = Gem::Specification.new do |s|
s.name = "anemone"
s.version = "0.6.0"
s.version = "0.6.1"
s.author = "Chris Kite"
s.homepage = "http://anemone.rubyforge.org"
s.rubyforge_project = "anemone"
Expand Down
2 changes: 1 addition & 1 deletion lib/anemone/core.rb
Expand Up @@ -9,7 +9,7 @@

module Anemone

VERSION = '0.6.0';
VERSION = '0.6.1';

#
# Convenience method to start a crawl
Expand Down
5 changes: 3 additions & 2 deletions lib/anemone/http.rb
Expand Up @@ -160,15 +160,16 @@ def connection(url)
end

def refresh_connection(url)
http = Net::HTTP::Proxy(proxy_host, proxy_port)
http = Net::HTTP.new(url.host, url.port, proxy_host, proxy_port)

http.read_timeout = read_timeout if !!read_timeout

if url.scheme == 'https'
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
@connections[url.host][url.port] = http.start(url.host, url.port)

@connections[url.host][url.port] = http.start
end

def verbose?
Expand Down

0 comments on commit a7895d0

Please sign in to comment.