1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00
Commit graph

33 commits

Author SHA1 Message Date
John Nunemaker
ae3cd0f0dd Merge branch 'integration' of git@github.com:jnunemaker/httparty into integration 2009-07-19 19:52:51 -04:00
Don Petersen
cf420a0387 Fixed a bug in the cookies class method that caused cookies to be forgotten after the first request. Reported by David Turnbull.
Signed-off-by: John Nunemaker <nunemaker@gmail.com>
2009-07-20 07:52:37 +08:00
John Nunemaker
0b036e75bc Updated file path requires. 2009-07-19 19:17:33 -04:00
Anthony Eden
3e3d23383a fix failing spec
Signed-off-by: John Nunemaker <nunemaker@gmail.com>
2009-07-20 07:08:48 +08:00
John Nunemaker
d8996057b5 Fixed failing spec. 2009-04-02 11:37:09 -04:00
Matt Scilipoti
a9d89d94a0 HTTParty.baseuri should not modify the parameters.
HTTParty.baseuri is modifying the passed parameters.  This can cause
unexpected "side-effects".  For example: if you pass a value from a
configuration hash, the value in the configuratiuon hash is changed.

Signed-off-by: John Nunemaker <nunemaker@gmail.com>
2009-03-31 07:59:35 +08:00
jgeiger
0b067f7a2c only show the acceptable format one time per format on exception
Signed-off-by: John Nunemaker <nunemaker@gmail.com>
2009-03-31 07:57:46 +08:00
jgeiger
acd306859d allow a format :plain option
Signed-off-by: John Nunemaker <nunemaker@gmail.com>
2009-03-31 07:57:44 +08:00
Miha Filej
3db19cbee5 Added yaml response parsing
Signed-off-by: John Nunemaker <nunemaker@gmail.com>
2009-02-11 12:29:12 +08:00
Don Petersen
6db6670994 Add support for a ":cookies" option to be used at the class level, or as
an option on any individual call.  It should be passed a hash, which
will be converted to the proper format and added to the request headers
when the call is made.

No special handling is in place for semi-colons, commas, or whitespace.
The RFC doesn't specify an official method for escaping them.  That's
your problem.

Signed-off-by: John Nunemaker <nunemaker@gmail.com>
2009-01-29 17:12:05 +08:00
Don Petersen
26fd4eebfa Change HTTParty specs to use a fresh anonymous HTTParty extending class
for each individual test to work against, rather than the existing setup
which uses the same class in multiple tests.

Signed-off-by: John Nunemaker <nunemaker@gmail.com>
2009-01-29 17:12:04 +08:00
John Nunemaker
790764ed74 spec'd empty responses 2009-01-28 13:17:39 -05:00
John Nunemaker
71d41172a3 fixed undefined method add_node for nil class in xml parsing. [#16 state:resolved] 2009-01-28 12:55:25 -05:00
John Nunemaker
411340826b Fixed weird uri normalizing issue that occurred when I was doing normalization in request object. Also caught a piece of ActiveSupport Hash#to_query that I was using. Added Hash#to_params to fix that bug. 2008-12-06 23:41:28 -05:00
John Nunemaker
aa09eb4c65 Moved module inheritable attributes to it's own file. Added specs for HTTParty.get. 2008-12-06 19:43:31 -05:00
John Nunemaker
ab17bb371d Fixed that base_uri was not always being normalized. [#13 state:resolved] 2008-12-01 09:44:30 -05:00
John Nunemaker
c531652d81 Made it so that multiple class definitions don't overrun each others options by using class instance variable instead of class variable. [#11 state:resolved] 2008-11-30 23:58:06 -05:00
John Nunemaker
9931e2a20d Fixed failing specs. 2008-11-11 23:27:58 -05:00
Rein Henrichs
7bdca06bd4 Moving send_request and friends into HTTParty::Request 2008-11-08 13:59:57 -05:00
Rein Henrichs
a2fd09256f Replacing string parameters with Net::HTTP classes
- send_request now uses the Net::HTTP classes directly
  rather than using const_get to grab them from 'get', etc.
2008-11-08 12:05:59 -05:00
John Nunemaker
bcc38bcf32 Cleaned up base uri normalization. 2008-11-08 11:18:25 -05:00
Alex Vollmer
ae7ce30977 Add the ability to automatically follow redirects and to turn it off. 2008-10-25 00:34:33 -04:00
John Nunemaker
f90c40914a Fixed failing specs. 2008-10-25 00:34:25 -04:00
Alex Vollmer
31ad4f91c8 Treat nil or empty bodies specially to avoid blowing up during response parsing. 2008-10-25 00:32:31 -04:00
John Nunemaker
9b423a22c9 :body and :query now both take either a hash or a query string [#4 state:resolved] 2008-07-31 00:22:59 -04:00
John Nunemaker
3a8ad1da07 Added :basic_auth as an option key when making a request. [#1 state:resolved] 2008-07-31 00:05:36 -04:00
John Nunemaker
f4570a46c1 base_uri is no longer required. #get can take a full url and will fetch response. 2008-07-28 15:47:05 -04:00
John Nunemaker
a8ff3e3639 Added some argument errors and specs. 2008-07-28 13:32:35 -04:00
John Nunemaker
236b3ad4e0 Made it so default_params actually get merged into request. 2008-07-28 12:40:40 -04:00
John Nunemaker
0c05dcda55 Added #default_params method. Tweaked specs a bit. 2008-07-28 12:08:21 -04:00
John Nunemaker
0a1737e276 Added several specs for httparty and refactored a few methods along the way. 2008-07-28 11:56:58 -04:00
John Nunemaker
c97b1448ed Tweaked the specs a bit and added spec for basic_auth setting 2008-07-28 10:55:35 -04:00
John Nunemaker
1d48da0313 Renamed to HTTParty which is way more fun and unique than boring old web. 2008-07-28 10:49:53 -04:00
Renamed from spec/web_spec.rb (Browse further)