aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/connection.rb
Commit message (Collapse)AuthorAgeFilesLines
* Clean up http configJeremy Kemper2012-01-221-26/+16
|
* Convert URI.parser.parse to URI.parse, and remove ruby 1.8.x code.kennyj2012-01-191-2/+2
|
* Treat 303 See Other as a redirect response, tooJeremy Kemper2011-10-111-1/+1
|
* activeresource should treat HTTP status 307 as redirection, same as 301 and ↵Jim Herzberg2011-10-111-1/+1
| | | | 302; added missing test cases for statii 301 and 302.
* Fixed digest authentication for requests with a query string [#3158]Colin Shield & Ian Lesperance2011-09-281-1/+4
|
* updated all the tests in ARes to work with jsonJosh Kalderimis2011-05-181-1/+1
|
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-1/+1
| | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
* Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-121-1/+1
| | | | suggestion!
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-1/+2
| | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
* Move uri parser to AS as URI.parser method to reuse it in AP and ARes.Emilio Tagua2010-09-281-5/+5
|
* Allow per Resource format settingsJacques Crocker2010-09-251-1/+1
| | | | | | | | | | Previously, ActiveResource was using the connection level formatter for get requests. This made it impossible to use custom formatters per resource. Additionally this commit makes the Connection request methods more consistent. It always returns a Response. The base will then decode it each the response using its format setting. Merging this commit will allow users to add custom formatters on a per Resource basis. This enables handling pagination responses from the server side, a very common use case that was previously impossible without monkeypatching XmlFormat. Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-021-2/+1
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-021-1/+2
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-021-1/+1
| | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove URI object from ActiveResource notification, send the :mailer class ↵José Valim2010-01-151-3/+4
| | | | in AM (like in AP#process_action) and remove locale instrumentation.
* Yield the payload notifications for further modification (like adding the ↵José Valim2010-01-151-3/+3
| | | | result).
* Add notifications to ActiveResource.José Valim2010-01-141-9/+4
|
* Ruby 1.9.2: URI.parse and .decode are deprecatedJeremy Kemper2009-11-091-4/+5
|
* Digest auth option for ActiveResource.pivotal2009-10-151-11/+79
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Active Resource recognizes 410 as Resource Gone now [#2316 state:resolved] ↵Jordan Brough2009-08-091-0/+2
| | | | | | [Jordan Brough, Jatinder Singh] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make ActiveResource#exists? work [#3020 state:resolved]Jatinder Singh2009-08-091-2/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add ability to set SSL options on ARes connections.Roy Nicholson2009-08-091-3/+32
| | | | | | [#2370 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Setting connection timeout also affects Net::HTTP open_timeout.Jeremy Kemper2009-08-091-7/+19
| | | | [#2947 state:resolved]
* HTTP proxy supportMarshall Huss2009-08-081-3/+13
| | | | | | [#2133 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ruby 1.9 compat: fix for SSL in Active ResourceBrendan Schwartz2009-08-071-1/+1
| | | | | | [#1272 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Setup ActiveResource autoloadsJoshua Peek2009-06-081-2/+0
|
* Cherry pick Active Support dependencies. Autoload.Jeremy Kemper2009-05-061-56/+4
|
* Merge docrailsPratik Naik2009-03-241-11/+11
|
* Benchmark.msJeremy Kemper2008-12-091-2/+2
|
* HTTP Accept headerEdgar J. Suarez2008-09-181-1/+1
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Format related patches to support serializing data out in the correct format ↵Rasik Pandey2008-08-291-7/+18
| | | | | | | with correct http request headers per http method type [#450 state:resolved] Signed-off-by: Tarmo Tänav <tarmo@itech.ee> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Consistently use the framework's configured logger and avoid reverting to ↵Joshua Peek2008-08-181-8/+8
| | | | RAILS_DEFAULT_LOGGER unless necessary.
* Fixed problems with the logger used if the logging string included %'s [#840 ↵David Heinemeier Hansson2008-08-151-1/+1
| | | | state:resolved] (Jamis Buck)
* Improve documentation coverage and markupXavier Noria2008-05-021-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed response logging to use length instead of the entire thing (seangeo) ↵David Heinemeier Hansson2008-04-291-1/+1
| | | | [#27 state:resolved]
* Rescue from Timeout::Error in ActiveResource::Connection.Cheah Chu Yeow2008-04-221-0/+10
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Introduce ActiveResource::Base.timeout. This allows a timeout to be set on ↵Cheah Chu Yeow2008-04-221-3/+9
| | | | | | the internal Net::HTTP instance ARes uses (default is 60 seconds). Setting a low timeout allows ARes clients to fail-fast in the event of a unresponsive/crashed server, rather than cause cascading failures in your application. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* URI.decode site username/password. Closes #11169 [Ernesto Jimenez]Jeremy Kemper2008-02-191-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add user and password configuration options to ActiveResource::Base, not ↵Michael Koziarski2008-02-181-3/+16
| | | | | | all credentials can be specified inline. Closes #11112 [ernesto.jimenez] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8891 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use HEAD instead of GET inside exists? Closes #11062 [bscofield]Michael Koziarski2008-02-091-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added more specific exceptions for 400, 401, and 403 (all descending from ↵David Heinemeier Hansson2007-12-141-0/+15
| | | | | | ClientError so existing rescues will work) (closes #10326) [trek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct empty response handling. Closes #10445.Jeremy Kemper2007-12-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8364 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't cache net/http object so that ActiveResource is more thread-safe. ↵Rick Olson2007-11-191-9/+6
| | | | | | Closes #10142 [kou] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveResource.format= which defaults to :xml but can also be set to ↵David Heinemeier Hansson2007-09-201-21/+9
| | | | | | :json [DHH]. Added one-off declarations of mock behavior [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Raise ActiveResource::Redirection on 301,302 http codeTobias Lütke2007-08-091-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Big documentation upgrade for ARes (closes #8694) [jeremymcanally]David Heinemeier Hansson2007-06-231-10/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper handling of arrays. Closes #8537 [hasmanyjosh]Rick Olson2007-06-211-19/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that post and put requests pass in Content-Length to the server. Tobias Lütke2007-06-191-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Recognize and raise an exception on 405 Method Not Allowed responses. Closes ↵Jeremy Kemper2007-05-261-0/+9
| | | | | | #7692. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for setting custom headers per ActiveResource model [Rick]Rick Olson2007-04-291-10/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de