Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added information about allowing localhost to version 1.0.0 changelog

  • Loading branch information...
commit c3c92bae9ee27cc2e22473267c3583047a762f59 1 parent 4c6c6a9
Bartosz Blimke authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 CHANGELOG.md
View
12 CHANGELOG.md
@@ -25,15 +25,25 @@
req = Net::HTTP::Get.new("/")
Net::HTTP.start("www.example.com") { |http| http.request(req) }.message # ===> "Internal Server Error"
-* Raising timeout errors (suggested by Jeffrey Jones)
+* Raising timeout errors (suggested by Jeffrey Jones) (compatibility with Ruby 1.8.6 by Mack Earnhardt)
stub_request(:any, 'www.example.net').to_timeout
RestClient.post('www.example.net', 'abc') # ===> RestClient::RequestTimeout
+* External requests can be disabled while allowing localhost (idea and implementation by Mack Earnhardt)
+
+ WebMock.disable_net_connect!(:allow_localhost => true)
+
+ Net::HTTP.get('www.something.com', '/') # ===> Failure
+
+ Net::HTTP.get('localhost:9887', '/') # ===> Allowed. Perhaps to Selenium?
+
+
### Bug fixes
* Fixed issue where Net::HTTP adapter didn't work for requests with body responding to read (reported by Tekin Suleyman)
+* Fixed issue where request stub with headers declared as nil was matching requests with non empty headers
## 0.9.1
Please sign in to comment.
Something went wrong with that request. Please try again.