Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix brittle content-type check. [#1956 state:committed] | Jeremy Kemper | 2009-09-17 | 1 | -2/+2 |
| | |||||
* | Fix failing ARes isolated tests | Joshua Peek | 2009-09-05 | 2 | -1/+4 |
| | |||||
* | Added first/last/all aliases for equivalent find scopes | taryn | 2009-08-21 | 1 | -0/+38 |
| | | | | | | | Just a copy from Active Record (with tests). Each is a warpper function for the equivalent scoped call to find eg first is a wrapper for find(:first) Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Added save! which raises ResourceInvalid unless valid? | taryn | 2009-08-19 | 2 | -2/+14 |
| | | | | | | | | | | | | | | | Similar to Active Record - it will raise ActiveResouce::ResourceInvalid if the resource is not valid (ie if <tt>valid?</tt> returns false) However - does not raise ActiveResource::ResourceNotFound if the callbacks fail (callbacks have not yet been implemented) - it will just try to save and raise if the callbacks all fail. This is not ideal behaviour - but will do until we decide to change the behaviour of save_with_validations to actually raise (rather than catch) the ResourceInvalid exception. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Swallow ResourceNotFound error on find_every | taryn | 2009-08-19 | 1 | -0/+13 |
| | | | | | | | | | | | | | | Active Record does not explode with RecordNotFound if you go looking for a collection of objects - it just returns nil. Thus Active Resource should also not explode. After all - finding no objects that match a set of conditions is not exceptional behaviour - unlike looking for a specific object with a given id (which you'd expect to exist). I've also added documentation to +find+ to reflect this. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Pulled find-based tests into their own test case. This matches Active ↵ | taryn | 2009-08-19 | 2 | -76/+182 |
| | | | | | | Record, and allows us to have one places where all find-tests are located, which will help when adding dynamic finders later. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Moved all test cases into a new test/cases directory to match Active Record ↵ | taryn | 2009-08-19 | 9 | -0/+0 |
| | | | | | | test directory structure. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Added validations to ActiveResource. Added a smoke test to see if we can add ↵ | taryn | 2009-08-19 | 2 | -0/+74 |
| | | | | | | a validation and use it, and add a validates callback and use it. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Fix ActiveResource load test for 64bit machines [#3051 state:resolved] | Jatinder Singh | 2009-08-15 | 1 | -3/+3 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Add support for errors in JSON format. | Fabien Jakimowicz | 2009-08-09 | 1 | -21/+56 |
| | | | | | | [#1956 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Ensure ActiveResource#load works with numeric arrays [Grzegorz Forysinski, ↵ | Grzegorz Forysinski | 2009-08-09 | 1 | -1/+16 |
| | | | | | | | | Elad Meidar] [#2305 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Active Resource recognizes 410 as Resource Gone now [#2316 state:resolved] ↵ | Jordan Brough | 2009-08-09 | 2 | -0/+27 |
| | | | | | | [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 | -0/+8 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Add ability to set SSL options on ARes connections. | Roy Nicholson | 2009-08-09 | 2 | -0/+69 |
| | | | | | | [#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 | -0/+11 |
| | | | | [#2947 state:resolved] | ||||
* | HTTP proxy support | Marshall Huss | 2009-08-08 | 3 | -0/+78 |
| | | | | | | [#2133 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Add observing hooks to ARes | Joshua Peek | 2009-07-11 | 1 | -0/+53 |
| | |||||
* | Move mocha down below initial T::U require and bump version to 0.9.7 [#2858 ↵ | Yehuda Katz + Carl Lerche | 2009-07-01 | 1 | -3/+1 |
| | | | | state:resolved] | ||||
* | Setup ActiveResource autoloads | Joshua Peek | 2009-06-08 | 1 | -1/+0 |
| | |||||
* | Merge branch 'master' into active_model | Joshua Peek | 2009-05-29 | 4 | -10/+8 |
|\ | | | | | | | | | | | | | | | | | | | | | Conflicts: activemodel/lib/active_model/core.rb activemodel/test/cases/state_machine/event_test.rb activemodel/test/cases/state_machine/state_transition_test.rb activerecord/lib/active_record/validations.rb activerecord/test/cases/validations/i18n_validation_test.rb activeresource/lib/active_resource.rb activeresource/test/abstract_unit.rb | ||||
| * | Cherry-pick core extensions | Jeremy Kemper | 2009-05-13 | 3 | -0/+3 |
| | | |||||
| * | Fix tests on 1.8.6 | Jeremy Kemper | 2009-05-06 | 1 | -0/+1 |
| | | |||||
| * | Cherry pick Active Support dependencies. Autoload. | Jeremy Kemper | 2009-05-06 | 2 | -7/+4 |
| | | |||||
* | | Deprecate Errors#on_base/add_to_base/invalid?/each_full | Pratik Naik | 2009-03-21 | 2 | -2/+5 |
| | | |||||
* | | Fix ActiveResource::Errors deprecation messages | Pratik Naik | 2009-03-20 | 1 | -2/+2 |
| | | |||||
* | | Make Active Resource use ActiveModel::Errors | Pratik Naik | 2009-03-19 | 1 | -1/+1 |
|/ | |||||
* | Strip invalid leading whitespace error uncovered by nokogiri | Jeremy Kemper | 2009-03-10 | 1 | -1/+1 |
| | |||||
* | Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. | Jeremy Kemper | 2009-03-08 | 2 | -14/+14 |
| | | | | [#1617 state:resolved] | ||||
* | Ensure Active Support is loaded locally rather than from RubyGems. [#1620 ↵ | Jeremy Kemper | 2009-03-08 | 1 | -0/+1 |
| | | | | state:committed] | ||||
* | Prefer tap to returning | Jeremy Kemper | 2009-02-06 | 1 | -3/+2 |
| | |||||
* | Require rubygems | Jeremy Kemper | 2009-02-03 | 1 | -1/+1 |
| | |||||
* | Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha. | Jeremy Kemper | 2009-02-03 | 2 | -22/+16 |
| | |||||
* | Improve exception handling when Location header is invalid. [#1192 ↵ | Bob Aman | 2009-01-28 | 1 | -1/+14 |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | ActiveResource#eqls? and == should not take into account object identity and ↵ | Rasik Pandey | 2009-01-28 | 1 | -0/+9 |
| | | | | | | prefix options should be considered. [#1098 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Ruby 1.9 compat: don't shadow local var with block arg | Jeremy Kemper | 2008-11-22 | 1 | -1/+1 |
| | |||||
* | Fix indentation mismatches | Jeremy Kemper | 2008-11-22 | 2 | -56/+56 |
| | |||||
* | Silence parens warning | Jeremy Kemper | 2008-11-07 | 1 | -1/+1 |
| | |||||
* | Fixed that ActiveResource#post would post an empty string when it shouldn't ↵ | David Heinemeier Hansson | 2008-10-30 | 1 | -0/+2 |
| | | | | be posting anything (Paolo Angelini) [#525 state:committed] | ||||
* | Add ActiveResource::Base#to_xml and ActiveResource::Base#to_json methods. ↵ | Cody Fauser | 2008-10-07 | 1 | -0/+17 |
| | | | | | | [#1011 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | ActiveResource can load array of strings, like serialize :bar, Array | Matthew Moore | 2008-10-05 | 1 | -0/+24 |
| | | | | | Signed-off-by: rick <technoweenie@gmail.com> [#1055 state:resolved] | ||||
* | HTTP Accept header | Edgar J. Suarez | 2008-09-18 | 1 | -2/+10 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵ | Jeremy Kemper | 2008-08-31 | 4 | -15/+15 |
| | | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb | ||||
* | Format related patches to support serializing data out in the correct format ↵ | Rasik Pandey | 2008-08-29 | 3 | -14/+25 |
| | | | | | | | 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> | ||||
* | Clear prefix_parameters cache when setting prefix | Tarmo Tänav | 2008-08-23 | 1 | -0/+9 |
| | |||||
* | Add ActiveResource::Base.find(:last). [#754 state:resolved] | Adrian Mugnolo | 2008-08-22 | 1 | -46/+52 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Update uses_mocha in ActionMailer and ActiveResource | Joshua Peek | 2008-07-19 | 1 | -9/+13 |
| | |||||
* | Fixes parsing deep nested resources from XML. [#380 state:resolved] | Luis Hurtado | 2008-06-09 | 2 | -0/+51 |
| | |||||
* | Rescue from Timeout::Error in ActiveResource::Connection. | Cheah Chu Yeow | 2008-04-22 | 2 | -1/+22 |
| | | | | 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 | 2 | -0/+71 |
| | | | | | | 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> | ||||
* | Add #clone. Closes #7352 [Ryan Daigle, thechrisoshow] | Jeremy Kemper | 2008-03-28 | 1 | -0/+35 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |