Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | remove a circular dependency | Josh Kalderimis | 2011-05-18 | 1 | -2/+0 | |
| | ||||||
* | Follow code conventions on some tests | Sebastian Martinez | 2011-05-10 | 1 | -1/+1 | |
| | ||||||
* | Merging 3.0.x CHANGELOGs | Guillermo Iguaran | 2011-05-10 | 1 | -1/+29 | |
| | ||||||
* | Update copyright year in Active Resource and Active Support | Vijay Dev | 2011-05-09 | 1 | -1/+1 | |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
* | Prepare for beta1 | David Heinemeier Hansson | 2011-05-04 | 1 | -1/+1 | |
| | ||||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-04 | 3 | -10/+22 | |
|\ | ||||||
| * | Added some docs on ActiveResource::HttpMock | Sebastian Martinez | 2011-05-01 | 1 | -0/+4 | |
| | | ||||||
| * | Documented ActiveResource#observing | Sebastian Martinez | 2011-05-01 | 1 | -0/+8 | |
| | | ||||||
| * | Remove extra whitespaces. | Sebastian Martinez | 2011-05-01 | 1 | -5/+5 | |
| | | ||||||
| * | Fix punctuation errors. | Sebastian Martinez | 2011-05-01 | 1 | -5/+5 | |
| | | ||||||
* | | Optimize ActiveResource::Base.new(attributes) | Chris Griego | 2011-05-01 | 2 | -15/+94 | |
|/ | | | | | | | | | | | | | | | | | | | | * Add performance benchmark similar to ActiveRecord * Lazily find_or_create_resource_for_collection to not incur the overhead for empty arrays and arrays of primatives * #duplicable? is faster than inline rescues when the object is not duplicable * Don't constantly raise and handle NameError, raising is expensive * Even when a resource is nested inside a module, always look inside the class first for the resource definition so we don't overwrite classes all the time Before: user system total real Model.new (instantiation) 0.120000 0.000000 0.120000 ( 0.119961) Nested::Model.new (instantiation) 0.150000 0.010000 0.160000 ( 0.151183) Model.new (setting attributes) 28.540000 0.680000 29.220000 ( 29.271775) Nested::Model.new (setting attributes) 29.740000 0.580000 30.320000 ( 30.486210) After: user system total real Model.new (instantiation) 0.120000 0.000000 0.120000 ( 0.121249) Nested::Model.new (instantiation) 0.150000 0.010000 0.160000 ( 0.152429) Model.new (setting attributes) 11.480000 0.170000 11.650000 ( 11.656163) Nested::Model.new (setting attributes) 11.510000 0.210000 11.720000 ( 11.724249) | |||||
* | Fixed minor typo in comment | Paolo "Nusco" Perrotta | 2011-04-26 | 1 | -1/+1 | |
| | ||||||
* | Remove `#among?` from Active Support | Prem Sichanugrist | 2011-04-13 | 2 | -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 Hansson | 2011-04-12 | 2 | -2/+2 | |
| | | | | suggestion! | |||||
* | Using Object#in? and Object#either? in various places | Prem Sichanugrist | 2011-04-11 | 3 | -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.0 | Santiago Pastorino | 2011-04-02 | 1 | -1/+0 | |
| | ||||||
* | Active Resource typos. | R.T. Lechow | 2011-03-05 | 5 | -6/+6 | |
| | ||||||
* | We're in 2011, let's update our license | Prem Sichanugrist | 2011-02-22 | 1 | -1/+1 | |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
* | ActiveResource validation tests did not test ActiveModel validations. Adjust ↵ | Ken Mazaika | 2011-02-15 | 2 | -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 Bassett | 2011-02-09 | 2 | -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 accurate | Akira Matsuda | 2011-01-29 | 1 | -1/+1 | |
| | ||||||
* | Fix indentation | Akira Matsuda | 2011-01-29 | 1 | -1/+1 | |
| | ||||||
* | sorry, the CI cannot lie to us anymore (Part II) | Santiago Pastorino | 2011-01-13 | 1 | -1/+1 | |
| | ||||||
* | minor fixesin READMEs | Vijay Dev | 2010-12-20 | 1 | -1/+1 | |
| | ||||||
* | Rakefiles are executables, and rake loads rake, not rakefile code | raggi | 2010-11-25 | 1 | -1/+1 | |
| | ||||||
* | class inheritable attributes is used no more! all internal use of class ↵ | Josh Kalderimis | 2010-11-20 | 1 | -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 Pastorino | 2010-11-18 | 1 | -3/+3 | |
| | ||||||
* | Update the version.rb files to include a PRE part | Carl Lerche | 2010-11-16 | 1 | -2/+2 | |
| | ||||||
* | syncs CHANGELOGs for 3.0.2 in 3-0-stable with the ones in master | Xavier Noria | 2010-11-09 | 1 | -0/+4 | |
| | ||||||
* | Merge CHANGELOGs from 3-0-stable | Santiago Pastorino | 2010-10-18 | 1 | -0/+3 | |
| | ||||||
* | Always pull in version for frameworks (standardize autoload / require / none) | wycats | 2010-10-10 | 1 | -0/+1 | |
| | ||||||
* | - update documentation | Gaston Ramos | 2010-10-07 | 1 | -0/+9 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | - 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 | 2 | -23/+47 | |
| | | | | | | if it has the same request Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | PERF: more changes from inject({}) to Hash + map | Santiago Pastorino | 2010-10-03 | 1 | -1/+1 | |
| | ||||||
* | 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 | |
| | ||||||
* | Move uri parser to AS as URI.parser method to reuse it in AP and ARes. | Emilio Tagua | 2010-09-28 | 2 | -15/+12 | |
| | ||||||
* | Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 ↵ | Matthijs Langenberg | 2010-09-27 | 4 | -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_test | Gaston Ramos | 2010-09-27 | 1 | -0/+1 | |
| | ||||||
* | - update exceptions documentation | Gaston Ramos | 2010-09-27 | 1 | -0/+11 | |
| | ||||||
* | - check prefix options in collection_path | Gaston Ramos | 2010-09-27 | 2 | -1/+8 | |
| | ||||||
* | - better name for prefix param test case | Gaston Ramos | 2010-09-27 | 1 | -1/+1 | |
| | ||||||
* | - refactoring, move prefix_options check to a custom method | Gaston Ramos | 2010-09-27 | 1 | -5/+9 | |
| | ||||||
* | - elmenth_path raise an ActiveResource::MissingPrefixParam exception when ↵ | Gaston Ramos | 2010-09-27 | 4 | -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é Valim | 2010-09-25 | 1 | -2/+2 | |
| | ||||||
* | Allow per Resource format settings | Jacques Crocker | 2010-09-25 | 5 | -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 Crocker | 2010-09-25 | 5 | -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 conflict | Xavier Noria | 2010-09-23 | 1 | -1/+1 | |
|\ | ||||||
| * | Tiny fixes to rdoc | Alexey Mahotkin | 2010-09-16 | 1 | -1/+1 | |
| | |