Mikel Lindsaar
|
bac12fa5fc
|
Adding option to ActiveResource to allow you to not reset the previously stored requests and responses by passing false to respond_to
Backport of commit 2a1b23f851ea3d4634fc68b74fe6b1afed23d3ef on rails/master
|
2010-08-29 22:55:02 -07:00 |
|
Mikel Lindsaar
|
56fdfeb265
|
Back porting HttpMock test from Rails 3 master
|
2010-08-29 22:55:02 -07:00 |
|
Jeremy Kemper
|
e8ba5265e0
|
Work around strange Ruby 1.9 autoload issue by using absolute load paths for tests (ditto for other components' tests)
|
2010-05-24 16:05:34 -07:00 |
|
Santiago Pastorino
|
c4ef7bb2a0
|
to_json and to_xml tests added to ActiveResource
[#4529 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2010-05-12 13:40:09 -07:00 |
|
Joe Martinez
|
aa401bd75a
|
Add ActiveResource::Base.include_root_in_json, like Active Record, to serialize instances as hash of model name -> attributes hash rather than the bare attributes hash. [#2584 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2010-04-26 15:19:03 -07:00 |
|
Jatinder Singh
|
158e7b63ab
|
Use format of ARes rather than content-type of remote errors to load errors.
[#1956 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2010-01-27 18:27:55 -08:00 |
|
Jeremy Kemper
|
1488c6cc9e
|
Fix brittle content-type check. [#1956 state:committed]
|
2009-09-17 11:39:59 -07:00 |
|
Jatinder Singh
|
dbc62ad225
|
Fix ActiveResource load test for 64bit machines [#3051 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-15 19:57:22 +01:00 |
|
Fabien Jakimowicz
|
c3da22c042
|
Add support for errors in JSON format.
[#1956 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:41:56 -07:00 |
|
Grzegorz Forysinski
|
59c3b0d0de
|
Ensure ActiveResource#load works with numeric arrays [Grzegorz Forysinski, Elad Meidar]
[#2305 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-09 23:40:06 +01:00 |
|
Jordan Brough
|
be017fd7d5
|
Active Resource recognizes 410 as Resource Gone now [#2316 state:resolved] [Jordan Brough, Jatinder Singh]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Conflicts:
activeresource/lib/active_resource/exceptions.rb
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-09 23:33:11 +01:00 |
|
Jatinder Singh
|
323f58f19f
|
Make ActiveResource#exists? work [#3020 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-09 22:25:20 +01:00 |
|
Roy Nicholson
|
de0b073f3e
|
Add ability to set SSL options on ARes connections.
[#2370 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 13:23:48 -07:00 |
|
Jeremy Kemper
|
83cc7de2a4
|
Setting connection timeout also affects Net::HTTP open_timeout.
[#2947 state:resolved]
|
2009-08-09 02:28:27 -07:00 |
|
Marshall Huss
|
791c388039
|
HTTP proxy support
[#2133 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-08 15:35:59 -07:00 |
|
Yehuda Katz + Carl Lerche
|
a8bd3c8a10
|
Move mocha down below initial T::U require and bump version to 0.9.7 [#2858 state:resolved]
|
2009-07-01 12:09:32 -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 |
|
Jeremy Kemper
|
0c407891fb
|
Ensure Active Support is loaded locally rather than from RubyGems. [#1620 state:committed]
|
2009-03-08 11:04:23 -07:00 |
|
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 |
|