Jeremy Kemper
e5d0bb22ef
Fix version number in CHANGELOG
2011-10-11 21:03:08 -07:00
Jeremy Kemper
b8bb5f44c8
Treat 303 See Other as a redirect response, too
2011-10-11 21:01:11 -07:00
Jim Herzberg
a78a75d67a
activeresource should treat HTTP status 307 as redirection, same as 301 and 302; added missing test cases for statii 301 and 302.
2011-10-11 17:46:24 -07:00
José Valim
d4457dc32b
Provide read_attribute_for_serialization as the API to serialize attributes.
2011-09-30 14:20:41 +02:00
Colin Shield & Ian Lesperance
41365a8275
Fixed digest authentication for requests with a query string [ #3158 ]
2011-09-28 15:23:47 -07:00
Jon Leighton
a15424b92c
Make serializable_hash take attr values directly from attributes hash.
...
Previously, it would use send() to get the attribute. In Active
Resource, this would rely on hitting method missing. If a method with
the same name was defined further up the ancestor chain, that method
would wrongly be called.
This change fixes test_to_xml_with_private_method_name_as_attribute in
activeresource/test/cases/base_test.rb, which was broken after
51bef9d8fb0b4da7a104425ab8545e9331387743, because that change made
to_xml use serializable_hash.
2011-09-26 12:40:03 +01:00
Vijay Dev
823e16f57c
update 3.1 release date in changelogs
2011-09-14 22:46:12 +05:30
Jon Leighton
8397a564cb
Merge pull request #2678 from jmileham/ares_content_length_bug
...
ActiveResource shouldn't rely on the presence of Content-Length
2011-09-12 10:11:39 -07:00
John Mileham
a06d17480f
ActiveResource shouldn't rely on the presence of Content-Length
2011-09-11 14:46:50 -04:00
Arun Agrawal
fb73be8469
Not used variables removed. Warnings removed.
2011-09-10 09:38:57 +05:30
John Mileham
f776661fd2
Failing test: ActiveResource shouldn't rely on the presence of Content-Length
2011-09-09 19:05:26 -04:00
Marc G Gauthier
28d605ff7f
Do not use objects that don't respond to to_sym (integers, floats, dates...) as parameters
2011-09-01 18:26:29 +02:00
Marc G Gauthier
03b9630617
Do not try to use as a parameter elements that are not acceptable
2011-08-19 11:11:17 +02:00
Waynn Lue
76158146eb
comma is more appropriate here
2011-08-13 16:22:34 -07:00
Sukeerthi Adiga
b905f8c963
Rubygems => RubyGems
2011-08-13 16:22:31 -07:00
Lachlan Sylvester
924975a34a
fix some types in schema_test.rb
2011-08-13 16:22:20 -07:00
Rashmi Yadav
111347f0cc
The trailing '/' isn't being picked up by Github anyway, and the link works as is.
2011-08-13 16:22:15 -07:00
Bratish Goswami
bf3649ab19
extra '/' removed from url, which was not linked
2011-08-13 16:22:10 -07:00
Oemuer Oezkir
71d18ce48e
Changed a few instances of of words in the API docs written in British English to
...
American English(according to Weber)
2011-07-24 10:21:42 +00:00
Santiago Pastorino
35cdd256c0
Master version is 3.2.0.beta
2011-06-30 10:18:36 -03:00
Santiago Pastorino
1d3618a9b4
remove warning: assigned but unused variable
2011-06-08 00:26:09 -03:00
Xavier Noria
5e21247131
Merge branch 'master' of git://github.com/lifo/docrails
...
Conflicts:
activerecord/RUNNING_UNIT_TESTS
2011-06-06 22:23:30 +02:00
Vijay Dev
e1b202fc70
annotate class_eval method for active resource schema attributes
2011-06-05 21:44:04 +05:30
Lee Reilly
4f234bfd79
Corrected some typos and American vs. Queen's English issues
2011-05-29 12:40:24 -07:00
Xavier Noria
00e1d0832e
Merge branch 'master' of git://github.com/lifo/docrails
...
Conflicts:
actionmailer/lib/action_mailer/base.rb
activesupport/lib/active_support/core_ext/kernel/requires.rb
2011-05-25 22:48:47 +02:00
Franck Verrot
85283f0592
Add the MIT-LICENSE to the Active Resource gemspec
2011-05-25 15:32:10 +02:00
Vijay Dev
79e9a2983a
fixes Rake::GemPackageTask deprecation warnings from rake 0.9.0
2011-05-24 23:39:24 +05:30
Karunakar (Ruby)
bfb9f758ae
changed http://api.rubyonrails.com to http://api.rubyonrails.org in readme files
2011-05-24 21:12:01 +05:30
Guillermo Iguaran
647c55ac43
Prefer each instead of for in activeresource
2011-05-23 23:08:48 -05:00
Karunakar (Ruby)
424eff5209
active resource instalation instructions and Licence
2011-05-24 00:13:40 +05:30
José Valim
06474c1553
Merge pull request #1192 from arunagw/removal_extra
...
No more need rubygems here.
2011-05-22 09:12:27 -07:00
David Heinemeier Hansson
82857adc56
Bump versions for rc1
2011-05-21 20:56:52 -05:00
Arun Agrawal
4c99f323ad
Not loading ruby-debug specially.
2011-05-22 03:12:47 +05:30
Arun Agrawal
1ffc3063b7
No more need rubygems here.
2011-05-22 02:02:56 +05:30
José Valim
26703f4905
Merge pull request #1165 from arunagw/rubyforge_remove
...
Not updating rubyforge for new versions.
2011-05-21 04:55:37 -07:00
Josh Kalderimis
1bfe9ec5de
attr_accessor_with_default is deprecated, so lets not use it in ActiveResource
2011-05-21 01:05:35 -04:00
Arun Agrawal
f72f591c8c
Not updating rubyforge for new versions. Result of "gem list -d rails" is not useful.
2011-05-20 17:43:40 +05:30
Josh Kalderimis
c88f7e81aa
updated the ActiveResource changelog
2011-05-18 14:40:35 -04:00
Josh Kalderimis
00958696d8
corrected some further tests and docs for the ARes change to json change
2011-05-18 00:34:10 -04:00
Josh Kalderimis
b641ab5bae
removed a contrived ARes example
2011-05-18 00:34:09 -04:00
Josh Kalderimis
6b4bbb4274
updated all the tests in ARes to work with json
2011-05-18 00:34:09 -04:00
Josh Kalderimis
4a9365ee18
move the ARes conn test to the correct location
2011-05-18 00:34:09 -04:00
Josh Kalderimis
6062017382
remove a circular dependency
2011-05-18 00:34:09 -04:00
Sebastian Martinez
21b61a8ac4
Follow code conventions on some tests
2011-05-10 20:58:36 -03:00
Guillermo Iguaran
259c749de1
Merging 3.0.x CHANGELOGs
2011-05-10 11:51:35 -05:00
Vijay Dev
3f36441e90
Update copyright year in Active Resource and Active Support
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-05-09 20:17:23 -03:00
David Heinemeier Hansson
169ae75e09
Prepare for beta1
2011-05-04 20:21:05 -05:00
Xavier Noria
cea3b3cc9d
Merge branch 'master' of git://github.com/lifo/docrails
2011-05-04 14:51:04 +02:00
Chris Griego
a962bfe472
Optimize ActiveResource::Base.new(attributes)
...
* Add performance benchmark similar to ActiveRecord
* Lazily find_or_create_resource_for_collection to not incur the overhead for empty arrays and arrays of primatives
* #duplicable? is faster than inline rescues when the object is not duplicable
* Don't constantly raise and handle NameError, raising is expensive
* Even when a resource is nested inside a module, always look inside the class first for the resource definition so we don't overwrite classes all the time
Before: user system total real
Model.new (instantiation) 0.120000 0.000000 0.120000 ( 0.119961)
Nested::Model.new (instantiation) 0.150000 0.010000 0.160000 ( 0.151183)
Model.new (setting attributes) 28.540000 0.680000 29.220000 ( 29.271775)
Nested::Model.new (setting attributes) 29.740000 0.580000 30.320000 ( 30.486210)
After: user system total real
Model.new (instantiation) 0.120000 0.000000 0.120000 ( 0.121249)
Nested::Model.new (instantiation) 0.150000 0.010000 0.160000 ( 0.152429)
Model.new (setting attributes) 11.480000 0.170000 11.650000 ( 11.656163)
Nested::Model.new (setting attributes) 11.510000 0.210000 11.720000 ( 11.724249)
2011-05-01 23:13:08 -05:00
Sebastian Martinez
06b9138188
Added some docs on ActiveResource::HttpMock
2011-05-01 15:59:27 -03:00