webmock 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,8 @@ class TestWebMock < Test::Unit::TestCase
33
33
  end
34
34
 
35
35
  def test_error_on_non_stubbed_request
36
- assert_fail("Real HTTP connections are disabled. Unregistered request: GET http://www.example.net/") do
36
+ default_ruby_headers = (RUBY_VERSION >= "1.9.1") ? "{'Accept'=>'*/*', 'User-Agent'=>'Ruby'}" : "{'Accept'=>'*/*'}"
37
+ assert_fail("Real HTTP connections are disabled. Unregistered request: GET http://www.example.net/ with headers #{default_ruby_headers}") do
37
38
  http_request(:get, "http://www.example.net/")
38
39
  end
39
40
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{webmock}
8
- s.version = "0.8.2"
8
+ s.version = "0.9.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bartosz Blimke"]
12
- s.date = %q{2010-01-17}
12
+ s.date = %q{2010-01-31}
13
13
  s.description = %q{WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.}
14
14
  s.email = %q{bartosz.blimke@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  ]
19
19
  s.files = [
20
20
  ".gitignore",
21
- "CHANGELOG",
21
+ "CHANGELOG.md",
22
22
  "LICENSE",
23
23
  "README.md",
24
24
  "Rakefile",
@@ -40,12 +40,14 @@ Gem::Specification.new do |s|
40
40
  "lib/webmock/request_signature.rb",
41
41
  "lib/webmock/request_stub.rb",
42
42
  "lib/webmock/response.rb",
43
+ "lib/webmock/responses_sequence.rb",
43
44
  "lib/webmock/rspec.rb",
44
45
  "lib/webmock/test_unit.rb",
45
46
  "lib/webmock/util/hash_counter.rb",
46
47
  "lib/webmock/util/headers.rb",
47
48
  "lib/webmock/util/uri.rb",
48
49
  "lib/webmock/webmock.rb",
50
+ "spec/example_curl_output.txt",
49
51
  "spec/httpclient_spec.rb",
50
52
  "spec/httpclient_spec_helper.rb",
51
53
  "spec/net_http_spec.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartosz Blimke
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-17 00:00:00 +00:00
12
+ date: 2010-01-31 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -53,7 +53,7 @@ extra_rdoc_files:
53
53
  - README.md
54
54
  files:
55
55
  - .gitignore
56
- - CHANGELOG
56
+ - CHANGELOG.md
57
57
  - LICENSE
58
58
  - README.md
59
59
  - Rakefile
@@ -75,12 +75,14 @@ files:
75
75
  - lib/webmock/request_signature.rb
76
76
  - lib/webmock/request_stub.rb
77
77
  - lib/webmock/response.rb
78
+ - lib/webmock/responses_sequence.rb
78
79
  - lib/webmock/rspec.rb
79
80
  - lib/webmock/test_unit.rb
80
81
  - lib/webmock/util/hash_counter.rb
81
82
  - lib/webmock/util/headers.rb
82
83
  - lib/webmock/util/uri.rb
83
84
  - lib/webmock/webmock.rb
85
+ - spec/example_curl_output.txt
84
86
  - spec/httpclient_spec.rb
85
87
  - spec/httpclient_spec_helper.rb
86
88
  - spec/net_http_spec.rb
data/CHANGELOG DELETED
@@ -1,36 +0,0 @@
1
- == 0.8.2
2
- * Fixed issue where WebMock was not closing IO object passed as response body after reading it.
3
- * Ruby 1.9.2 compat: Use File#expand_path for require path because "." will not be included in LOAD_PATH since Ruby 1.9.2
4
-
5
- == 0.8.1
6
- * Fixed HTTPClient adapter compatibility with Ruby 1.8.6 (reported by Piotr Usewicz)
7
- * Net:HTTP adapter now handles request body assigned as Net::HTTP::Post#body attribute (fixed by Mack Earnhardt)
8
- * Fixed issue where requests were not matching stubs with Accept header set.(reported by Piotr Usewicz)
9
- * Fixed compatibility with Ruby 1.9.1, 1.9.2 and JRuby 1.3.1 (reported by Diego E. “Flameeyes” Pettenò)
10
- * Fixed issue with response body declared as IO object and multiple requests (reported by Niels Meersschaert)
11
- * Fixed "undefined method `assertion_failure'" error (reported by Nick Plante)
12
-
13
- == 0.8.0
14
-
15
- * Support for HTTPClient (sync and async requests)
16
- * Support for dynamic responses. Response body and headers can be now declared as lambda.
17
- (Thanks to Ivan Vega ( @ivanyv ) for suggesting this feature)
18
- * Support for stubbing and expecting requests with empty body
19
- * Executing non-stubbed request leads to failed expectation instead of error
20
-
21
- === Bug fixes
22
-
23
- * Basic authentication now works correctly
24
- * Fixed problem where WebMock didn't call a block with the response when block was provided
25
- * Fixed problem where uris with single slash were not matching uris without path provided
26
-
27
- == 0.7.3
28
-
29
- * Clarified documentation
30
- * Fixed some issues with loading of Webmock classes
31
- * Test::Unit and RSpec adapters have to be required separately
32
-
33
-
34
- == 0.7.2
35
-
36
- * Added support for matching escaped and non escaped URLs