Jeremy Kemper
|
f7d509882e
|
Prefer tap to returning
|
2009-02-06 12:18:24 -08:00 |
|
Jeremy Kemper
|
b302e023b7
|
Require rubygems
|
2009-02-03 18:58:06 -08:00 |
|
Jeremy Kemper
|
278186534c
|
Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.
|
2009-02-03 18:40:22 -08: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 |
|
Rasik Pandey
|
6079ec1f77
|
ActiveResource#eqls? and == should not take into account object identity and prefix options should be considered. [#1098 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-01-28 19:39:06 +00:00 |
|
Jeremy Kemper
|
c79fb32e93
|
Ruby 1.9 compat: don't shadow local var with block arg
|
2008-11-22 19:19:13 -08:00 |
|
Jeremy Kemper
|
dc07c0e02b
|
Fix indentation mismatches
|
2008-11-22 19:19:13 -08:00 |
|
Jeremy Kemper
|
ebf14baa0e
|
Silence parens warning
|
2008-11-07 15:41:27 -05:00 |
|
David Heinemeier Hansson
|
dffc2e2b64
|
Fixed that ActiveResource#post would post an empty string when it shouldn't be posting anything (Paolo Angelini) [#525 state:committed]
|
2008-10-30 12:47:23 +01:00 |
|
Cody Fauser
|
f2c10f2756
|
Add ActiveResource::Base#to_xml and ActiveResource::Base#to_json methods. [#1011 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-10-07 17:48:02 +01: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 |
|
Edgar J. Suarez
|
790ebf8eab
|
HTTP Accept header
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-09-18 11:15:48 +02: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 |
|
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 |
|