webmock 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.8.1
4
+
5
+ * Ensured WebMock doesn't interfere with `em-synchrony`, when `em-synchrony/em-http` is not included.
6
+
7
+ Thanks to [Nick Recobra](https://github.com/oruen)
8
+
9
+ * Improved README
10
+
11
+ Thanks to [Jordan Elver](https://github.com/jordelver)
12
+
13
+
3
14
  ## 1.8.0
4
15
 
5
16
  * Matching request body against partial hash.
data/README.md CHANGED
@@ -71,6 +71,8 @@ Add the following code to `features/support/env.rb`
71
71
 
72
72
  require 'webmock/cucumber'
73
73
 
74
+ ### Outside a test framework
75
+
74
76
  You can also use WebMock outside a test framework:
75
77
 
76
78
  require 'webmock'
@@ -701,7 +703,7 @@ For a full list of contributors you can visit the
701
703
 
702
704
  ## Background
703
705
 
704
- Thank you Fakeweb! This library was inspired by [FakeWeb](fakeweb.rubyforge.org).
706
+ Thank you Fakeweb! This library was inspired by [FakeWeb](http://fakeweb.rubyforge.org).
705
707
  I imported some solutions from that project to WebMock. I also copied some code i.e Net:HTTP adapter.
706
708
  Fakeweb architecture unfortunately didn't allow me to extend it easily with the features I needed.
707
709
  I also preferred some things to work differently i.e request stub precedence.
@@ -27,7 +27,7 @@ if defined?(EventMachine::HttpClient)
27
27
 
28
28
  module EventMachine
29
29
 
30
- if defined?(Synchrony)
30
+ if defined?(Synchrony) && HTTPMethods.instance_methods.include?(:aget)
31
31
  # have to make the callbacks fire on the next tick in order
32
32
  # to avoid the dreaded "double resume" exception
33
33
  module HTTPMethods
@@ -1,3 +1,3 @@
1
1
  module WebMock
2
- VERSION = '1.8.0' unless defined?(::WebMock::VERSION)
2
+ VERSION = '1.8.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: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 8
9
- - 0
10
- version: 1.8.0
9
+ - 1
10
+ version: 1.8.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bartosz Blimke
@@ -15,10 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-20 00:00:00 Z
18
+ date: 2012-03-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
21
+ name: addressable
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
22
24
  none: false
23
25
  requirements:
24
26
  - - ">="
@@ -29,12 +31,12 @@ dependencies:
29
31
  - 2
30
32
  - 7
31
33
  version: 2.2.7
32
- prerelease: false
33
- requirement: *id001
34
34
  type: :runtime
35
- name: addressable
35
+ version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
37
+ name: crack
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
38
40
  none: false
39
41
  requirements:
40
42
  - - ">="
@@ -45,12 +47,12 @@ dependencies:
45
47
  - 1
46
48
  - 7
47
49
  version: 0.1.7
48
- prerelease: false
49
- requirement: *id002
50
50
  type: :runtime
51
- name: crack
51
+ version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
53
+ name: rspec
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
54
56
  none: false
55
57
  requirements:
56
58
  - - ~>
@@ -60,12 +62,12 @@ dependencies:
60
62
  - 2
61
63
  - 8
62
64
  version: "2.8"
63
- prerelease: false
64
- requirement: *id003
65
65
  type: :development
66
- name: rspec
66
+ version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency
68
- version_requirements: &id004 !ruby/object:Gem::Requirement
68
+ name: httpclient
69
+ prerelease: false
70
+ requirement: &id004 !ruby/object:Gem::Requirement
69
71
  none: false
70
72
  requirements:
71
73
  - - ">="
@@ -76,12 +78,12 @@ dependencies:
76
78
  - 2
77
79
  - 4
78
80
  version: 2.2.4
79
- prerelease: false
80
- requirement: *id004
81
81
  type: :development
82
- name: httpclient
82
+ version_requirements: *id004
83
83
  - !ruby/object:Gem::Dependency
84
- version_requirements: &id005 !ruby/object:Gem::Requirement
84
+ name: patron
85
+ prerelease: false
86
+ requirement: &id005 !ruby/object:Gem::Requirement
85
87
  none: false
86
88
  requirements:
87
89
  - - ">="
@@ -92,12 +94,12 @@ dependencies:
92
94
  - 4
93
95
  - 17
94
96
  version: 0.4.17
95
- prerelease: false
96
- requirement: *id005
97
97
  type: :development
98
- name: patron
98
+ version_requirements: *id005
99
99
  - !ruby/object:Gem::Dependency
100
- version_requirements: &id006 !ruby/object:Gem::Requirement
100
+ name: em-http-request
101
+ prerelease: false
102
+ requirement: &id006 !ruby/object:Gem::Requirement
101
103
  none: false
102
104
  requirements:
103
105
  - - ">="
@@ -108,12 +110,12 @@ dependencies:
108
110
  - 0
109
111
  - 0
110
112
  version: 1.0.0
111
- prerelease: false
112
- requirement: *id006
113
113
  type: :development
114
- name: em-http-request
114
+ version_requirements: *id006
115
115
  - !ruby/object:Gem::Dependency
116
- version_requirements: &id007 !ruby/object:Gem::Requirement
116
+ name: curb
117
+ prerelease: false
118
+ requirement: &id007 !ruby/object:Gem::Requirement
117
119
  none: false
118
120
  requirements:
119
121
  - - ">="
@@ -124,12 +126,12 @@ dependencies:
124
126
  - 8
125
127
  - 0
126
128
  version: 0.8.0
127
- prerelease: false
128
- requirement: *id007
129
129
  type: :development
130
- name: curb
130
+ version_requirements: *id007
131
131
  - !ruby/object:Gem::Dependency
132
- version_requirements: &id008 !ruby/object:Gem::Requirement
132
+ name: typhoeus
133
+ prerelease: false
134
+ requirement: &id008 !ruby/object:Gem::Requirement
133
135
  none: false
134
136
  requirements:
135
137
  - - ">="
@@ -140,12 +142,12 @@ dependencies:
140
142
  - 3
141
143
  - 0
142
144
  version: 0.3.0
143
- prerelease: false
144
- requirement: *id008
145
145
  type: :development
146
- name: typhoeus
146
+ version_requirements: *id008
147
147
  - !ruby/object:Gem::Dependency
148
- version_requirements: &id009 !ruby/object:Gem::Requirement
148
+ name: excon
149
+ prerelease: false
150
+ requirement: &id009 !ruby/object:Gem::Requirement
149
151
  none: false
150
152
  requirements:
151
153
  - - ">="
@@ -156,12 +158,12 @@ dependencies:
156
158
  - 9
157
159
  - 5
158
160
  version: 0.9.5
159
- prerelease: false
160
- requirement: *id009
161
161
  type: :development
162
- name: excon
162
+ version_requirements: *id009
163
163
  - !ruby/object:Gem::Dependency
164
- version_requirements: &id010 !ruby/object:Gem::Requirement
164
+ name: minitest
165
+ prerelease: false
166
+ requirement: &id010 !ruby/object:Gem::Requirement
165
167
  none: false
166
168
  requirements:
167
169
  - - ">="
@@ -172,12 +174,12 @@ dependencies:
172
174
  - 2
173
175
  - 2
174
176
  version: 2.2.2
175
- prerelease: false
176
- requirement: *id010
177
177
  type: :development
178
- name: minitest
178
+ version_requirements: *id010
179
179
  - !ruby/object:Gem::Dependency
180
- version_requirements: &id011 !ruby/object:Gem::Requirement
180
+ name: rdoc
181
+ prerelease: false
182
+ requirement: &id011 !ruby/object:Gem::Requirement
181
183
  none: false
182
184
  requirements:
183
185
  - - ">"
@@ -188,10 +190,8 @@ dependencies:
188
190
  - 5
189
191
  - 0
190
192
  version: 3.5.0
191
- prerelease: false
192
- requirement: *id011
193
193
  type: :development
194
- name: rdoc
194
+ version_requirements: *id011
195
195
  description: WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.
196
196
  email:
197
197
  - bartosz.blimke@gmail.com