322 Commits

Author SHA1 Message Date
Dave Yeu & Tim Gildea
cef0152af8 Fixes rescue block for refused connections, just for Net::HTTP 2011-01-13 09:29:37 +08:00
Daniel Cadenas
87baca6cf5 Fix typo 2011-01-13 09:29:36 +08:00
Erik Michaels-Ober
14ffe542f7 Bump version to 0.5.4 2011-01-11 10:56:59 -08:00
Erik Michaels-Ober
aad642b1a7 Fix typo 2010-12-31 02:06:09 -05:00
rick
9f89200169 some exceptions dont have a #message method. Closes #30. 2010-11-19 08:31:17 -08:00
Carl Lerche
7ff6f56701 Strip out extra new lines from basic auth headers 2010-11-13 03:59:17 +08:00
Erik Michaels-Ober
0522003c4c Bump version to 0.5.3 2010-11-09 03:55:19 -08:00
Steven Parkes
f96338ea2a add em_synchrony support 2010-11-08 02:29:09 +08:00
Jason T. Calhoun
badabdd79c preserve array values when converting a body hash into parameters 2010-11-08 02:15:44 +08:00
Erik Michaels-Ober
66e15342bd Bump version to 0.5.2 2010-10-29 13:21:03 -07:00
Erik Michaels-Ober
67054db3b0 Bump version to 0.5.1 2010-10-15 17:01:46 -07:00
Erik Michaels-Ober
d197c18573 Merge branch 'typhoeus-parse-blank-header-lines' 2010-10-15 15:53:56 -07:00
José Valim
0543c6dbd6 Fixes a bug where NoMethodError was being raised if no stub was found. 2010-10-14 08:53:16 +02:00
rick
618d5f6f9d bump version 2010-10-08 15:30:40 -07:00
rick
835b9f6037 use mojombo/rakegem, remove dependence on bundler 2010-10-08 15:26:55 -07:00
Erik Michaels-Ober
09692fc5f1 Remove Jeweler because it creates messy gemspecs and is redundant 2010-10-08 13:04:36 -07:00
Erik Michaels-Ober
bfae62f840 Cleanup EOL whitespace 2010-10-08 12:33:09 -07:00
rick
ca5ec52b71 help ruby disambiguate the constants 2010-10-05 11:46:13 -07:00
rick
176c647bdf some whitespace stuff 2010-10-05 11:39:13 -07:00
rick
647c8fe6e1 merge 2010-10-05 11:19:22 -07:00
rick
4f7ba6624d Merge branch 'master' of https://github.com/josevalim/faraday into josevalim-master 2010-10-05 10:42:25 -07:00
rick
44dfe35f02 Faraday exceptions shouldn't shadow real exceptions 2010-10-05 10:27:47 -07:00
Cyril Mougel
c342bd9606 Raise a Faraday::Error::Parsing exception when you use the Json parsing
response and the response is not a JSON
2010-10-04 08:27:01 +02:00
José Valim
5918164275 Stubs in test mode can be called more than one time. 2010-10-02 01:35:50 +02:00
José Valim
62366a2c69 Extract and expose common URI methods in Faraday::Utils. 2010-10-02 01:22:51 +02:00
rick
f8886065ad refactor Faraday::Adapter param building 2010-09-07 16:47:52 -07:00
rick
d54f03d8b4 support nested multipart params 2010-09-07 16:42:06 -07:00
rick
6007c76efa yay, net/http can stream like nobody's business 2010-09-07 15:45:10 -07:00
rick
a13e6a2bf9 ensure content-length header value is a string 2010-09-07 15:34:51 -07:00
rick
bc2cd52f70 fix live tests 2010-09-07 15:20:24 -07:00
rick
cc64429c76 Merge branch 'master' into multipart 2010-09-07 15:13:29 -07:00
rick
e0fa90659a really really like parens 2010-09-07 15:13:23 -07:00
rick
12b519aedc add multipart support 2010-09-07 15:12:18 -07:00
rick
a2a6d0e7fa tweak and tomdoc Adapter#process_body_for_request 2010-09-07 12:26:27 -07:00
rick
51a004ebc2 refactor common Faraday adapter methods into a Faraday::Adapter middleware 2010-09-07 12:05:36 -07:00
rick
c1fdbe3e02 parens are allright in my book 2010-09-07 11:38:46 -07:00
Eric Lindvall
48cbbac378 Make Connection act enough like Builder to pass a Connection in to the
constructor block.
2010-09-03 00:28:32 -07:00
rick
264759385f Merge remote branch 'eric/sort-query-params-for-test-stubs' 2010-08-31 15:16:32 -07:00
rick
99245ddeac Merge remote branch 'eric/typhoeus-timeout' 2010-08-31 15:13:04 -07:00
rick
cd18a2328b Merge branch 'master' of github.com:technoweenie/faraday 2010-08-31 15:12:10 -07:00
Eric Lindvall
683146fba1 Use the correct hash for timeouts. 2010-08-31 13:01:58 -07:00
Eric Lindvall
000a0dda93 Add timeout support to typhoeus. 2010-08-31 12:44:11 -07:00
Eric Lindvall
59ed57fa41 Make sure the query params are sorted for test stubs to make tests repeatable. 2010-08-25 13:03:23 -07:00
Eric Lindvall
2e4c9b66f6 Properly parse blank lines. 2010-08-25 12:51:13 -07:00
Terence Lee
3aa840d012 auto parse basic auth info from url 2010-07-30 04:02:08 +08:00
rick
c64401d00b reset session before each request 2010-06-07 11:58:39 -04:00
rick
b0941f3dc2 add rough ActionDispatch adapter for testing Rails 3 APIs with Faraday 2010-06-07 11:43:13 -04:00
rick
71248dea7e better :header_name => "Header-Name" conversion 2010-05-30 13:00:10 -07:00
rick
1e4fa3dab1 Faraday::Error::ClientError is a common base class for all faraday errors 2010-05-28 19:44:06 -07:00
Diego Elio 'Flameeyes' Pettenò
66d532207d Make sure to rewrite relative paths to absolute before setting “authority”.
Since version 2.1.2 of addressable gem, having an “authority” on the URI
(user, password, userinfo, host, port) with a relative path is an error and
an exception is thrown (see Issue 1), to avoid that make the path absolute
before setting host, port and scheme.
2010-04-30 18:57:38 +02:00