Rasik Pandey
|
16b9a554db
|
Format related patches to support serializing data out in the correct format with correct http request headers per http method type [#450 state:resolved]
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2008-08-29 18:45:39 -07:00 |
|
Tarmo Tänav
|
b5c4c7daf8
|
Clear prefix_parameters cache when setting prefix
|
2008-08-23 17:43:52 +03:00 |
|
Adrian Mugnolo
|
893fb5bb63
|
Add ActiveResource::Base.find(:last). [#754 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-22 03:06:57 +01:00 |
|
Joshua Peek
|
b74b97fef5
|
Update uses_mocha in ActionMailer and ActiveResource
|
2008-07-19 11:14:12 -05:00 |
|
Luis Hurtado
|
225065709c
|
Fixes parsing deep nested resources from XML. [#380 state:resolved]
|
2008-06-09 23:06:07 -07:00 |
|
Cheah Chu Yeow
|
cf32baf915
|
Rescue from Timeout::Error in ActiveResource::Connection.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-04-22 09:30:56 +12:00 |
|
Cheah Chu Yeow
|
105910429d
|
Introduce ActiveResource::Base.timeout. This allows a timeout to be set on the internal Net::HTTP instance ARes uses (default is 60 seconds). Setting a low timeout allows ARes clients to fail-fast in the event of a unresponsive/crashed server, rather than cause cascading failures in your application.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-04-22 09:30:41 +12:00 |
|
Jeremy Kemper
|
ad8df03f9c
|
Add #clone. Closes #7352 [Ryan Daigle, thechrisoshow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 21:17:38 +00:00 |
|
David Heinemeier Hansson
|
9300ebd86f
|
Fixed that to_param should be used and honored instead of hardcoding the id (closes #11406) [gspiers]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 19:58:46 +00:00 |
|
Jeremy Kemper
|
ab45bd487a
|
URI.decode site username/password. Closes #11169 [Ernesto Jimenez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-19 23:06:09 +00:00 |
|
Michael Koziarski
|
8bbabd43a9
|
Add user and password configuration options to ActiveResource::Base, not all credentials can be specified inline. Closes #11112 [ernesto.jimenez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8891 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-18 00:21:18 +00:00 |
|
Michael Koziarski
|
5396b0f3b0
|
Use HEAD instead of GET inside exists? Closes #11062 [bscofield]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-09 22:21:55 +00:00 |
|
Jeremy Kemper
|
1f2e9bb280
|
require abstract_unit directly since test is in load path
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8566 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-05 13:32:38 +00:00 |
|
Jeremy Kemper
|
9a97f9a14b
|
find_or_create_resource_for handles module nesting. Closes #10646.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-02 09:14:34 +00:00 |
|
Rick Olson
|
e8730713d2
|
Allow setting ActiveResource::Base#format before #site. [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-28 17:12:35 +00:00 |
|
Rick Olson
|
c54b915825
|
Support agnostic formats when calling custom methods. Closes #10635 [joerichsen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-28 17:03:58 +00:00 |
|
Rick Olson
|
90d75e5109
|
inherit from the new ActiveSupport::BlankSlate class
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8501 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-28 17:02:01 +00:00 |
|
Jeremy Kemper
|
f91acf0258
|
Ruby 1.9 compat: move from the deprecated Base64 module to ActiveSupport::Base64. Closes #10554.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-18 21:14:07 +00:00 |
|
David Heinemeier Hansson
|
1ceccdeb7f
|
Added more specific exceptions for 400, 401, and 403 (all descending from ClientError so existing rescues will work) (closes #10326) [trek]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-14 23:09:46 +00:00 |
|
Michael Koziarski
|
f29ae12535
|
Add Base#to_param to Active Resource that quacks like ActiveRecord. Closes #9557 [bradediger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 02:13:51 +00:00 |
|
Jeremy Kemper
|
f118a5b05b
|
BlankSlate -> BasicObject
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 02:08:05 +00:00 |
|
Jeremy Kemper
|
0ee1cb2cd3
|
Ruby 1.9 compat, consistent load paths
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-02 05:32:14 +00:00 |
|
Michael Koziarski
|
fc042435a6
|
Fix ARes tests under jruby. [tom.enebo@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-24 18:01:09 +00:00 |
|
David Heinemeier Hansson
|
f99e5bba19
|
Increase test coverage (closes #8699, #8700) [josh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-21 23:31:21 +00:00 |
|
David Heinemeier Hansson
|
dc399b96c8
|
Added ActiveResource.format= which defaults to :xml but can also be set to :json [DHH]. Added one-off declarations of mock behavior [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-20 23:18:05 +00:00 |
|
Tobias Lütke
|
18a4cc1bd2
|
Raise ActiveResource::Redirection on 301,302 http code
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-08-09 19:22:04 +00:00 |
|
Tobias Lütke
|
80d539bd4d
|
Fixes that using a subclass of an ARes object would cache a connection object based of its parent's site variable. Changing the parent's site would have no effect on the descentent objects.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-27 16:00:07 +00:00 |
|
Jeremy Kemper
|
e682fee121
|
Fix reload error when path prefix is used. Closes #8727.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-22 18:15:40 +00:00 |
|
Rick Olson
|
9e4461438f
|
Added proper handling of arrays. Closes #8537 [hasmanyjosh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-21 15:07:15 +00:00 |
|
Tobias Lütke
|
bfda4cdc5a
|
Fixed query methods on resources. [Cody Fauser]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-08 19:32:15 +00:00 |
|
Rick Olson
|
4d1c87a069
|
pass the prefix_options to the instantiated record when using find without a specific id. Closes #8544 [alloy]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6925 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-01 17:14:14 +00:00 |
|
Jeremy Kemper
|
849038ee51
|
Recognize and raise an exception on 405 Method Not Allowed responses. Closes #7692.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-26 20:57:08 +00:00 |
|
Rick Olson
|
08736788c9
|
Handle string and symbol param keys when splitting params into prefix params and query params.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-09 03:51:06 +00:00 |
|
Tobias Lütke
|
0306e4a204
|
Make respond_to? work as expected
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-04 20:07:37 +00:00 |
|
David Heinemeier Hansson
|
04fd94d8f8
|
BACKWARDS INCOMPATIBLE: Changed the finder API to be more extensible with :params and more strict usage of scopes [DHH] Added find-one with symbol [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-01 04:48:48 +00:00 |
|
Rick Olson
|
8e8fd99d7f
|
change #custom_headers to just #headers [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-29 04:46:14 +00:00 |
|
Rick Olson
|
bd50d82f70
|
Add support for setting custom headers per ActiveResource model [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-29 03:14:36 +00:00 |
|
David Heinemeier Hansson
|
70ac560e42
|
Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-28 15:57:29 +00:00 |
|
David Heinemeier Hansson
|
1d5c34c2c2
|
Added find-by-path options to ActiveResource::Base.find [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-27 20:54:53 +00:00 |
|
David Heinemeier Hansson
|
234b0b7ca0
|
Added support for using classes from within a single nested module [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-26 19:38:16 +00:00 |
|
David Heinemeier Hansson
|
46b58d80b9
|
The find should instantiate real objects, not return hashes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-26 02:03:40 +00:00 |
|
David Heinemeier Hansson
|
9b8399fb7f
|
Added support for calling custom methods #6979 [rwdaigle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-26 01:53:01 +00:00 |
|
Rick Olson
|
208d12d15d
|
Remove explicit prefix_options parameter for ActiveResource::Base#initialize. Allow ActiveResource::Base.delete with custom prefix. Add ActiveResource::Base#dup [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-24 16:05:20 +00:00 |
|
David Heinemeier Hansson
|
c97f329b2a
|
Disregard namespaces from the default element name, so Highrise::Person will just try to fetch from "/people", not "/highrise/people" [DHH] Added that saves which get a body response (and not just a 201) will use that response to update themselves [DHH] Fixed constant warning when fetching the same object multiple times [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-19 22:18:03 +00:00 |
|
Jeremy Kemper
|
d97456dd82
|
Allow array and hash query parameters. Closes #7756.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-11 13:27:57 +00:00 |
|
Jeremy Kemper
|
1d8cd1d744
|
Squash test warnings.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-24 18:29:07 +00:00 |
|
Jeremy Kemper
|
1b1ddf1736
|
Loading a resource preserves its prefix_options. Closes #7353. Silence prefix redefinition warnings; fix type in logged error.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-24 18:27:36 +00:00 |
|
Rick Olson
|
f49e449ed5
|
Carry over the convenience of #create from ActiveRecord. Closes #7340. [Ryan Daigle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6025 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-24 02:40:32 +00:00 |
|
Rick Olson
|
1bdb14bdd3
|
Increase ActiveResource::Base test coverage. Closes #7173, #7174 [Rich Collins]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6020 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-23 05:22:33 +00:00 |
|
Jeremy Kemper
|
e00e6a2941
|
Interpret 422 Unprocessable Entity as ResourceInvalid. Closes #7097.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-17 00:46:32 +00:00 |
|