webmock 1.16.0 → 1.16.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.16.1
4
+
5
+ * Fixed "NameError: uninitialized constant WebMock::Response::Pathname" issue.
6
+
7
+ Thanks to [Alex Stupakow and Karen Wang](https://github.com/stupakov) for the fix.
8
+
3
9
  ## 1.16.0
4
10
 
5
11
  * Allow a Pathname to be passed as a Response body
data/README.md CHANGED
@@ -394,6 +394,13 @@ Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
394
394
  Net::HTTP.get('www.example.com', '/') # ===> "def\n"
395
395
  ```
396
396
 
397
+ ### Removing unused stubs
398
+
399
+ ```ruby
400
+ stub_get = stub_request(:get, "www.example.com")
401
+ remove_request_stub(stub_get)
402
+ ```
403
+
397
404
  ### Real requests to network can be allowed or disabled
398
405
 
399
406
  ```ruby
@@ -865,6 +872,8 @@ People who submitted patches and new features or suggested improvements. Many th
865
872
  * Riley Strong
866
873
  * Tamir Duberstein
867
874
  * Stefano Uliari
875
+ * Alex Stupakov
876
+ * Karen Wang
868
877
 
869
878
  For a full list of contributors you can visit the
870
879
  [contributors](https://github.com/bblimke/webmock/contributors) page.
@@ -1,3 +1,5 @@
1
+ require "pathname"
2
+
1
3
  #compatibility with Ruby 1.9.2 preview1 to allow reading raw responses
2
4
  class StringIO
3
5
  alias_method :read_nonblock, :sysread
@@ -1,3 +1,3 @@
1
1
  module WebMock
2
- VERSION = '1.16.0' unless defined?(::WebMock::VERSION)
2
+ VERSION = '1.16.1' unless defined?(::WebMock::VERSION)
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmock
3
3
  version: !ruby/object:Gem::Version
4
- hash: 87
4
+ hash: 85
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 16
9
- - 0
10
- version: 1.16.0
9
+ - 1
10
+ version: 1.16.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bartosz Blimke
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-11-17 00:00:00 Z
18
+ date: 2013-12-15 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: addressable
@@ -30,8 +30,8 @@ dependencies:
30
30
  - 2
31
31
  - 7
32
32
  version: 2.2.7
33
- prerelease: false
34
33
  type: :runtime
34
+ prerelease: false
35
35
  requirement: *id001
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: crack
@@ -46,8 +46,8 @@ dependencies:
46
46
  - 3
47
47
  - 2
48
48
  version: 0.3.2
49
- prerelease: false
50
49
  type: :runtime
50
+ prerelease: false
51
51
  requirement: *id002
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: rspec
@@ -61,8 +61,8 @@ dependencies:
61
61
  - 2
62
62
  - 10
63
63
  version: "2.10"
64
- prerelease: false
65
64
  type: :development
65
+ prerelease: false
66
66
  requirement: *id003
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: httpclient
@@ -77,8 +77,8 @@ dependencies:
77
77
  - 2
78
78
  - 4
79
79
  version: 2.2.4
80
- prerelease: false
81
80
  type: :development
81
+ prerelease: false
82
82
  requirement: *id004
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: patron
@@ -93,8 +93,8 @@ dependencies:
93
93
  - 4
94
94
  - 18
95
95
  version: 0.4.18
96
- prerelease: false
97
96
  type: :development
97
+ prerelease: false
98
98
  requirement: *id005
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: em-http-request
@@ -109,8 +109,8 @@ dependencies:
109
109
  - 0
110
110
  - 2
111
111
  version: 1.0.2
112
- prerelease: false
113
112
  type: :development
113
+ prerelease: false
114
114
  requirement: *id006
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: curb
@@ -125,8 +125,8 @@ dependencies:
125
125
  - 8
126
126
  - 0
127
127
  version: 0.8.0
128
- prerelease: false
129
128
  type: :development
129
+ prerelease: false
130
130
  requirement: *id007
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: typhoeus
@@ -141,8 +141,8 @@ dependencies:
141
141
  - 5
142
142
  - 0
143
143
  version: 0.5.0
144
- prerelease: false
145
144
  type: :development
145
+ prerelease: false
146
146
  requirement: *id008
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: excon
@@ -157,8 +157,8 @@ dependencies:
157
157
  - 22
158
158
  - 0
159
159
  version: 0.22.0
160
- prerelease: false
161
160
  type: :development
161
+ prerelease: false
162
162
  requirement: *id009
163
163
  - !ruby/object:Gem::Dependency
164
164
  name: minitest
@@ -173,8 +173,8 @@ dependencies:
173
173
  - 0
174
174
  - 0
175
175
  version: 5.0.0
176
- prerelease: false
177
176
  type: :development
177
+ prerelease: false
178
178
  requirement: *id010
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: rdoc
@@ -189,8 +189,8 @@ dependencies:
189
189
  - 5
190
190
  - 0
191
191
  version: 3.5.0
192
- prerelease: false
193
192
  type: :development
193
+ prerelease: false
194
194
  requirement: *id011
195
195
  description: WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.
196
196
  email:
@@ -346,7 +346,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
346
346
  requirements: []
347
347
 
348
348
  rubyforge_project: webmock
349
- rubygems_version: 1.8.25
349
+ rubygems_version: 1.8.19
350
350
  signing_key:
351
351
  specification_version: 3
352
352
  summary: Library for stubbing HTTP requests in Ruby.