18 Commits

Author SHA1 Message Date
Mattia
f58f251051 Ruby 2.4.0 and Minitest 6 support (#644)
* Add Ruby 2.4 to Travis matrix

* test against ruby 2.4.0-rc1

* use `Integer` in place of `Fixnum` to be ruby-2.4 compliant
use `assert_nil` in place of `assert_equal nil` to be MiniTest 6 compliant

* use ruby 2.4.0 final release on travis matrix
2017-01-13 11:35:33 +00:00
Erik Michaels-Ober
faab1b08cd Replace test-unit with minitest 2012-12-16 20:22:03 -08:00
technoweenie
fa397470e2 simplify test requires 2012-10-21 10:25:34 -06:00
Mislav Marohnić
8f7f6694da remove dependency on Addressable::URI
This is a potentially breaking change for 3rd party code that relies on
env[:url] being specifically Addressable. After this change all urls are
passed around as instances of URI::HTTP.
2011-12-30 15:08:14 +01:00
Erik Michaels-Ober
4524cfafdc Cleanup trailing whitespace 2011-11-28 03:46:27 -08:00
Steve Burkett
179fef4cbc 204, 304 must not have a body 2011-05-23 14:28:23 -07:00
Mislav Marohnić
b9e54dbe0f add Response.apply_request method
Useful, for example, to re-apply the current request environment after
a response object was restored from cache.
2011-03-27 23:27:15 +02:00
Mislav Marohnić
ce861bbc14 restore compatibility with 3rd-party response middleware that defines parse() 2011-03-27 01:20:37 +01:00
Mislav Marohnić
3731010e26 add Response::RaiseError middleware that raises exceptions on HTTP 4xx/5xx 2011-03-26 21:21:18 +01:00
Mislav Marohnić
1f69367509 remove JSON response middleware 2011-03-26 21:16:33 +01:00
rick
7d12ed5ddb Faraday.new shortcut 2011-02-27 10:20:18 -08:00
rick
65b818e1af apparently ruby 1.9 wants me to raise exceptions differently 2011-02-27 10:06:30 -08: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
rick
57dfcfcb11 convert dynamic adapter tests to test/unit 2010-02-18 13:49:00 -08:00
rick
a47c6066fa remove dependency on context 2010-02-18 13:33:50 -08:00
rick
bf5f00ceac tweak ActiveSupport:JSON test when #decode('') returns false 2010-02-08 22:23:48 -08:00
rick
ca2c65edf2 handle nil bodies in response parsing 2010-02-06 19:58:27 -08:00
rick
67d619d780 rename Alice => Faraday. 2010-01-12 17:03:34 -08:00