Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 216 lines (131 sloc) 7.947 kb
809ab3d @chrisk Release 1.3.0
authored
1 fakeweb (1.3.0)
41e2909 @chrisk Update the CHANGELOG
authored
2
3 * improve response header registration so you can pass an array to set a header
4 more than once [Myron Marston]
5
6 * fix an exception when the response's :body option was set to nil [Chris Zingel]
7
8 * fix that stubbed requests weren't mutating the Net::HTTP request object to set
9 the body and content-length, like real requests do [Chris Kampmeier]
10
11 * add FakeWeb.last_request [Chris Kampmeier]
12
11584ad @chrisk Update the CHANGELOG to credit a couple more contributors
authored
13 * assigning a String or Regexp to FakeWeb.allow_net_connect= sets a whitelist
14 for outbound requests [Dan Dofter, Tim Carey-Smith, Ben Woosley]
925226c @chrisk Support Pathname objects where a filename is expected
authored
15
41e2909 @chrisk Update the CHANGELOG
authored
16
06cf3a9 @chrisk Release 1.2.8
authored
17 fakeweb (1.2.8)
925226c @chrisk Support Pathname objects where a filename is expected
authored
18
19 * support Pathname objects where a filename is expected [Chris Kampmeier]
eee37f5 @chrisk Update CHANGELOG for 1.9.2-compat fixes
authored
20
21 * fix compatibility with Ruby 1.9.2 [Chris Kampmeier]
925226c @chrisk Support Pathname objects where a filename is expected
authored
22
ca57987 @chrisk Update CHANGELOG again, realized we never released this bug
authored
23 * simplify storage of FakeWeb::VERSION [Josh Peek, Woody Peterson, Ben Woosley]
24
925226c @chrisk Support Pathname objects where a filename is expected
authored
25
fdb94b0 @chrisk Release 1.2.7
authored
26 fakeweb (1.2.7)
1fcb283 @chrisk Update the changelog
authored
27
28 * revert to sorting query params before matching requests against regexps,
29 instead of the 1.2.6 behavior that tried every possible order combination;
30 that was factorial-time, which made matching hang for requests with long query
31 strings [Jason Wadsworth, David Dollar, Blaine Cook]
32
33 * print a warning when FakeWeb is loaded before RightHttpConnection or after
34 Samuel, other libs that patch Net::HTTP [Chris Kampmeier, Ben Brinckerhoff]
35
36
85e4e67 @chrisk Oops, forgot to bump the version in the CHANGELOG
authored
37 fakeweb (1.2.6)
f726193 @chrisk Update CHANGELOG
authored
38
39 * fix that query params in a regex would have to be sorted for it to ever match
40 a request URI [Chris Kampmeier, Ben Hall]
41
42 * improve regex handling so registration with an explicit port (like
43 /example.com:80/) matches a request that uses an implied port
44 (like "http://example.com/") [Chris Kampmeier, Dan Dofter]
45
46 * refactor URI registry to reduce duplication; now about twice as fast at
47 handling requests [Chris Kampmeier]
48
49 * Add FakeWeb::VERSION so you can programmatically determine what version of
50 FakeWeb is loaded without using RubyGems [Chris Kampmeier, Chris Wanstrath]
51
52
f22a310 @chrisk Release 1.2.5
authored
53 fakeweb (1.2.5)
9090b5d @chrisk Update CHANGELOG for 2c75fa66a75a6fdb07bae1838a76a45855ee6c26 and f64…
authored
54
9453929 @chrisk Update CHANGELOG for 1ad638500be9ddd570c6a888e5b344a2f8e82216
authored
55 * fix handling of userinfo strings that contain percent-encoded unsafe
56 characters [Chris Kampmeier, Ken Mayer]
57
9090b5d @chrisk Update CHANGELOG for 2c75fa66a75a6fdb07bae1838a76a45855ee6c26 and f64…
authored
58 * fix that exact matches against strings/URIs with the :any method had a lower
59 precedence than regex matches using a real HTTP method (exact matches now
60 always take precedence) [Chris Kampmeier]
61
62 * change request handling to raise an exception when more than one registered
63 regex matches a request URI [Chris Kampmeier]
64
65
7c2fc05 @chrisk Release 1.2.4
authored
66 fakeweb (1.2.4)
0142d47 @chrisk Deprecate the implicit :any HTTP method
authored
67
b9d378c @chrisk Update CHANGELOG for merge of regexes branch
authored
68 * add experimental support for matching URIs via regular expressions
69 [Jacqui Maher, Tiago Albineli Motta, Peter Wagene]
70
e33b732 @chrisk Fix that you'd get an Errno::EISDIR exception when registering with t…
authored
71 * fix an exception when registering with the :response option and a string that
72 is the same as the name of a directory in the current path [Chris Kampmeier]
73
92075e0 @chrisk Deprecate FakeWeb.register_uri's :string and :file options in favor o…
authored
74 * DEPRECATION: Calling FakeWeb.register_uri with a :string or :file option is
75 now deprecated. Both options have been replaced with a unified :body option,
76 since they supply the response body (as opposed to :response, which supplies
77 the full response including headers) [Chris Kampmeier]
78
b8fbab4 @chrisk Add support for specifying HTTP headers as options to FakeWeb.registe…
authored
79 * add support for specifying HTTP headers as options to FakeWeb.register_uri
80 when using the :string or :file response types, since those methods only
81 specify a response body [David Michael, Chris Kampmeier]
82
0142d47 @chrisk Deprecate the implicit :any HTTP method
authored
83 * DEPRECATION: Calling FakeWeb.register_uri and FakeWeb.registered_uri? without
84 an HTTP method as the first argument is now deprecated. To match against any
85 HTTP method (the pre-1.2.0 behavior), use :any [Chris Kampmeier]
86
87
b038c71 @chrisk Release 1.2.3
authored
88 fakeweb (1.2.3)
3f201e0 @chrisk Update CHANGELOG
authored
89
92a6dfa @chrisk Fix that :string and :file responses were returning the request URI a…
authored
90 * fix the #http_version of :file and :string responses, which was returning the
91 request URI instead of something sensible like "1.0" [Chris Kampmeier]
92
3f201e0 @chrisk Update CHANGELOG
authored
93 * add method aliases in the Net::HTTP patch to eliminate warnings when running
94 with -w [Joshua Clingenpeel]
95
96 * fix that removing the redefinition of OpenURI::HTTPError in 1.2.0 caused
97 :exception responses to raise when OpenURI isn't available [Chris Kampmeier]
98
99 * fix registering an :exception response with classes that require arguments for
100 instantiation, like Interrupt's subclasses [Chris Kampmeier]
101
102
790f0c4 @chrisk Release 1.2.2
authored
103 fakeweb (1.2.2)
871ff89 @chrisk Fix that our support for HTTP Basic auth was attempting to construct …
authored
104
105 * fix that HTTP Digest and OAuth requests could raise URI::InvalidURIErrors
106 [Bill Kocik, Chris Kampmeier]
107
108
11d55fa @chrisk Release 1.2.1
authored
109 fakeweb (1.2.1)
c38e2ab @chrisk Update CHANGELOG for HTTP basic auth support
authored
110
0d194c8 @chrisk Update CHANGELOG for f62cf412f03671564b372392950357f4603fef45, 95428d…
authored
111 * fix that query parameters are handled correctly when registering with a URI
112 object [Anselmo Alves, Chris Kampmeier]
113
114 * fix an exception when registering with the :response option and a string
115 containing "\0" [Jonathan Baudanza, Chris Kampmeier]
116
96d37c6 @chrisk Update CHANGELOG for c98f1d8f8643449e035ce0204d8788adc9defbd9
authored
117 * fix that trailing slashes were considered significant for requests to the root
118 of a domain [Chris Kampmeier]
119
c38e2ab @chrisk Update CHANGELOG for HTTP basic auth support
authored
120 * add support for HTTP basic authentication via userinfo strings in URIs
121 [Michael Bleigh]
122
871ff89 @chrisk Fix that our support for HTTP Basic auth was attempting to construct …
authored
123
7365a38 @chrisk Prepare docs for 1.2.0 release
authored
124 fakeweb (1.2.0)
20dedf5 Update changelog
Chris Kampmeier authored
125
1c490ca @chrisk Update CHANGELOG
authored
126 * add lib/fakeweb.rb so you can require "fakeweb" as well [Chris Kampmeier]
127
a1b5555 @chrisk Update the README and CHANGELOG to mention Ruby 1.9.1 support
authored
128 * fix compatibility with Ruby 1.9.1 [Chris Kampmeier]
129
130 * fix that newlines in file-based responses could be doubled in the response
bbe5c25 @chrisk Update CHANGELOG to include fixes from Mark Menard
authored
131 object's body [Mark Menard, Chris Kampmeier]
132
a1b5555 @chrisk Update the README and CHANGELOG to mention Ruby 1.9.1 support
authored
133 * fix unnecessary munging of the transfer-encoding header, which improves
bbe5c25 @chrisk Update CHANGELOG to include fixes from Mark Menard
authored
134 compatibility with mechanize [Mark Menard]
135
a1b5555 @chrisk Update the README and CHANGELOG to mention Ruby 1.9.1 support
authored
136 * fix a test and the RCov dependency to be compatible with JRuby [Mark Menard]
bbe5c25 @chrisk Update CHANGELOG to include fixes from Mark Menard
authored
137
748b1e3 @chrisk Update changelog to mention cleanup work by technicalpickles
authored
138 * remove an unnecessary redefinition of OpenURI::HTTPError [Josh Nichols]
139
140 * rearrange implementation code into separate files, one per class [Josh Nichols]
141
a1b5555 @chrisk Update the README and CHANGELOG to mention Ruby 1.9.1 support
authored
142 * fix a bug where FakeWeb.response_for would raise if the request wasn't
75f55d4 @chrisk Update changelog
authored
143 registered [Chris Kampmeier]
144
145 * add HTTP method support, so FakeWeb takes both the URI and method into
146 account for registration, requests, and responses. Backwards-compatible with
147 the old method signatures, which didn't have a method param. [Chris Kampmeier]
148
c5f95a3 @chrisk Update CHANGELOG
authored
149 * start work on Ruby 1.9 compatibility [Chris Kampmeier]
150
151 * add FakeWeb.allow_net_connect= to enable/disable the pass-through to
152 Net::HTTP for unregistered URIs [Mislav Marohnić, Chris Kampmeier]
153
154 * remove setup.rb, since most people use RubyGems [Mislav Marohnić]
155
156 * fix that 'http://example.com/?' (empty query) matches a registered
157 'http://example.com/', and vice-versa [Mislav Marohnić]
158
698ce17 @chrisk Update CHANGELOG
authored
159 * improve the test suite to not rely on an internet connection [Chris Kampmeier]
160
9c81fac @chrisk Update CHANGELOG
authored
161 * use `rake test` instead of `rake tests` [Josh Nichols]
162
163 * fix an incompatibility with Ruby 1.8.6 p36 where you'd get "Errno::EINTR:
164 Interrupted system call" exceptions in Socket#sysread for any non-faked
165 request [Chris Kampmeier]
166
167 * response rotation: you can now optionally call FakeWeb.register_uri with an
168 array of options hashes; these are used, in order, to respond to
169 repeated requests (to repeat a response more than once before rotating, use
170 the :times option). Once you run out of responses, further requests always
171 receive the last response. [Michael Shapiro]
172
c72cd5b @chrisk Reformat the CHANGELOG to use a more conventional style, so it's easi…
authored
173 * add support for Net::HTTP's undocumented full-URI request style (fixes
174 URI::InvalidURIErrors that you might see in older libraries) [Chris Kampmeier]
175
176 * sort query params before storing internally, so that
177 http://example.com/?a=1&b=2 and http://example.com/?b=2&a=1 are considered the
178 same URL (although this is technically incorrect, it's much more
179 convenient--most web apps work that way, and Net::HTTP's use of a hash to pass
180 query params means that the order in which FakeWeb stores them can be
181 unpredictable) [Chris Kampmeier]
182
183 * add support for ports in URLs, so that http://example.com/ and
184 http://example.com:3000/ are not the same [Chris Kampmeier]
185
186 * fix for non-faked SSL requests failing with "Unable to create local socket"
187 [Chris Kampmeier]
188
189 * update Rakefile to fix warning about deprecated code [Chris Kampmeier]
190
20dedf5 Update changelog
Chris Kampmeier authored
191
f5918b4 @blaine update gemspec to properly require dependencies.
blaine authored
192 fakeweb (1.1.2)
193
c72cd5b @chrisk Reformat the CHANGELOG to use a more conventional style, so it's easi…
authored
194 * add required dependencies to GemSpec to ensure that tests pass in firebrigade
195 (http://firebrigade.seattlerb.org/) [Blaine Cook]
f5918b4 @blaine update gemspec to properly require dependencies.
blaine authored
196
197
79fc1cd @blaine Some minor fixes relating to File.string and google.com redirects. Se…
blaine authored
198 fakeweb (1.1.1)
199
c72cd5b @chrisk Reformat the CHANGELOG to use a more conventional style, so it's easi…
authored
200 * fix for non-existence of :string method on File as presented by open-uri
201 [Blaine Cook]
202
203 * fix for curl example test - google redirects to ccTLDs for those outside US
204 [Blaine Cook]
79fc1cd @blaine Some minor fixes relating to File.string and google.com redirects. Se…
blaine authored
205
206
207 fakeweb (1.1.0)
9bdcca3 @blaine Update code for compatibility with ruby 1.8.4; this breaks compatibil…
blaine authored
208
c72cd5b @chrisk Reformat the CHANGELOG to use a more conventional style, so it's easi…
authored
209 * update code to correspond to ruby 1.8.4 (breaks compatibility with ruby 1.8.2)
210 [Blaine Cook]
9bdcca3 @blaine Update code for compatibility with ruby 1.8.4; this breaks compatibil…
blaine authored
211
212
7a1a3d5 @blaine Initial Import
blaine authored
213 fakeweb (1.0.0)
214
c72cd5b @chrisk Reformat the CHANGELOG to use a more conventional style, so it's easi…
authored
215 * initial import [Blaine Cook]
Something went wrong with that request. Please try again.