aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'mainstream/master'Pratik Naik2009-11-178-71/+310
|\ | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/conversions.rb
| * Unify test:isolated across components and run by default at toplevelJeremy Kemper2009-11-101-7/+8
| |
| * Avoid adding component lib/ to load path multiple timesJoshua Peek2009-11-091-1/+3
| |
| * Symbol#to_proc is not needed for Ruby >= 1.8.7Xavier Noria2009-11-091-1/+0
| |
| * Ruby 1.9.2: URI.parse and .decode are deprecatedJeremy Kemper2009-11-092-8/+13
| |
| * Remove reliance on string access core extensionJeremy Kemper2009-11-091-12/+15
| |
| * Consolidate Object#to_param and #to_query core extensionsJeremy Kemper2009-11-021-0/+1
| |
| * Have all the tests running off a single GemfileYehuda Katz + Carl Lerche2009-10-201-2/+8
| |
| * We won't be publishing tars and zips anymoreJoshua Peek2009-10-161-6/+4
| |
| * Fix testsJeremy Kemper2009-10-141-0/+1
| |
| * Digest auth option for ActiveResource.pivotal2009-10-155-35/+258
| | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* | Merge commit 'mainstream/master'Pratik Naik2009-10-106-28/+131
|\|
| * Fix for Ruby 1.9 - define_method throws an exception under 1.9 if given ↵Chad Woolley2009-10-081-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 Woolley2009-10-082-2/+5
| | | | | | | | | | | | respond to #code or #message Signed-off-by: Carl Lerche <carllerche@mac.com>
| * Cleanup whitespace introduced in 8377646 and f4f6888Joshua Peek2009-10-023-55/+47
| |
| * add indifferent access to the attributesTaryn East2009-10-023-1/+30
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * update_attribute(s) added to Active ResourceTaryn East2009-10-022-2/+81
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* | Merge commit 'mainstream/master'Pratik Naik2009-09-302-69/+20
|\|
| * Make gemspecs the authoritative source instead of generating them from the ↵Joshua Peek2009-09-252-69/+20
| | | | | | | | Rakefile
* | Merge commit 'mainstream/master'Pratik Naik2009-09-218-8/+66
|\|
| * Fix brittle content-type check. [#1956 state:committed]Jeremy Kemper2009-09-172-4/+4
| |
| * Revert "Allow frameworks to be required by their gem name"Jeremy Kemper2009-09-121-1/+0
| | | | | | | | | | | | | | This has just been confusing. Better to educate than band-aid. This reverts commit 18a24274ec823ded4ffa29bf33fd3d76816aab7e. Originally from http://dev.rubyonrails.org/ticket/8845 [drnic]
| * Fix failing ARes isolated testsJoshua Peek2009-09-053-2/+6
| |
| * Kill AMo observing wrap_with_notifications since ARes was only using itJoshua Peek2009-09-021-1/+12
| |
| * Add required dependencies on activemodelCarl Lerche2009-09-012-2/+6
| |
| * Add rake gemspec and gemspecs to the repoYehuda Katz2009-08-312-0/+40
| |
* | Merge commit 'mainstream/master'Pratik Naik2009-08-3118-151/+757
|\|
| * Added first/last/all aliases for equivalent find scopestaryn2009-08-212-0/+60
| | | | | | | | | | | | | | 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?taryn2009-08-193-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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_everytaryn2009-08-192-10/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ↵taryn2009-08-192-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 ↵taryn2009-08-199-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 ↵taryn2009-08-193-15/+123
| | | | | | | | | | | | 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 Singh2009-08-151-3/+3
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Add support for errors in JSON format.Fabien Jakimowicz2009-08-094-26/+83
| | | | | | | | | | | | [#1956 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Ensure ActiveResource#load works with numeric arrays [Grzegorz Forysinski, ↵Grzegorz Forysinski2009-08-092-2/+23
| | | | | | | | | | | | | | | | 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 Brough2009-08-096-1/+36
| | | | | | | | | | | | [Jordan Brough, Jatinder Singh] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Make ActiveResource#exists? work [#3020 state:resolved]Jatinder Singh2009-08-092-2/+11
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Add ability to set SSL options on ARes connections.Roy Nicholson2009-08-096-3/+152
| | | | | | | | | | | | [#2370 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Added docs for ActiveResource HTTP proxy supportMarshall Huss2009-08-221-0/+7
|/
* Setting connection timeout also affects Net::HTTP open_timeout.Jeremy Kemper2009-08-092-7/+30
| | | | [#2947 state:resolved]
* HTTP proxy supportMarshall Huss2009-08-086-3/+118
| | | | | | [#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>
* Add wrap_with_notifications helper to AMo observingJoshua Peek2009-07-203-10/+14
|
* Add observing hooks to AResJoshua Peek2009-07-112-2/+62
|
* Move mocha down below initial T::U require and bump version to 0.9.7 [#2858 ↵Yehuda Katz + Carl Lerche2009-07-011-3/+1
| | | | state:resolved]
* Bump up the version to 3.0.preCarl Lerche2009-06-302-4/+4
|
* Move model naming into ActiveModelJoshua Peek2009-06-171-0/+1
|
* Prefer JSON.encode(value) to value.to_jsonJeremy Kemper2009-06-081-2/+2
|
* Make use of AS::Concern in ActiveResourceJoshua Peek2009-06-082-40/+37
|