Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | replaced active support ordered hash to ruby hash on active resource | prasath | 2012-02-09 | 1 | -3/+1 |
| | |||||
* | add handling for backwards-compatibility and update documentation | Matt Jones | 2012-02-04 | 1 | -0/+30 |
| | |||||
* | Merge remote-tracking branch 'odorcicd/fix_activeresource_json_errors' into ↵ | Matt Jones | 2012-02-04 | 1 | -2/+2 |
|\ | | | | | | | compatible_json_errors | ||||
| * | Fix ActiveResource JSON error parser and incorrect tests | Denis Odorcic | 2011-09-16 | 1 | -2/+2 |
| | | |||||
* | | Replaced all 'for' loops with Enumerable#each | Nathan Broadbent | 2012-01-30 | 1 | -3/+3 |
| | | |||||
* | | Clean up http config | Jeremy Kemper | 2012-01-22 | 1 | -1/+0 |
| | | |||||
* | | Split Basic and Digest authorization tests | Jeremy Kemper | 2012-01-21 | 1 | -82/+79 |
| | | |||||
* | | activeresource tests use AS::TestCase | Aaron Patterson | 2012-01-05 | 10 | -10/+10 |
| | | |||||
* | | remove ActiveSupport::Base64 in favor of ::Base64 | Sergey Nartimov | 2012-01-02 | 1 | -8/+8 |
| | | |||||
* | | Treat 303 See Other as a redirect response, too | Jeremy Kemper | 2011-10-11 | 1 | -3/+13 |
| | | |||||
* | | activeresource should treat HTTP status 307 as redirection, same as 301 and ↵ | Jim Herzberg | 2011-10-11 | 1 | -0/+9 |
| | | | | | | | | 302; added missing test cases for statii 301 and 302. | ||||
* | | Fixed digest authentication for requests with a query string [#3158] | Colin Shield & Ian Lesperance | 2011-09-28 | 1 | -0/+6 |
| | | |||||
* | | Make serializable_hash take attr values directly from attributes hash. | Jon Leighton | 2011-09-26 | 1 | -3/+11 |
|/ | | | | | | | | | | | | Previously, it would use send() to get the attribute. In Active Resource, this would rely on hitting method missing. If a method with the same name was defined further up the ancestor chain, that method would wrongly be called. This change fixes test_to_xml_with_private_method_name_as_attribute in activeresource/test/cases/base_test.rb, which was broken after 51bef9d8fb0b4da7a104425ab8545e9331387743, because that change made to_xml use serializable_hash. | ||||
* | Merge pull request #2678 from jmileham/ares_content_length_bug | Jon Leighton | 2011-09-12 | 1 | -3/+27 |
|\ | | | | | ActiveResource shouldn't rely on the presence of Content-Length | ||||
| * | Failing test: ActiveResource shouldn't rely on the presence of Content-Length | John Mileham | 2011-09-09 | 1 | -3/+27 |
| | | |||||
* | | Not used variables removed. Warnings removed. | Arun Agrawal | 2011-09-10 | 1 | -2/+2 |
| | | |||||
* | | Do not use objects that don't respond to to_sym (integers, floats, dates...) ↵ | Marc G Gauthier | 2011-09-01 | 1 | -0/+19 |
|/ | | | | as parameters | ||||
* | fix some types in schema_test.rb | Lachlan Sylvester | 2011-07-27 | 1 | -5/+5 |
| | |||||
* | remove warning: assigned but unused variable | Santiago Pastorino | 2011-06-08 | 4 | -4/+3 |
| | |||||
* | corrected some further tests and docs for the ARes change to json change | Josh Kalderimis | 2011-05-18 | 4 | -39/+39 |
| | |||||
* | updated all the tests in ARes to work with json | Josh Kalderimis | 2011-05-18 | 11 | -212/+222 |
| | |||||
* | move the ARes conn test to the correct location | Josh Kalderimis | 2011-05-18 | 1 | -0/+257 |
| | |||||
* | Follow code conventions on some tests | Sebastian Martinez | 2011-05-10 | 1 | -1/+1 |
| | |||||
* | Remove `#among?` from Active Support | Prem Sichanugrist | 2011-04-13 | 1 | -1/+1 |
| | | | | | | 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 Hansson | 2011-04-12 | 1 | -1/+1 |
| | | | | suggestion! | ||||
* | Using Object#in? and Object#either? in various places | Prem Sichanugrist | 2011-04-11 | 1 | -1/+2 |
| | | | | 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?. | ||||
* | Active Resource typos. | R.T. Lechow | 2011-03-05 | 2 | -2/+2 |
| | |||||
* | ActiveResource validation tests did not test ActiveModel validations. Adjust ↵ | Ken Mazaika | 2011-02-15 | 1 | -0/+6 |
| | | | | | | 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 Bassett | 2011-02-09 | 1 | -2/+25 |
| | | | | | | response when passing a block to the respond_to method. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Make ARes tests unescape [ and ] | Santiago Pastorino | 2010-11-18 | 1 | -3/+3 |
| | |||||
* | - ActiveResource::HttpMock.respond_to | Gaston Ramos | 2010-10-07 | 1 | -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 response | Gaston Ramos | 2010-10-07 | 1 | -4/+19 |
| | | | | | | if it has the same request Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | changing map and include to find | Aaron Patterson | 2010-09-30 | 1 | -1/+1 |
| | |||||
* | assert on empty array is always true. fixing test. | Neeraj Singh | 2010-09-30 | 1 | -1/+1 |
| | |||||
* | Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 ↵ | Matthijs Langenberg | 2010-09-27 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | - check prefix options in collection_path | Gaston Ramos | 2010-09-27 | 1 | -1/+7 |
| | |||||
* | - better name for prefix param test case | Gaston Ramos | 2010-09-27 | 1 | -1/+1 |
| | |||||
* | - elmenth_path raise an ActiveResource::MissingPrefixParam exception when ↵ | Gaston Ramos | 2010-09-27 | 2 | -1/+9 |
| | | | | | | | 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é Valim | 2010-09-25 | 1 | -2/+2 |
| | |||||
* | Allow per Resource format settings | Jacques Crocker | 2010-09-25 | 1 | -4/+8 |
| | | | | | | | | | | 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 Crocker | 2010-09-25 | 2 | -1/+50 |
| | | | | | | 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 conflict | Xavier Noria | 2010-09-23 | 1 | -1/+1 |
|\ | |||||
| * | Tiny fixes to rdoc | Alexey Mahotkin | 2010-09-16 | 1 | -1/+1 |
| | | |||||
* | | test for #5038 | Neeraj Singh | 2010-09-18 | 1 | -0/+8 |
| | | |||||
* | | Refactor setup methods by extracting them in abstract_unit, remove TODO. | Emilio Tagua | 2010-09-17 | 3 | -237/+5 |
| | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | Remove TODO and support all expected attributes. | Emilio Tagua | 2010-09-17 | 1 | -10/+46 |
|/ | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove all deprecation warnings in activeresource | Carlos Antonio da Silva | 2010-09-06 | 1 | -8/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | ActiveModel#to_xml fix (renamed parameter). | Andreas Garnæs | 2010-09-02 | 1 | -0/+6 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Adding option to ActiveResource to allow you to not reset the previously ↵ | Mikel Lindsaar | 2010-08-29 | 1 | -1/+41 |
| | | | | stored requests and responses by passing false to respond_to | ||||
* | Updating documentation on ActiveResource HTTP Mock and also adding test coverage | Mikel Lindsaar | 2010-08-29 | 1 | -0/+28 |
| |