Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid adding component lib/ to load path multiple times | Joshua Peek | 2009-11-09 | 1 | -1/+3 |
| | |||||
* | Symbol#to_proc is not needed for Ruby >= 1.8.7 | Xavier Noria | 2009-11-09 | 1 | -1/+0 |
| | |||||
* | Have all the tests running off a single Gemfile | Yehuda Katz + Carl Lerche | 2009-10-20 | 1 | -2/+8 |
| | |||||
* | Fix tests | Jeremy Kemper | 2009-10-14 | 1 | -0/+1 |
| | |||||
* | Digest auth option for ActiveResource. | pivotal | 2009-10-15 | 3 | -24/+167 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Fix for Ruby 1.9 - define_method throws an exception under 1.9 if given ↵ | Chad Woolley | 2009-10-08 | 1 | -1/+1 |
| | | | | | | incorrect number of args Signed-off-by: Carl Lerche <carllerche@mac.com> | ||||
* | Ruby 1.9: Fix ActiveResource::ConnectionError#to_s when @response does not ↵ | Chad Woolley | 2009-10-08 | 1 | -1/+1 |
| | | | | | | respond to #code or #message Signed-off-by: Carl Lerche <carllerche@mac.com> | ||||
* | Cleanup whitespace introduced in 8377646 and f4f6888 | Joshua Peek | 2009-10-02 | 2 | -20/+13 |
| | |||||
* | add indifferent access to the attributes | Taryn East | 2009-10-02 | 2 | -0/+28 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | update_attribute(s) added to Active Resource | Taryn East | 2009-10-02 | 1 | -2/+51 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | 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] |