Jeremy Kemper
|
6d4a4fabbb
|
Cherry pick Active Support dependencies. Autoload.
|
2009-05-06 00:14:55 -07:00 |
|
Jeremy Kemper
|
cfde60575a
|
Strip invalid leading whitespace error uncovered by nokogiri
|
2009-03-10 22:17:05 -07:00 |
|
Jeremy Kemper
|
1c36172c13
|
Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.
[#1617 state:resolved]
|
2009-03-08 13:11:58 -07:00 |
|
Bob Aman
|
166c63818e
|
Improve exception handling when Location header is invalid. [#1192 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-01-28 20:56:46 +00:00 |
|
Jeremy Kemper
|
dc07c0e02b
|
Fix indentation mismatches
|
2008-11-22 19:19:13 -08:00 |
|
Matthew Moore
|
4df45d8609
|
ActiveResource can load array of strings, like serialize :bar, Array
Signed-off-by: rick <technoweenie@gmail.com>
[#1055 state:resolved]
|
2008-10-05 10:29:13 -07:00 |
|
Jeremy Kemper
|
a1eb4e11c2
|
Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, but it has since been removed from 1.9.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Conflicts:
actionpack/test/controller/layout_test.rb
|
2008-08-31 13:20:15 -07:00 |
|
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 |
|
Luis Hurtado
|
225065709c
|
Fixes parsing deep nested resources from XML. [#380 state:resolved]
|
2008-06-09 23:06:07 -07: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 |
|
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
|
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 |
|
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 |
|
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
|
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
|
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
|
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
|
2bb33bbd59
|
Base.exists?(id, options) and Base#exists? check whether the resource is found. Closes #6970.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-12 07:20:05 +00:00 |
|
Jeremy Kemper
|
73101af6ab
|
prefix_parameters pulls /:path/:params from the URI prefix
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-29 22:16:04 +00:00 |
|
Jeremy Kemper
|
4e57ac3544
|
Query string support. Closes #6855.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5804 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-29 01:18:09 +00:00 |
|
Jeremy Kemper
|
bc3d150386
|
test that element name includes module nesting
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-21 23:34:52 +00:00 |
|
Jeremy Kemper
|
e6988ef2ce
|
Subclasses share superclass site until explicitly set. This way you can set Superclass.site = ... after subclasses have been defined.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-21 22:12:21 +00:00 |
|
Rick Olson
|
011f4e7413
|
Allow subclassed resources to share the site info [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-13 02:15:27 +00:00 |
|
Jamis Buck
|
6c0609fafb
|
Add Base.delete for deleting resources without having to instantiate them first
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-06 17:25:10 +00:00 |
|
Jamis Buck
|
628838ed93
|
Make #save behavior mimic AR::Base#save (true on success, false on failure)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-02 22:14:15 +00:00 |
|
Rick Olson
|
7ac6ed893f
|
Add Basic HTTP Authentication to ActiveResource (closes #6305). [jonathan]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-29 16:25:49 +00:00 |
|
Rick Olson
|
4d63e01fa0
|
fixed failing tests now that non-GET requests are sent with .xml file ext. Extracted #id_from_response as an entry point for customizing how a created resource gets its own ID.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-20 19:31:17 +00:00 |
|
Jeremy Kemper
|
0a84624bd7
|
Optimistic locking: raise ActiveResource::ResourceConflict on 409 Conflict response.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-09 00:11:12 +00:00 |
|