424 Commits

Author SHA1 Message Date
technoweenie
7e57b5eb2b lets try a monitor instead of a mutex 2012-12-28 02:01:54 -07:00
technoweenie
1aed2d1b17 Don't let nested mutex deadlock the thread. 2012-12-28 01:43:01 -07:00
technoweenie
0d48d70c3f use #load_middleware since autoload was removed 2012-12-28 01:42:54 -07:00
technoweenie
55c03addc2 Merge commit 'f9b8fe8546c2546811d7b68e4020cd17f890d45e' into fix-ci 2012-12-28 01:42:28 -07:00
Karl Eklund
f9b8fe8546 Add support for headers to the test adapter 2012-12-20 12:07:07 +01:00
Michael Ossareh
8d6d3bcf33 Handle the case of an unreachable network.
This can happen in a number of cases, a good example is when your stack
tries to make an IPv6 connection and it is not possible.
2012-12-11 17:21:50 -08:00
technoweenie
76b53a6c2c add Faraday::Options#delete 2012-10-28 23:45:47 -06:00
technoweenie
77d7546d6d Builder => RackBuilder 2012-10-28 11:00:33 -06:00
technoweenie
a2cd2339c8 make it possible to pass in alternate Builder class 2012-10-28 10:56:51 -06:00
technoweenie
c46283cc17 move the request => response logic to Builder 2012-10-28 10:16:27 -06:00
technoweenie
94036467d3 Faraday::Builder builds the Env 2012-10-28 10:05:23 -06:00
technoweenie
d0437a1cb4 tests don't run individually without autoload 2012-10-28 10:00:50 -06:00
technoweenie
6b671fc9ab rearrange some methods, keep more important stuff at the top 2012-10-28 09:38:28 -06:00
technoweenie
d10c01f111 Move #app from Connection to Builder 2012-10-28 09:36:16 -06:00
technoweenie
bbc69369e5 merge 2012-10-27 10:27:50 -06:00
technoweenie
e8c2ba0c0e fix Response#to_hash 2012-10-21 16:55:23 -06:00
technoweenie
14d75a2c01 ruby 1.8.7 compat 2012-10-21 16:32:54 -06:00
technoweenie
f0dd53a53f tweak some more middleware to use env 2012-10-21 16:21:42 -06:00
technoweenie
772d33e011 clean up the multipart/url_encoded middleware 2012-10-21 16:09:11 -06:00
technoweenie
691ff3c8e3 move some env logic back to Env 2012-10-21 16:03:32 -06:00
technoweenie
a18d7a856d treat the env like a struct 2012-10-21 15:48:18 -06:00
technoweenie
04a8514cba Response#env is always an Env 2012-10-21 15:41:56 -06:00
technoweenie
dc383b0999 remove :custom option key 2012-10-21 15:05:59 -06:00
technoweenie
fa58f794c5 enforce Proxy#uri to be a URI 2012-10-21 14:37:00 -06:00
technoweenie
b2eded6f1c Env options 2012-10-21 14:23:46 -06:00
technoweenie
c532711a5c move all options classes to lib/faraday/options 2012-10-21 14:23:30 -06:00
technoweenie
61546520ef add a ProxyOptions 2012-10-21 13:22:29 -06:00
technoweenie
a5e9485db1 add SSLOptions
Found a case where the Typhoeus adapter uses different
keys than every other adapter.
2012-10-21 13:12:47 -06:00
technoweenie
d4ef6f4e6e add request options 2012-10-21 13:06:48 -06:00
technoweenie
37e2c05776 start passing a Faraday::Connection::Options around 2012-10-21 12:31:16 -06:00
technoweenie
4d63592675 basic Faraday::Connections::Options object 2012-10-21 12:05:36 -06:00
technoweenie
a57c45f3b4 load the options from faraday 2012-10-21 11:07:30 -06:00
technoweenie
18ff062f8d add nested options 2012-10-21 10:53:15 -06:00
technoweenie
cc21bf7abc deep hash merging 2012-10-21 10:44:31 -06:00
technoweenie
31dc6cfb92 basic Faraday::Options class 2012-10-21 10:38:19 -06:00
technoweenie
f3c1d06ad6 wrap writes to @registered_middleware in a mutex 2012-10-21 08:45:48 -06:00
technoweenie
1f6808e61d ruby 1.8.7 will require the same file multiple times 2012-10-20 18:03:24 -06:00
technoweenie
9befdfaafe didnt git-add these typos 2012-10-20 17:48:03 -06:00
technoweenie
223b160954 shove ruby autoloading to 'faraday/autoload' 2012-10-20 17:38:48 -06:00
technoweenie
497caa3c5e add some autoloading abilities to MiddlewareRegistry 2012-10-20 17:30:05 -06:00
technoweenie
a6c6f1612c remove Faraday::Error module, add Faraday::Error base class 2012-10-20 17:11:54 -06:00
technoweenie
14b458a9c9 remove Faraday.register_middleware 2012-10-20 16:58:06 -06:00
technoweenie
91dfa11d20 don't need this AutoloadHelper here 2012-10-20 16:50:47 -06:00
technoweenie
1e5284c5ad remove autoloading from Faraday 2012-10-20 16:50:33 -06:00
Bob Aman
ab2a855658 Introduces a parameter encoder option to connections.
Allows parameter encoding behavior to be overridden.
Fixes technoweenie/faraday#182.
Based on sqrrrl/faraday@dc8409d4d5.
2012-10-15 18:03:12 +03:00
Mislav Marohnić
88c76087c8 work around Excon problem with JRuby + SSL 2012-08-16 18:21:04 +02:00
Mislav Marohnić
db73953d3b hardcode Patron into no cert verification on SSL
It doesn't seem to support passing in ":ca_file".
2012-08-16 18:20:23 +02:00
Jerry Cheung
cc918842fb enable test suite in SSL mode 2012-08-16 18:20:23 +02:00
Mislav Marohnić
7f9df7a08b fix EM Synchrony PATCH and OPTIONS methods 2012-08-16 18:19:45 +02:00
Mislav Marohnić
3bfadea707 mark as 0.9.0.pre 2012-08-15 19:43:30 +02:00