webmock 1.7.6 → 1.7.7

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -5,4 +5,5 @@ rvm:
5
5
  - ree
6
6
  - jruby
7
7
 
8
- script: "bundle exec rake && rake em_http_request_1_x_spec"
8
+
9
+ script: "bundle exec rake JRUBY_OPTS='–server -Dnative.enabled=true' && rake em_http_request_1_x_spec"
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.7.7 - RuPy 2011 release
4
+
5
+ * Passing response object to a block passed to `HTTPClient#do_get_block`. This fixes `HTTPClient.get_content` failures. [issue 130](https://github.com/bblimke/webmock/pull/130)
6
+
7
+ Thanks to [Chris McGrath](https://github.com/chrismcg)
8
+
9
+ * Cleaned up ruby warnings when running WebMock code with `-w`.
10
+
11
+ Thanks to [Stephen Celis](https://github.com/stephencelis)
12
+
13
+ * Curb adapter now correctly calls on_failure for 4xx response codes.
14
+
15
+ Thanks to [Eugene Pimenov](https://github.com/libc)
16
+
3
17
  ## 1.7.6
4
18
 
5
19
  * Support for the HTTPClient's request_filter feature
data/README.md CHANGED
@@ -649,6 +649,9 @@ People who submitted patches and new features or suggested improvements. Many th
649
649
  * David Yeu
650
650
  * Andreas Garnæs
651
651
  * Roman Shterenzon
652
+ * Chris McGrath
653
+ * Stephen Celis
654
+ * Eugene Pimenov
652
655
 
653
656
  For a full list of contributors you can visit the
654
657
  [contributors](https://github.com/bblimke/webmock/contributors) page.
@@ -148,7 +148,7 @@ if defined?(Curl)
148
148
  case response_code
149
149
  when 200..299
150
150
  @on_success.call(self) if @on_success
151
- when 500..599
151
+ when 400..599
152
152
  @on_failure.call(self, self.response_code) if @on_failure
153
153
  end
154
154
  end
@@ -103,7 +103,7 @@ if defined?(::HTTPClient)
103
103
  raise HTTPClient::TimeoutError if webmock_response.should_timeout
104
104
  webmock_response.raise_error_if_any
105
105
 
106
- block.call(nil, body) if block
106
+ block.call(response, body) if block
107
107
 
108
108
  response
109
109
  end
@@ -150,7 +150,7 @@ if defined?(::HTTPClient)
150
150
  uri.userinfo = userinfo
151
151
  end
152
152
 
153
- request_signature = WebMock::RequestSignature.new(
153
+ WebMock::RequestSignature.new(
154
154
  req.header.request_method.downcase.to_sym,
155
155
  uri.to_s,
156
156
  :body => req.content,
@@ -15,7 +15,9 @@
15
15
  module Net
16
16
  module WebMockHTTPResponse
17
17
  def read_body(dest = nil, &block)
18
- return super if @__read_body_previously_called
18
+ if !(defined?(@__read_body_previously_called).nil?) && @__read_body_previously_called
19
+ return super
20
+ end
19
21
  return @body if dest.nil? && block.nil?
20
22
  raise ArgumentError.new("both arg and block given for HTTP method") if dest && block
21
23
  return nil if @body.nil?
@@ -5,8 +5,11 @@ module WebMock
5
5
  attr_reader :method_pattern, :uri_pattern, :body_pattern, :headers_pattern
6
6
 
7
7
  def initialize(method, uri, options = {})
8
- @method_pattern = MethodPattern.new(method)
9
- @uri_pattern = create_uri_pattern(uri)
8
+ @method_pattern = MethodPattern.new(method)
9
+ @uri_pattern = create_uri_pattern(uri)
10
+ @body_pattern = nil
11
+ @headers_pattern = nil
12
+ @with_block = nil
10
13
  assign_options(options)
11
14
  end
12
15
 
@@ -24,7 +24,7 @@ module WebMock
24
24
  str << headers.map do |k,v|
25
25
  v = case v
26
26
  when Regexp then v.inspect
27
- when Array then "["+v.map{|v| "'#{v.to_s}'"}.join(", ")+"]"
27
+ when Array then "["+v.map{|w| "'#{w.to_s}'"}.join(", ")+"]"
28
28
  else "'#{v.to_s}'"
29
29
  end
30
30
  "'#{k}'=>#{v}"
@@ -5,7 +5,7 @@ module WebMock
5
5
  class JSON
6
6
  def self.parse(json)
7
7
  YAML.load(unescape(convert_json_to_yaml(json)))
8
- rescue ArgumentError => e
8
+ rescue ArgumentError
9
9
  raise ParseError, "Invalid JSON string"
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module WebMock
2
- VERSION = '1.7.6' unless defined?(::WebMock::VERSION)
2
+ VERSION = '1.7.7' unless defined?(::WebMock::VERSION)
3
3
  end
@@ -42,6 +42,19 @@ unless RUBY_PLATFORM =~ /java/
42
42
  test.should == body
43
43
  end
44
44
 
45
+ it "should call on_failure with 4xx response" do
46
+ response_code = 403
47
+ stub_request(:any, "example.com").
48
+ to_return(:status => [response_code, "None shall pass"])
49
+
50
+ test = nil
51
+ @curl.on_failure do |c, code|
52
+ test = code
53
+ end
54
+ @curl.http_get
55
+ test.should == response_code
56
+ end
57
+
45
58
  it "should call on_failure with 5xx response" do
46
59
  response_code = 599
47
60
  stub_request(:any, "example.com").
@@ -37,6 +37,15 @@ describe "HTTPClient" do
37
37
  include_examples "with WebMock"
38
38
  end
39
39
 
40
+ it "should work with get_content" do
41
+ stub_request(:get, 'www.example.com').to_return(:status => 200, :body => 'test', :headers => {})
42
+ str = ''
43
+ HTTPClient.get_content('www.example.com') do |content|
44
+ str << content
45
+ end
46
+ str.should == 'test'
47
+ end
48
+
40
49
  context "Filters" do
41
50
  class Filter
42
51
  def filter_request(request)
metadata CHANGED
@@ -1,316 +1,324 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: webmock
3
- version: !ruby/object:Gem::Version
4
- version: 1.7.6
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 1.7.7
6
6
  platform: ruby
7
- authors:
8
- - Bartosz Blimke
7
+ authors:
8
+ - Bartosz Blimke
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-03 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: addressable
16
- requirement: &2160890160 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '2.2'
22
- - - ! '>'
23
- - !ruby/object:Gem::Version
24
- version: 2.2.5
25
- type: :runtime
26
- prerelease: false
27
- version_requirements: *2160890160
28
- - !ruby/object:Gem::Dependency
29
- name: crack
30
- requirement: &2160889400 !ruby/object:Gem::Requirement
31
- none: false
32
- requirements:
33
- - - ! '>='
34
- - !ruby/object:Gem::Version
35
- version: 0.1.7
36
- type: :runtime
37
- prerelease: false
38
- version_requirements: *2160889400
39
- - !ruby/object:Gem::Dependency
40
- name: rspec
41
- requirement: &2160888940 !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: 2.0.0
47
- type: :development
48
- prerelease: false
49
- version_requirements: *2160888940
50
- - !ruby/object:Gem::Dependency
51
- name: httpclient
52
- requirement: &2160888480 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - ! '>='
56
- - !ruby/object:Gem::Version
57
- version: 2.1.5.2
58
- type: :development
59
- prerelease: false
60
- version_requirements: *2160888480
61
- - !ruby/object:Gem::Dependency
62
- name: patron
63
- requirement: &2160888020 !ruby/object:Gem::Requirement
64
- none: false
65
- requirements:
66
- - - ! '>='
67
- - !ruby/object:Gem::Version
68
- version: 0.4.15
69
- type: :development
70
- prerelease: false
71
- version_requirements: *2160888020
72
- - !ruby/object:Gem::Dependency
73
- name: em-http-request
74
- requirement: &2160887560 !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ~>
78
- - !ruby/object:Gem::Version
79
- version: 0.3.0
80
- type: :development
81
- prerelease: false
82
- version_requirements: *2160887560
83
- - !ruby/object:Gem::Dependency
84
- name: curb
85
- requirement: &2160887100 !ruby/object:Gem::Requirement
86
- none: false
87
- requirements:
88
- - - ! '>='
89
- - !ruby/object:Gem::Version
90
- version: 0.7.8
91
- type: :development
92
- prerelease: false
93
- version_requirements: *2160887100
94
- - !ruby/object:Gem::Dependency
95
- name: typhoeus
96
- requirement: &2160878960 !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: 0.2.4
102
- type: :development
103
- prerelease: false
104
- version_requirements: *2160878960
105
- - !ruby/object:Gem::Dependency
106
- name: minitest
107
- requirement: &2160878500 !ruby/object:Gem::Requirement
108
- none: false
109
- requirements:
110
- - - ! '>='
111
- - !ruby/object:Gem::Version
112
- version: 2.2.2
113
- type: :development
114
- prerelease: false
115
- version_requirements: *2160878500
116
- - !ruby/object:Gem::Dependency
117
- name: rdoc
118
- requirement: &2160878020 !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
121
- - - ! '>'
122
- - !ruby/object:Gem::Version
123
- version: 3.5.0
124
- type: :development
125
- prerelease: false
126
- version_requirements: *2160878020
127
- description: WebMock allows stubbing HTTP requests and setting expectations on HTTP
128
- requests.
129
- email:
130
- - bartosz.blimke@gmail.com
12
+
13
+ date: 2011-10-15 00:00:00 +02:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: addressable
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: "2.2"
25
+ - - ">"
26
+ - !ruby/object:Gem::Version
27
+ version: 2.2.5
28
+ type: :runtime
29
+ version_requirements: *id001
30
+ - !ruby/object:Gem::Dependency
31
+ name: crack
32
+ prerelease: false
33
+ requirement: &id002 !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: 0.1.7
39
+ type: :runtime
40
+ version_requirements: *id002
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ prerelease: false
44
+ requirement: &id003 !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 2.0.0
50
+ type: :development
51
+ version_requirements: *id003
52
+ - !ruby/object:Gem::Dependency
53
+ name: httpclient
54
+ prerelease: false
55
+ requirement: &id004 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 2.1.5.2
61
+ type: :development
62
+ version_requirements: *id004
63
+ - !ruby/object:Gem::Dependency
64
+ name: patron
65
+ prerelease: false
66
+ requirement: &id005 !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 0.4.15
72
+ type: :development
73
+ version_requirements: *id005
74
+ - !ruby/object:Gem::Dependency
75
+ name: em-http-request
76
+ prerelease: false
77
+ requirement: &id006 !ruby/object:Gem::Requirement
78
+ none: false
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 0.3.0
83
+ type: :development
84
+ version_requirements: *id006
85
+ - !ruby/object:Gem::Dependency
86
+ name: curb
87
+ prerelease: false
88
+ requirement: &id007 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: 0.7.8
94
+ type: :development
95
+ version_requirements: *id007
96
+ - !ruby/object:Gem::Dependency
97
+ name: typhoeus
98
+ prerelease: false
99
+ requirement: &id008 !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 0.2.4
105
+ type: :development
106
+ version_requirements: *id008
107
+ - !ruby/object:Gem::Dependency
108
+ name: minitest
109
+ prerelease: false
110
+ requirement: &id009 !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: 2.2.2
116
+ type: :development
117
+ version_requirements: *id009
118
+ - !ruby/object:Gem::Dependency
119
+ name: rdoc
120
+ prerelease: false
121
+ requirement: &id010 !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ">"
125
+ - !ruby/object:Gem::Version
126
+ version: 3.5.0
127
+ type: :development
128
+ version_requirements: *id010
129
+ description: WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.
130
+ email:
131
+ - bartosz.blimke@gmail.com
131
132
  executables: []
133
+
132
134
  extensions: []
135
+
133
136
  extra_rdoc_files: []
134
- files:
135
- - .gemtest
136
- - .gitignore
137
- - .rspec-tm
138
- - .rvmrc
139
- - .travis.yml
140
- - CHANGELOG.md
141
- - Gemfile
142
- - Guardfile
143
- - LICENSE
144
- - README.md
145
- - Rakefile
146
- - lib/webmock.rb
147
- - lib/webmock/api.rb
148
- - lib/webmock/assertion_failure.rb
149
- - lib/webmock/callback_registry.rb
150
- - lib/webmock/config.rb
151
- - lib/webmock/cucumber.rb
152
- - lib/webmock/deprecation.rb
153
- - lib/webmock/errors.rb
154
- - lib/webmock/http_lib_adapters/curb_adapter.rb
155
- - lib/webmock/http_lib_adapters/em_http_request/em_http_request_0_x.rb
156
- - lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb
157
- - lib/webmock/http_lib_adapters/em_http_request_adapter.rb
158
- - lib/webmock/http_lib_adapters/http_lib_adapter.rb
159
- - lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
160
- - lib/webmock/http_lib_adapters/httpclient_adapter.rb
161
- - lib/webmock/http_lib_adapters/net_http.rb
162
- - lib/webmock/http_lib_adapters/net_http_response.rb
163
- - lib/webmock/http_lib_adapters/patron_adapter.rb
164
- - lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb
165
- - lib/webmock/minitest.rb
166
- - lib/webmock/rack_response.rb
167
- - lib/webmock/request_execution_verifier.rb
168
- - lib/webmock/request_pattern.rb
169
- - lib/webmock/request_registry.rb
170
- - lib/webmock/request_signature.rb
171
- - lib/webmock/request_stub.rb
172
- - lib/webmock/response.rb
173
- - lib/webmock/responses_sequence.rb
174
- - lib/webmock/rspec.rb
175
- - lib/webmock/rspec/matchers.rb
176
- - lib/webmock/rspec/matchers/request_pattern_matcher.rb
177
- - lib/webmock/rspec/matchers/webmock_matcher.rb
178
- - lib/webmock/stub_registry.rb
179
- - lib/webmock/stub_request_snippet.rb
180
- - lib/webmock/test_unit.rb
181
- - lib/webmock/util/hash_counter.rb
182
- - lib/webmock/util/hash_keys_stringifier.rb
183
- - lib/webmock/util/headers.rb
184
- - lib/webmock/util/json.rb
185
- - lib/webmock/util/uri.rb
186
- - lib/webmock/version.rb
187
- - lib/webmock/webmock.rb
188
- - minitest/test_helper.rb
189
- - minitest/test_webmock.rb
190
- - minitest/webmock_spec.rb
191
- - spec/acceptance/curb/curb_spec.rb
192
- - spec/acceptance/curb/curb_spec_helper.rb
193
- - spec/acceptance/em_http_request/em_http_request_spec.rb
194
- - spec/acceptance/em_http_request/em_http_request_spec_helper.rb
195
- - spec/acceptance/httpclient/httpclient_spec.rb
196
- - spec/acceptance/httpclient/httpclient_spec_helper.rb
197
- - spec/acceptance/net_http/net_http_shared.rb
198
- - spec/acceptance/net_http/net_http_spec.rb
199
- - spec/acceptance/net_http/net_http_spec_helper.rb
200
- - spec/acceptance/net_http/real_net_http_spec.rb
201
- - spec/acceptance/patron/patron_spec.rb
202
- - spec/acceptance/patron/patron_spec_helper.rb
203
- - spec/acceptance/shared/allowing_and_disabling_net_connect.rb
204
- - spec/acceptance/shared/callbacks.rb
205
- - spec/acceptance/shared/enabling_and_disabling_webmock.rb
206
- - spec/acceptance/shared/precedence_of_stubs.rb
207
- - spec/acceptance/shared/request_expectations.rb
208
- - spec/acceptance/shared/returning_declared_responses.rb
209
- - spec/acceptance/shared/stubbing_requests.rb
210
- - spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
211
- - spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
212
- - spec/acceptance/webmock_shared.rb
213
- - spec/quality_spec.rb
214
- - spec/spec_helper.rb
215
- - spec/support/example_curl_output.txt
216
- - spec/support/my_rack_app.rb
217
- - spec/support/network_connection.rb
218
- - spec/support/webmock_server.rb
219
- - spec/unit/errors_spec.rb
220
- - spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
221
- - spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
222
- - spec/unit/rack_response_spec.rb
223
- - spec/unit/request_execution_verifier_spec.rb
224
- - spec/unit/request_pattern_spec.rb
225
- - spec/unit/request_registry_spec.rb
226
- - spec/unit/request_signature_spec.rb
227
- - spec/unit/request_stub_spec.rb
228
- - spec/unit/response_spec.rb
229
- - spec/unit/stub_registry_spec.rb
230
- - spec/unit/stub_request_snippet_spec.rb
231
- - spec/unit/util/hash_counter_spec.rb
232
- - spec/unit/util/hash_keys_stringifier_spec.rb
233
- - spec/unit/util/headers_spec.rb
234
- - spec/unit/util/json_spec.rb
235
- - spec/unit/util/uri_spec.rb
236
- - spec/unit/webmock_spec.rb
237
- - test/http_request.rb
238
- - test/shared_test.rb
239
- - test/test_helper.rb
240
- - test/test_webmock.rb
241
- - webmock.gemspec
137
+
138
+ files:
139
+ - .gemtest
140
+ - .gitignore
141
+ - .rspec-tm
142
+ - .rvmrc
143
+ - .travis.yml
144
+ - CHANGELOG.md
145
+ - Gemfile
146
+ - Guardfile
147
+ - LICENSE
148
+ - README.md
149
+ - Rakefile
150
+ - lib/webmock.rb
151
+ - lib/webmock/api.rb
152
+ - lib/webmock/assertion_failure.rb
153
+ - lib/webmock/callback_registry.rb
154
+ - lib/webmock/config.rb
155
+ - lib/webmock/cucumber.rb
156
+ - lib/webmock/deprecation.rb
157
+ - lib/webmock/errors.rb
158
+ - lib/webmock/http_lib_adapters/curb_adapter.rb
159
+ - lib/webmock/http_lib_adapters/em_http_request/em_http_request_0_x.rb
160
+ - lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb
161
+ - lib/webmock/http_lib_adapters/em_http_request_adapter.rb
162
+ - lib/webmock/http_lib_adapters/http_lib_adapter.rb
163
+ - lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
164
+ - lib/webmock/http_lib_adapters/httpclient_adapter.rb
165
+ - lib/webmock/http_lib_adapters/net_http.rb
166
+ - lib/webmock/http_lib_adapters/net_http_response.rb
167
+ - lib/webmock/http_lib_adapters/patron_adapter.rb
168
+ - lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb
169
+ - lib/webmock/minitest.rb
170
+ - lib/webmock/rack_response.rb
171
+ - lib/webmock/request_execution_verifier.rb
172
+ - lib/webmock/request_pattern.rb
173
+ - lib/webmock/request_registry.rb
174
+ - lib/webmock/request_signature.rb
175
+ - lib/webmock/request_stub.rb
176
+ - lib/webmock/response.rb
177
+ - lib/webmock/responses_sequence.rb
178
+ - lib/webmock/rspec.rb
179
+ - lib/webmock/rspec/matchers.rb
180
+ - lib/webmock/rspec/matchers/request_pattern_matcher.rb
181
+ - lib/webmock/rspec/matchers/webmock_matcher.rb
182
+ - lib/webmock/stub_registry.rb
183
+ - lib/webmock/stub_request_snippet.rb
184
+ - lib/webmock/test_unit.rb
185
+ - lib/webmock/util/hash_counter.rb
186
+ - lib/webmock/util/hash_keys_stringifier.rb
187
+ - lib/webmock/util/headers.rb
188
+ - lib/webmock/util/json.rb
189
+ - lib/webmock/util/uri.rb
190
+ - lib/webmock/version.rb
191
+ - lib/webmock/webmock.rb
192
+ - minitest/test_helper.rb
193
+ - minitest/test_webmock.rb
194
+ - minitest/webmock_spec.rb
195
+ - spec/acceptance/curb/curb_spec.rb
196
+ - spec/acceptance/curb/curb_spec_helper.rb
197
+ - spec/acceptance/em_http_request/em_http_request_spec.rb
198
+ - spec/acceptance/em_http_request/em_http_request_spec_helper.rb
199
+ - spec/acceptance/httpclient/httpclient_spec.rb
200
+ - spec/acceptance/httpclient/httpclient_spec_helper.rb
201
+ - spec/acceptance/net_http/net_http_shared.rb
202
+ - spec/acceptance/net_http/net_http_spec.rb
203
+ - spec/acceptance/net_http/net_http_spec_helper.rb
204
+ - spec/acceptance/net_http/real_net_http_spec.rb
205
+ - spec/acceptance/patron/patron_spec.rb
206
+ - spec/acceptance/patron/patron_spec_helper.rb
207
+ - spec/acceptance/shared/allowing_and_disabling_net_connect.rb
208
+ - spec/acceptance/shared/callbacks.rb
209
+ - spec/acceptance/shared/enabling_and_disabling_webmock.rb
210
+ - spec/acceptance/shared/precedence_of_stubs.rb
211
+ - spec/acceptance/shared/request_expectations.rb
212
+ - spec/acceptance/shared/returning_declared_responses.rb
213
+ - spec/acceptance/shared/stubbing_requests.rb
214
+ - spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
215
+ - spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
216
+ - spec/acceptance/webmock_shared.rb
217
+ - spec/quality_spec.rb
218
+ - spec/spec_helper.rb
219
+ - spec/support/example_curl_output.txt
220
+ - spec/support/my_rack_app.rb
221
+ - spec/support/network_connection.rb
222
+ - spec/support/webmock_server.rb
223
+ - spec/unit/errors_spec.rb
224
+ - spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
225
+ - spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
226
+ - spec/unit/rack_response_spec.rb
227
+ - spec/unit/request_execution_verifier_spec.rb
228
+ - spec/unit/request_pattern_spec.rb
229
+ - spec/unit/request_registry_spec.rb
230
+ - spec/unit/request_signature_spec.rb
231
+ - spec/unit/request_stub_spec.rb
232
+ - spec/unit/response_spec.rb
233
+ - spec/unit/stub_registry_spec.rb
234
+ - spec/unit/stub_request_snippet_spec.rb
235
+ - spec/unit/util/hash_counter_spec.rb
236
+ - spec/unit/util/hash_keys_stringifier_spec.rb
237
+ - spec/unit/util/headers_spec.rb
238
+ - spec/unit/util/json_spec.rb
239
+ - spec/unit/util/uri_spec.rb
240
+ - spec/unit/webmock_spec.rb
241
+ - test/http_request.rb
242
+ - test/shared_test.rb
243
+ - test/test_helper.rb
244
+ - test/test_webmock.rb
245
+ - webmock.gemspec
246
+ has_rdoc: true
242
247
  homepage: http://github.com/bblimke/webmock
243
248
  licenses: []
249
+
244
250
  post_install_message:
245
251
  rdoc_options: []
246
- require_paths:
247
- - lib
248
- required_ruby_version: !ruby/object:Gem::Requirement
252
+
253
+ require_paths:
254
+ - lib
255
+ required_ruby_version: !ruby/object:Gem::Requirement
249
256
  none: false
250
- requirements:
251
- - - ! '>='
252
- - !ruby/object:Gem::Version
253
- version: '0'
254
- required_rubygems_version: !ruby/object:Gem::Requirement
257
+ requirements:
258
+ - - ">="
259
+ - !ruby/object:Gem::Version
260
+ version: "0"
261
+ required_rubygems_version: !ruby/object:Gem::Requirement
255
262
  none: false
256
- requirements:
257
- - - ! '>='
258
- - !ruby/object:Gem::Version
259
- version: '0'
263
+ requirements:
264
+ - - ">="
265
+ - !ruby/object:Gem::Version
266
+ version: "0"
260
267
  requirements: []
268
+
261
269
  rubyforge_project: webmock
262
- rubygems_version: 1.8.10
270
+ rubygems_version: 1.5.1
263
271
  signing_key:
264
272
  specification_version: 3
265
273
  summary: Library for stubbing HTTP requests in Ruby.
266
- test_files:
267
- - spec/acceptance/curb/curb_spec.rb
268
- - spec/acceptance/curb/curb_spec_helper.rb
269
- - spec/acceptance/em_http_request/em_http_request_spec.rb
270
- - spec/acceptance/em_http_request/em_http_request_spec_helper.rb
271
- - spec/acceptance/httpclient/httpclient_spec.rb
272
- - spec/acceptance/httpclient/httpclient_spec_helper.rb
273
- - spec/acceptance/net_http/net_http_shared.rb
274
- - spec/acceptance/net_http/net_http_spec.rb
275
- - spec/acceptance/net_http/net_http_spec_helper.rb
276
- - spec/acceptance/net_http/real_net_http_spec.rb
277
- - spec/acceptance/patron/patron_spec.rb
278
- - spec/acceptance/patron/patron_spec_helper.rb
279
- - spec/acceptance/shared/allowing_and_disabling_net_connect.rb
280
- - spec/acceptance/shared/callbacks.rb
281
- - spec/acceptance/shared/enabling_and_disabling_webmock.rb
282
- - spec/acceptance/shared/precedence_of_stubs.rb
283
- - spec/acceptance/shared/request_expectations.rb
284
- - spec/acceptance/shared/returning_declared_responses.rb
285
- - spec/acceptance/shared/stubbing_requests.rb
286
- - spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
287
- - spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
288
- - spec/acceptance/webmock_shared.rb
289
- - spec/quality_spec.rb
290
- - spec/spec_helper.rb
291
- - spec/support/example_curl_output.txt
292
- - spec/support/my_rack_app.rb
293
- - spec/support/network_connection.rb
294
- - spec/support/webmock_server.rb
295
- - spec/unit/errors_spec.rb
296
- - spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
297
- - spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
298
- - spec/unit/rack_response_spec.rb
299
- - spec/unit/request_execution_verifier_spec.rb
300
- - spec/unit/request_pattern_spec.rb
301
- - spec/unit/request_registry_spec.rb
302
- - spec/unit/request_signature_spec.rb
303
- - spec/unit/request_stub_spec.rb
304
- - spec/unit/response_spec.rb
305
- - spec/unit/stub_registry_spec.rb
306
- - spec/unit/stub_request_snippet_spec.rb
307
- - spec/unit/util/hash_counter_spec.rb
308
- - spec/unit/util/hash_keys_stringifier_spec.rb
309
- - spec/unit/util/headers_spec.rb
310
- - spec/unit/util/json_spec.rb
311
- - spec/unit/util/uri_spec.rb
312
- - spec/unit/webmock_spec.rb
313
- - test/http_request.rb
314
- - test/shared_test.rb
315
- - test/test_helper.rb
316
- - test/test_webmock.rb
274
+ test_files:
275
+ - spec/acceptance/curb/curb_spec.rb
276
+ - spec/acceptance/curb/curb_spec_helper.rb
277
+ - spec/acceptance/em_http_request/em_http_request_spec.rb
278
+ - spec/acceptance/em_http_request/em_http_request_spec_helper.rb
279
+ - spec/acceptance/httpclient/httpclient_spec.rb
280
+ - spec/acceptance/httpclient/httpclient_spec_helper.rb
281
+ - spec/acceptance/net_http/net_http_shared.rb
282
+ - spec/acceptance/net_http/net_http_spec.rb
283
+ - spec/acceptance/net_http/net_http_spec_helper.rb
284
+ - spec/acceptance/net_http/real_net_http_spec.rb
285
+ - spec/acceptance/patron/patron_spec.rb
286
+ - spec/acceptance/patron/patron_spec_helper.rb
287
+ - spec/acceptance/shared/allowing_and_disabling_net_connect.rb
288
+ - spec/acceptance/shared/callbacks.rb
289
+ - spec/acceptance/shared/enabling_and_disabling_webmock.rb
290
+ - spec/acceptance/shared/precedence_of_stubs.rb
291
+ - spec/acceptance/shared/request_expectations.rb
292
+ - spec/acceptance/shared/returning_declared_responses.rb
293
+ - spec/acceptance/shared/stubbing_requests.rb
294
+ - spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
295
+ - spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
296
+ - spec/acceptance/webmock_shared.rb
297
+ - spec/quality_spec.rb
298
+ - spec/spec_helper.rb
299
+ - spec/support/example_curl_output.txt
300
+ - spec/support/my_rack_app.rb
301
+ - spec/support/network_connection.rb
302
+ - spec/support/webmock_server.rb
303
+ - spec/unit/errors_spec.rb
304
+ - spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
305
+ - spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
306
+ - spec/unit/rack_response_spec.rb
307
+ - spec/unit/request_execution_verifier_spec.rb
308
+ - spec/unit/request_pattern_spec.rb
309
+ - spec/unit/request_registry_spec.rb
310
+ - spec/unit/request_signature_spec.rb
311
+ - spec/unit/request_stub_spec.rb
312
+ - spec/unit/response_spec.rb
313
+ - spec/unit/stub_registry_spec.rb
314
+ - spec/unit/stub_request_snippet_spec.rb
315
+ - spec/unit/util/hash_counter_spec.rb
316
+ - spec/unit/util/hash_keys_stringifier_spec.rb
317
+ - spec/unit/util/headers_spec.rb
318
+ - spec/unit/util/json_spec.rb
319
+ - spec/unit/util/uri_spec.rb
320
+ - spec/unit/webmock_spec.rb
321
+ - test/http_request.rb
322
+ - test/shared_test.rb
323
+ - test/test_helper.rb
324
+ - test/test_webmock.rb