aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
Commit message (Collapse)AuthorAgeFilesLines
* Fixed minor typo in commentPaolo "Nusco" Perrotta2011-04-261-1/+1
|
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-132-2/+2
| | | | | | 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 Hansson2011-04-122-2/+2
| | | | suggestion!
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-113-3/+6
| | | | 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?.
* Gem::Specification#has_rdoc= is deprecated since rubygems 1.7.0Santiago Pastorino2011-04-021-1/+0
|
* Active Resource typos.R.T. Lechow2011-03-055-6/+6
|
* We're in 2011, let's update our licensePrem Sichanugrist2011-02-221-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* ActiveResource validation tests did not test ActiveModel validations. Adjust ↵Ken Mazaika2011-02-152-13/+12
| | | | | | the test to be done the Rails3 way. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fixed a bug where ActiveResource::HttpMock would not replace an existing ↵Josh Bassett2011-02-092-5/+39
| | | | | | response when passing a block to the respond_to method. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* make the example code a bit more accurateAkira Matsuda2011-01-291-1/+1
|
* Fix indentationAkira Matsuda2011-01-291-1/+1
|
* sorry, the CI cannot lie to us anymore (Part II)Santiago Pastorino2011-01-131-1/+1
|
* minor fixesin READMEsVijay Dev2010-12-201-1/+1
|
* Rakefiles are executables, and rake loads rake, not rakefile coderaggi2010-11-251-1/+1
|
* class inheritable attributes is used no more! all internal use of class ↵Josh Kalderimis2010-11-201-3/+5
| | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com>
* Make ARes tests unescape [ and ]Santiago Pastorino2010-11-181-3/+3
|
* Update the version.rb files to include a PRE partCarl Lerche2010-11-161-2/+2
|
* syncs CHANGELOGs for 3.0.2 in 3-0-stable with the ones in masterXavier Noria2010-11-091-0/+4
|
* Merge CHANGELOGs from 3-0-stableSantiago Pastorino2010-10-181-0/+3
|
* Always pull in version for frameworks (standardize autoload / require / none)wycats2010-10-101-0/+1
|
* - update documentationGaston Ramos2010-10-071-0/+9
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* - ActiveResource::HttpMock.respond_toGaston Ramos2010-10-071-1/+14
| | | | | | | do not replace the response with the same path but different method - Fix typo Signed-off-by: José Valim <jose.valim@gmail.com>
* - Fix ActiveResource::HttpMock.respond_to replace the responseGaston Ramos2010-10-072-23/+47
| | | | | | if it has the same request Signed-off-by: José Valim <jose.valim@gmail.com>
* PERF: more changes from inject({}) to Hash + mapSantiago Pastorino2010-10-031-1/+1
|
* changing map and include to findAaron Patterson2010-09-301-1/+1
|
* assert on empty array is always true. fixing test.Neeraj Singh2010-09-301-1/+1
|
* Move uri parser to AS as URI.parser method to reuse it in AP and ARes.Emilio Tagua2010-09-282-15/+12
|
* Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 ↵Matthijs Langenberg2010-09-274-5/+22
| | | | | | | | | | | | | | | | | | | | | | | state:resolved] Following namespace use case was broken with Ruby 1.9: class Author < ActiveRecord::Base ... end module Api class Book < ActiveResouce::Base end end Let's say XML contains <book><author><name>John</name></author>.... Api::Book.first.author.class.to_s #=> Ruby 1.8.7: "Api::Book::Author" (namespaced, correct), Ruby 1.9: "Author" (toplevel, broken) Signed-off-by: José Valim <jose.valim@gmail.com>
* - added mock to test ActiveResource::MissingPrefixParam in finder_testGaston Ramos2010-09-271-0/+1
|
* - update exceptions documentationGaston Ramos2010-09-271-0/+11
|
* - check prefix options in collection_pathGaston Ramos2010-09-272-1/+8
|
* - better name for prefix param test caseGaston Ramos2010-09-271-1/+1
|
* - refactoring, move prefix_options check to a custom methodGaston Ramos2010-09-271-5/+9
|
* - elmenth_path raise an ActiveResource::MissingPrefixParam exception when ↵Gaston Ramos2010-09-274-1/+18
| | | | | | | prefix_options does not has all required prefix_options ex: class StreetAddress < ActiveResource::Base self.site = "http://37s.sunrise.i:3000/people/:person_id/" end StreetAddress.element_path(1) # => ActiveResource::MissingPrefixParam
* Fix active_resource assertions.José Valim2010-09-251-2/+2
|
* Allow per Resource format settingsJacques Crocker2010-09-255-17/+25
| | | | | | | | | | 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>
* Allow ActiveResource to work with non-generated ids [#5660 state:resolved]Jacques Crocker2010-09-255-5/+80
| | | | | | This commit updates new? so that it knows whether or not the record was actually new or not, and doesn't rely solely on the presence of id. This enables the ability to set a custom primary_key that is not autogenerated by the server. Signed-off-by: José Valim <jose.valim@gmail.com>
* resolves rdoc conflictXavier Noria2010-09-231-1/+1
|\
| * Tiny fixes to rdocAlexey Mahotkin2010-09-161-1/+1
| |
* | No need to use inject here.Emilio Tagua2010-09-221-4/+1
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Exception handling more readableThiago Pradi2010-09-191-2/+2
| | | | | | | | | | | | [#5601 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | make sure a Content-Length header exists and that the response.body is not ↵Mike Abner2010-09-181-1/+1
| | | | | | | | nil before trying to call methods on it. Rack does not allow HTTP 204 responses to have a content-length header set. [#5038 state:resolved]
* | test for #5038Neeraj Singh2010-09-181-0/+8
| |
* | Refactor setup methods by extracting them in abstract_unit, remove TODO.Emilio Tagua2010-09-174-237/+103
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Remove TODO and support all expected attributes.Emilio Tagua2010-09-172-13/+47
|/ | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove all deprecation warnings in activeresourceCarlos Antonio da Silva2010-09-062-18/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-023-5/+1
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* ActiveModel#to_xml fix (renamed parameter).Andreas Garnæs2010-09-021-0/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-023-1/+5
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Adding option to ActiveResource to allow you to not reset the previously ↵Mikel Lindsaar2010-08-292-3/+79
| | | | stored requests and responses by passing false to respond_to