Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clean up http config | Jeremy Kemper | 2012-01-22 | 1 | -26/+16 |
| | |||||
* | Convert URI.parser.parse to URI.parse, and remove ruby 1.8.x code. | kennyj | 2012-01-19 | 1 | -2/+2 |
| | |||||
* | Treat 303 See Other as a redirect response, too | Jeremy Kemper | 2011-10-11 | 1 | -1/+1 |
| | |||||
* | activeresource should treat HTTP status 307 as redirection, same as 301 and ↵ | Jim Herzberg | 2011-10-11 | 1 | -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 Lesperance | 2011-09-28 | 1 | -1/+4 |
| | |||||
* | updated all the tests in ARes to work with json | Josh Kalderimis | 2011-05-18 | 1 | -1/+1 |
| | |||||
* | Remove `#among?` from Active Support | Prem Sichanugrist | 2011-04-13 | 1 | -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 Hansson | 2011-04-12 | 1 | -1/+1 |
| | | | | suggestion! | ||||
* | Using Object#in? and Object#either? in various places | Prem Sichanugrist | 2011-04-11 | 1 | -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 Tagua | 2010-09-28 | 1 | -5/+5 |
| | |||||
* | Allow per Resource format settings | Jacques Crocker | 2010-09-25 | 1 | -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é Valim | 2010-09-02 | 1 | -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łkowski | 2010-09-02 | 1 | -1/+2 |
| | | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Change event namespace ordering to most-significant first [#4504 state:resolved] | Justin George | 2010-05-02 | 1 | -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é Valim | 2010-01-15 | 1 | -3/+4 |
| | | | | in AM (like in AP#process_action) and remove locale instrumentation. | ||||
* | Yield the payload notifications for further modification (like adding the ↵ | José Valim | 2010-01-15 | 1 | -3/+3 |
| | | | | result). | ||||
* | Add notifications to ActiveResource. | José Valim | 2010-01-14 | 1 | -9/+4 |
| | |||||
* | Ruby 1.9.2: URI.parse and .decode are deprecated | Jeremy Kemper | 2009-11-09 | 1 | -4/+5 |
| | |||||
* | Digest auth option for ActiveResource. | pivotal | 2009-10-15 | 1 | -11/+79 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Active Resource recognizes 410 as Resource Gone now [#2316 state:resolved] ↵ | Jordan Brough | 2009-08-09 | 1 | -0/+2 |
| | | | | | | [Jordan Brough, Jatinder Singh] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Make ActiveResource#exists? work [#3020 state:resolved] | Jatinder Singh | 2009-08-09 | 1 | -2/+3 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Add ability to set SSL options on ARes connections. | Roy Nicholson | 2009-08-09 | 1 | -3/+32 |
| | | | | | | [#2370 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Setting connection timeout also affects Net::HTTP open_timeout. | Jeremy Kemper | 2009-08-09 | 1 | -7/+19 |
| | | | | [#2947 state:resolved] | ||||
* | HTTP proxy support | Marshall Huss | 2009-08-08 | 1 | -3/+13 |
| | | | | | | [#2133 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Ruby 1.9 compat: fix for SSL in Active Resource | Brendan Schwartz | 2009-08-07 | 1 | -1/+1 |
| | | | | | | [#1272 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Setup ActiveResource autoloads | Joshua Peek | 2009-06-08 | 1 | -2/+0 |
| | |||||
* | Cherry pick Active Support dependencies. Autoload. | Jeremy Kemper | 2009-05-06 | 1 | -56/+4 |
| | |||||
* | Merge docrails | Pratik Naik | 2009-03-24 | 1 | -11/+11 |
| | |||||
* | Benchmark.ms | Jeremy Kemper | 2008-12-09 | 1 | -2/+2 |
| | |||||
* | HTTP Accept header | Edgar J. Suarez | 2008-09-18 | 1 | -1/+1 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Format related patches to support serializing data out in the correct format ↵ | Rasik Pandey | 2008-08-29 | 1 | -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 Peek | 2008-08-18 | 1 | -8/+8 |
| | | | | RAILS_DEFAULT_LOGGER unless necessary. | ||||
* | Fixed problems with the logger used if the logging string included %'s [#840 ↵ | David Heinemeier Hansson | 2008-08-15 | 1 | -1/+1 |
| | | | | state:resolved] (Jamis Buck) | ||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -2/+2 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Fixed response logging to use length instead of the entire thing (seangeo) ↵ | David Heinemeier Hansson | 2008-04-29 | 1 | -1/+1 |
| | | | | [#27 state:resolved] | ||||
* | Rescue from Timeout::Error in ActiveResource::Connection. | Cheah Chu Yeow | 2008-04-22 | 1 | -0/+10 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Introduce ActiveResource::Base.timeout. This allows a timeout to be set on ↵ | Cheah Chu Yeow | 2008-04-22 | 1 | -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 Kemper | 2008-02-19 | 1 | -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 Koziarski | 2008-02-18 | 1 | -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 Koziarski | 2008-02-09 | 1 | -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 Hansson | 2007-12-14 | 1 | -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 Kemper | 2007-12-10 | 1 | -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 Olson | 2007-11-19 | 1 | -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 Hansson | 2007-09-20 | 1 | -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 code | Tobias Lütke | 2007-08-09 | 1 | -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 Hansson | 2007-06-23 | 1 | -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 Olson | 2007-06-21 | 1 | -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ütke | 2007-06-19 | 1 | -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 Kemper | 2007-05-26 | 1 | -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 Olson | 2007-04-29 | 1 | -10/+10 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |