aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* define_schema for Active ResourceTaryn East2009-12-202-2/+200
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fully expand relative rails framework paths and make sure we aren'tJoshua Peek2009-12-161-5/+6
| | | | adding any to the load path more than once.
* Reorganize autoloads:Carlhuda2009-12-021-7/+9
| | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
* 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
|
* Digest auth option for ActiveResource.pivotal2009-10-152-11/+91
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Ruby 1.9: Fix ActiveResource::ConnectionError#to_s when @response does not ↵Chad Woolley2009-10-081-1/+4
| | | | | | respond to #code or #message Signed-off-by: Carl Lerche <carllerche@mac.com>
* Cleanup whitespace introduced in 8377646 and f4f6888Joshua Peek2009-10-021-35/+34
|
* add indifferent access to the attributesTaryn East2009-10-021-1/+2
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* update_attribute(s) added to Active ResourceTaryn East2009-10-021-0/+30
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix brittle content-type check. [#1956 state:committed]Jeremy Kemper2009-09-171-2/+2
|
* 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]
* Kill AMo observing wrap_with_notifications since ARes was only using itJoshua Peek2009-09-021-1/+12
|
* Added first/last/all aliases for equivalent find scopestaryn2009-08-211-0/+22
| | | | | | | 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-191-0/+17
| | | | | | | | | | | | | | | 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-191-10/+29
| | | | | | | | | | | | | | 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>
* Added validations to ActiveResource. Added a smoke test to see if we can add ↵taryn2009-08-191-15/+49
| | | | | | a validation and use it, and add a validates callback and use it. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Add support for errors in JSON format.Fabien Jakimowicz2009-08-092-5/+25
| | | | | | [#1956 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ensure ActiveResource#load works with numeric arrays [Grzegorz Forysinski, ↵Grzegorz Forysinski2009-08-091-1/+7
| | | | | | | | 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-093-1/+7
| | | | | | [Jordan Brough, Jatinder Singh] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make ActiveResource#exists? work [#3020 state:resolved]Jatinder Singh2009-08-091-2/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add ability to set SSL options on ARes connections.Roy Nicholson2009-08-093-3/+81
| | | | | | [#2370 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Setting connection timeout also affects Net::HTTP open_timeout.Jeremy Kemper2009-08-091-7/+19
| | | | [#2947 state:resolved]
* HTTP proxy supportMarshall Huss2009-08-082-3/+35
| | | | | | [#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-111-2/+9
|
* Bump up the version to 3.0.preCarl Lerche2009-06-301-3/+3
|
* 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
|
* Setup ActiveResource autoloadsJoshua Peek2009-06-086-29/+14
|
* JSON: split encoding and coercionJeremy Kemper2009-06-081-8/+3
|
* Tolerate missing loggerJeremy Kemper2009-05-301-1/+1
|
* Use URI and InflectorJeremy Kemper2009-05-301-2/+4
|
* Merge branch 'master' into active_modelJoshua Peek2009-05-2910-80/+111
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: activemodel/lib/active_model/core.rb activemodel/test/cases/state_machine/event_test.rb activemodel/test/cases/state_machine/state_transition_test.rb activerecord/lib/active_record/validations.rb activerecord/test/cases/validations/i18n_validation_test.rb activeresource/lib/active_resource.rb activeresource/test/abstract_unit.rb
| * Cherry-pick core extensionsJeremy Kemper2009-05-131-1/+3
| |
| * Fix tests on 1.8.6Jeremy Kemper2009-05-061-0/+1
| |
| * Cherry pick Active Support dependencies. Autoload.Jeremy Kemper2009-05-069-74/+96
| |
| * Remove superfluous CGI requireJeremy Kemper2009-05-051-1/+0
| |
| * Prefer sibling Active SupportJeremy Kemper2009-05-051-9/+3
| |
| * Fix differing rails_to_json arityJeremy Kemper2009-04-261-3/+5
| |
| * * Add pluggable JSON backends with support for the JSON gem. [rick]rick2009-04-231-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Example: ActiveSupport::JSON.backend = "JSONGem" All internal Rails JSON encoding is now handled by ActiveSupport::JSON.encode(). Use of #to_json is not recommended, as it may clash with other libraries that overwrite it. However, you can recover Rails specific functionality if you really want to use #to_json. gem 'json' ActiveSupport::JSON.backend = "JSONGem" class ActiveRecord::Base alias to_json rails_to_json end
| * Opt in to JSONJeremy Kemper2009-04-221-0/+2
| |
| * No more free lunchJeremy Kemper2009-04-221-0/+1
| |
* | Merge branch 'master' into active_modelPratik Naik2009-04-222-21/+21
|\| | | | | | | | | Conflicts: activeresource/lib/active_resource/validations.rb
| * Merge docrailsPratik Naik2009-03-243-29/+30
| |
* | Deprecate Errors#on_base/add_to_base/invalid?/each_fullPratik Naik2009-03-211-1/+1
| |
* | Fix ActiveResource::Errors deprecation messagesPratik Naik2009-03-201-2/+2
| |