aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
Commit message (Collapse)AuthorAgeFilesLines
* Base.exists?(id, options) and Base#exists? check whether the resource is ↵Jeremy Kemper2007-01-123-0/+38
| | | | | | found. Closes #6970. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Validating save returns boolean; update and create return responses.Jeremy Kemper2006-12-292-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* prefix_parameters pulls /:path/:params from the URI prefixJeremy Kemper2006-12-292-21/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* doh typo in commit from the hipJeremy Kemper2006-12-291-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* generate prefix parameters if undefinedJeremy Kemper2006-12-291-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Query string support. Closes #6855.Jeremy Kemper2006-12-293-6/+64
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5804 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Base#==, eql?, and hash methods. == returns true if its argument is ↵Jeremy Kemper2006-12-223-0/+61
| | | | | | identical to self or if it's an instance of the same class, is not new?, and has the same id. eql? is an alias for ==. hash delegates to id. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* test that element name includes module nestingJeremy Kemper2006-12-211-0/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* HttpMock InvalidRequestError inspects the mismatched requestJeremy Kemper2006-12-211-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Subclasses share superclass site until explicitly set. This way you can set ↵Jeremy Kemper2006-12-214-18/+45
| | | | | | Superclass.site = ... after subclasses have been defined. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* move http_mock to lib so others can use it in their Ares testsJeremy Kemper2006-12-212-5/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix Rakefile so that the rdoc can be generatedRick Olson2006-12-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow subclassed resources to share the site info [Rick]Rick Olson2006-12-134-1/+49
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix issues with ActiveResource collection handling. Closes #6291. [bmilekic]Rick Olson2006-12-126-26/+82
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5714 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* *_path instance methods. Check for missing/invalid site uri. http_mock ↵Jeremy Kemper2006-12-055-33/+54
| | | | | | response takes message arg, extracts numeric code. Tests log to test/debug.log git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use attr_accessor_with_default to dry up attribute initialization. ↵Marcel Molina2006-11-162-25/+6
| | | | | | References #6538. [Stuart Halloway] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* to_xml needs to accept an options hash to conform with the expectations of ↵Jamis Buck2006-10-241-2/+2
| | | | | | Hash#to_xml git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5362 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add basic logging support for logging outgoing requests.Jamis Buck2006-10-233-2/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Base.delete for deleting resources without having to instantiate them firstJamis Buck2006-10-063-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make #save behavior mimic AR::Base#save (true on success, false on failure)Jamis Buck2006-10-025-12/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assume the passed headers to the ActiveResource HttpMock Request/Response ↵Rick Olson2006-10-021-2/+2
| | | | | | are hashes [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Basic HTTP Authentication to ActiveResource (closes #6305). [jonathan]Rick Olson2006-09-297-39/+190
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* workaround collections loaded as :people => { :person => [{..attrs..}, ↵Jeremy Kemper2006-09-222-28/+44
| | | | | | {..attrs..}] } git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fixed failing tests now that non-GET requests are sent with .xml file ext. ↵Rick Olson2006-09-204-13/+30
| | | | | | Extracted #id_from_response as an entry point for customizing how a created resource gets its own ID. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash.create_from_xml has been renamed to Hash.from_xml, alias will exist ↵David Heinemeier Hansson2006-09-202-2/+2
| | | | | | until Rails 2.0 [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Version updates and missing licensesDavid Heinemeier Hansson2006-09-151-0/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* All verbs should use formatted urls [DHH]David Heinemeier Hansson2006-09-131-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Optimistic locking: raise ActiveResource::ResourceConflict on 409 Conflict ↵Jeremy Kemper2006-09-094-6/+26
| | | | | | response. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Basic validation support [Rick Olson]Rick Olson2006-09-086-3/+184
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5068 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* load expects a HashJeremy Kemper2006-09-052-5/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* load nil is noop. use new? instead of new_resource?Jeremy Kemper2006-09-042-2/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deep hashes are converted into collections of resources. Class attribute ↵Jeremy Kemper2006-09-045-14/+132
| | | | | | writer methods. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4985 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* consistent load path to prevent double loadsJeremy Kemper2006-09-041-3/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4984 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* test subdirs, turn warnings onJeremy Kemper2006-09-041-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4983 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Major updates to ActiveResource, please see changelog and unit tests [Rick ↵Rick Olson2006-09-017-54/+250
| | | | | | Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4890 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 200...400 are valid response codes. PUT and POST request bodies default to ''.Jeremy Kemper2006-08-313-21/+54
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4887 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* site= accepts URIsJeremy Kemper2006-08-313-4/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* start an Active Resource changelogJeremy Kemper2006-08-261-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Initial check-in of Active ResourseDavid Heinemeier Hansson2006-06-2512-0/+543
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de