Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 289 lines (172 sloc) 10.85 kb
43e2fd9 Jeremy Kemper Update CHANGELOG for include_root_in_json.
jeremy authored
1 *Rails 3.0.0 [beta 4/release candidate] (unreleased)*
2
3 * JSON: set Base.include_root_in_json = true to include a root value in the JSON: {"post": {"title": ...}}. Mirrors the Active Record option. [Santiago Pastorino]
4
5
4c8af9b David Heinemeier Hansson Update changelogs for release
dhh authored
6 *Rails 3.0.0 [beta 3] (April 13th, 2010)*
7
8 * No changes
9
10
c1883e7 Yehuda Katz Updated changelogs to differentiate beta1 and beta2
wycats authored
11 *Rails 3.0.0 [beta 1] (February 4, 2010)*
4d15528 Marshall Huss HTTP proxy support
mwhuss authored
12
7975885 Fabien Jakimowicz Add support for errors in JSON format.
jakimowicz authored
13 * Add support for errors in JSON format. #1956 [Fabien Jakimowicz]
14
916b18a Active Resource recognizes 410 as Resource Gone now [#2316 state:resolve...
Jordan Brough authored
15 * Recognizes 410 as Resource Gone. #2316 [Jordan Brough, Jatinder Singh]
16
3e09516 rnicholson Add ability to set SSL options on ARes connections.
rnicholson authored
17 * More thorough SSL support. #2370 [Roy Nicholson]
18
4d15528 Marshall Huss HTTP proxy support
mwhuss authored
19 * HTTP proxy support. #2133 [Marshall Huss, Sébastien Dabet]
20
21
73fc42c David Heinemeier Hansson Prepare for final 2.3 release
dhh authored
22 *2.3.2 [Final] (March 15, 2009)*
77b0994 David Heinemeier Hansson Prep for RC2 later today
dhh authored
23
73fc42c David Heinemeier Hansson Prepare for final 2.3 release
dhh authored
24 * Nothing new, just included in 2.3.2
ed5fa2f David Heinemeier Hansson Mark CHANGELOGs for release
dhh authored
25
26
61e4370 David Heinemeier Hansson Prepare for RC2
dhh authored
27 *2.2.1 [RC2] (November 14th, 2008)*
dffc2e2 David Heinemeier Hansson Fixed that ActiveResource#post would post an empty string when it should...
dhh authored
28
29 * Fixed that ActiveResource#post would post an empty string when it shouldn't be posting anything #525 [Paolo Angelini]
30
31
d224e6c David Heinemeier Hansson Update CHANGELOGs with the last few fixes, set date for today
dhh authored
32 *2.2.0 [RC1] (October 24th, 2008)*
e7a305f David Heinemeier Hansson Fixed Base#exists? to check status code as integer [#299 state:resolved]...
dhh authored
33
f2c10f2 Add ActiveResource::Base#to_xml and ActiveResource::Base#to_json methods...
Cody Fauser authored
34 * Add ActiveResource::Base#to_xml and ActiveResource::Base#to_json. #1011 [Rasik Pandey, Cody Fauser]
35
893fb5b Adrian Mugnolo Add ActiveResource::Base.find(:last). [#754 state:resolved]
xymbol authored
36 * Add ActiveResource::Base.find(:last). [#754 state:resolved] (Adrian Mugnolo)
37
aad7cac David Heinemeier Hansson Fixed problems with the logger used if the logging string included %'s [...
dhh authored
38 * Fixed problems with the logger used if the logging string included %'s [#840 state:resolved] (Jamis Buck)
39
e7a305f David Heinemeier Hansson Fixed Base#exists? to check status code as integer [#299 state:resolved]...
dhh authored
40 * Fixed Base#exists? to check status code as integer [#299 state:resolved] (Wes Oldenbeuving)
41
42
f9db769 David Heinemeier Hansson Making ready for release of 2.1
dhh authored
43 *2.1.0 (May 31st, 2008)*
a1ec3aa Jeremy Kemper Ruby 1.9 compatibility
jeremy authored
44
869d731 Fixed response logging to use length instead of the entire thing (seange...
David Heinemeier Hansson authored
45 * Fixed response logging to use length instead of the entire thing (seangeo) [#27]
46
9300ebd David Heinemeier Hansson Fixed that to_param should be used and honored instead of hardcoding the...
dhh authored
47 * Fixed that to_param should be used and honored instead of hardcoding the id #11406 [gspiers]
48
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
49 * Improve documentation. [Ryan Bigg, Jan De Poorter, Cheah Chu Yeow, Xavier Shay, Jack Danger Canty, Emilio Tagua, Xavier Noria, Sunny Ripert]
ca94136 Pratik Improve documentation.
lifo authored
50
5396b0f Michael Koziarski Use HEAD instead of GET inside exists? Closes #11062 [bscofield]
NZKoz authored
51 * Use HEAD instead of GET in exists? [bscofield]
52
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
53 * Fix small documentation typo. Closes #10670 [Luca Guidi]
4261b83 risk danger olson Fix small documentation typo. Closes #10670 [l.guidi]
technoweenie authored
54
9a97f9a Jeremy Kemper find_or_create_resource_for handles module nesting. Closes #10646.
jeremy authored
55 * find_or_create_resource_for handles module nesting. #10646 [xavier]
56
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
57 * Allow setting ActiveResource::Base#format before #site. [Rick Olson]
e873071 risk danger olson Allow setting ActiveResource::Base#format before #site. [rick]
technoweenie authored
58
c54b915 risk danger olson Support agnostic formats when calling custom methods. Closes #10635 [jo...
technoweenie authored
59 * Support agnostic formats when calling custom methods. Closes #10635 [joerichsen]
60
470fc02 Jeremy Kemper Document custom methods. Closes #10589.
jeremy authored
61 * Document custom methods. #10589 [Cheah Chu Yeow]
62
a1ec3aa Jeremy Kemper Ruby 1.9 compatibility
jeremy authored
63 * Ruby 1.9 compatibility. [Jeremy Kemper]
64
65
69edebf David Heinemeier Hansson Prepare for 2.0.2 release
dhh authored
66 *2.0.2* (December 16th, 2007)
c81fff2 Jeremy Kemper Correct empty response handling. Closes #10445.
jeremy authored
67
1ceccde David Heinemeier Hansson Added more specific exceptions for 400, 401, and 403 (all descending fro...
dhh authored
68 * Added more specific exceptions for 400, 401, and 403 (all descending from ClientError so existing rescues will work) #10326 [trek]
69
c81fff2 Jeremy Kemper Correct empty response handling. Closes #10445.
jeremy authored
70 * Correct empty response handling. #10445 [seangeo]
71
72
1acd54a David Heinemeier Hansson Make ready for 2.0.1
dhh authored
73 *2.0.1* (December 7th, 2007)
54a75de David Heinemeier Hansson Prep for RC2
dhh authored
74
24e6cbc risk danger olson Don't cache net/http object so that ActiveResource is more thread-safe. ...
technoweenie authored
75 * Don't cache net/http object so that ActiveResource is more thread-safe. Closes #10142 [kou]
76
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
77 * Update XML documentation examples to include explicit type attributes. Closes #9754 [Josh Susser]
7863c4a Update XML documentation examples to include explicit type attributes. C...
Marcel Molina authored
78
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
79 * Added one-off declarations of mock behavior [David Heinemeier Hansson]. Example:
dc399b9 David Heinemeier Hansson Added ActiveResource.format= which defaults to :xml but can also be set ...
dhh authored
80
81 Before:
82 ActiveResource::HttpMock.respond_to do |mock|
83 mock.get "/people/1.xml", {}, "<person><name>David</name></person>"
84 end
85
86 Now:
87 ActiveResource::HttpMock.respond_to.get "/people/1.xml", {}, "<person><name>David</name></person>"
88
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
89 * Added ActiveResource.format= which defaults to :xml but can also be set to :json [David Heinemeier Hansson]. Example:
dc399b9 David Heinemeier Hansson Added ActiveResource.format= which defaults to :xml but can also be set ...
dhh authored
90
91 class Person < ActiveResource::Base
92 self.site = "http://app/"
93 self.format = :json
94 end
95
96 person = Person.find(1) # => GET http://app/people/1.json
97 person.name = "David"
98 person.save # => PUT http://app/people/1.json {name: "David"}
99
100 Person.format = :xml
101 person.name = "Mary"
102 person.save # => PUT http://app/people/1.json <person><name>Mary</name></person>
103
e682fee Jeremy Kemper Fix reload error when path prefix is used. Closes #8727.
jeremy authored
104 * Fix reload error when path prefix is used. #8727 [Ian Warshak]
105
fde3d9d Jeremy Kemper Remove ActiveResource::Struct because it hasn't proven very useful. Crea...
jeremy authored
106 * Remove ActiveResource::Struct because it hasn't proven very useful. Creating a new ActiveResource::Base subclass is often less code and always clearer. #8612 [Josh Peek]
107
bfda4cd Fixed query methods on resources. [Cody Fauser]
Tobias Lütke authored
108 * Fix query methods on resources. [Cody Fauser]
109
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
110 * pass the prefix_options to the instantiated record when using find without a specific id. Closes #8544 [Eloy Duran]
4d1c87a risk danger olson pass the prefix_options to the instantiated record when using find witho...
technoweenie authored
111
849038e Jeremy Kemper Recognize and raise an exception on 405 Method Not Allowed responses. Cl...
jeremy authored
112 * Recognize and raise an exception on 405 Method Not Allowed responses. #7692 [Josh Peek]
113
0873678 risk danger olson Handle string and symbol param keys when splitting params into prefix pa...
technoweenie authored
114 * Handle string and symbol param keys when splitting params into prefix params and query params.
115
116 Comment.find(:all, :params => { :article_id => 5, :page => 2 }) or Comment.find(:all, :params => { 'article_id' => 5, :page => 2 })
117
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
118 * Added find-one with symbol [David Heinemeier Hansson]. Example: Person.find(:one, :from => :leader) # => GET /people/leader.xml
04fd94d David Heinemeier Hansson BACKWARDS INCOMPATIBLE: Changed the finder API to be more extensible wit...
dhh authored
119
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
120 * BACKWARDS INCOMPATIBLE: Changed the finder API to be more extensible with :params and more strict usage of scopes [David Heinemeier Hansson]. Changes:
04fd94d David Heinemeier Hansson BACKWARDS INCOMPATIBLE: Changed the finder API to be more extensible wit...
dhh authored
121
122 Person.find(:all, :title => "CEO") ...becomes: Person.find(:all, :params => { :title => "CEO" })
123 Person.find(:managers) ...becomes: Person.find(:all, :from => :managers)
124 Person.find("/companies/1/manager.xml") ...becomes: Person.find(:one, :from => "/companies/1/manager.xml")
125
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
126 * Add support for setting custom headers per Active Resource model [Rick Olson]
bd50d82 risk danger olson Add support for setting custom headers per ActiveResource model [Rick]
technoweenie authored
127
128 class Project
8e8fd99 risk danger olson change #custom_headers to just #headers [Rick]
technoweenie authored
129 headers['X-Token'] = 'foo'
bd50d82 risk danger olson Add support for setting custom headers per ActiveResource model [Rick]
technoweenie authored
130 end
131
132 # makes the GET request with the custom X-Token header
133 Project.find(:all)
134
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
135 * Added find-by-path options to ActiveResource::Base.find [David Heinemeier Hansson]. Examples:
1d5c34c David Heinemeier Hansson Added find-by-path options to ActiveResource::Base.find [DHH]
dhh authored
136
137 employees = Person.find(:all, :from => "/companies/1/people.xml") # => GET /companies/1/people.xml
138 manager = Person.find("/companies/1/manager.xml") # => GET /companies/1/manager.xml
139
140
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
141 * Added support for using classes from within a single nested module [David Heinemeier Hansson]. Example:
234b0b7 David Heinemeier Hansson Added support for using classes from within a single nested module [DHH]
dhh authored
142
143 module Highrise
144 class Note < ActiveResource::Base
145 self.site = "http://37s.sunrise.i:3000"
146 end
147
148 class Comment < ActiveResource::Base
149 self.site = "http://37s.sunrise.i:3000"
150 end
151 end
152
153 assert_kind_of Highrise::Comment, Note.find(1).comments.first
154
155
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
156 * Added load_attributes_from_response as a way of loading attributes from other responses than just create [David Heinemeier Hansson]
37e8e35 David Heinemeier Hansson Added load_attributes_from_response as a way of loading attributes from ...
dhh authored
157
158 class Highrise::Task < ActiveResource::Base
159 def complete
160 load_attributes_from_response(post(:complete))
161 end
162 end
163
164 ...will set "done_at" when complete is called.
165
166
9b8399f David Heinemeier Hansson Added support for calling custom methods #6979 [rwdaigle]
dhh authored
167 * Added support for calling custom methods #6979 [rwdaigle]
168
169 Person.find(:managers) # => GET /people/managers.xml
170 Kase.find(1).post(:close) # => POST /kases/1/close.xml
171
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
172 * Remove explicit prefix_options parameter for ActiveResource::Base#initialize. [Rick Olson]
208d12d risk danger olson Remove explicit prefix_options parameter for ActiveResource::Base#initia...
technoweenie authored
173 ActiveResource splits the prefix_options from it automatically.
174
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
175 * Allow ActiveResource::Base.delete with custom prefix. [Rick Olson]
208d12d risk danger olson Remove explicit prefix_options parameter for ActiveResource::Base#initia...
technoweenie authored
176
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
177 * Add ActiveResource::Base#dup [Rick Olson]
208d12d risk danger olson Remove explicit prefix_options parameter for ActiveResource::Base#initia...
technoweenie authored
178
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
179 * Fixed constant warning when fetching the same object multiple times [David Heinemeier Hansson]
c97f329 David Heinemeier Hansson Disregard namespaces from the default element name, so Highrise::Person ...
dhh authored
180
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
181 * Added that saves which get a body response (and not just a 201) will use that response to update themselves [David Heinemeier Hansson]
c97f329 David Heinemeier Hansson Disregard namespaces from the default element name, so Highrise::Person ...
dhh authored
182
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
183 * Disregard namespaces from the default element name, so Highrise::Person will just try to fetch from "/people", not "/highrise/people" [David Heinemeier Hansson]
c97f329 David Heinemeier Hansson Disregard namespaces from the default element name, so Highrise::Person ...
dhh authored
184
d97456d Jeremy Kemper Allow array and hash query parameters. Closes #7756.
jeremy authored
185 * Allow array and hash query parameters. #7756 [Greg Spurrier]
186
1b1ddf1 Jeremy Kemper Loading a resource preserves its prefix_options. Closes #7353. Silence p...
jeremy authored
187 * Loading a resource preserves its prefix_options. #7353 [Ryan Daigle]
188
f49e449 risk danger olson Carry over the convenience of #create from ActiveRecord. Closes #7340. ...
technoweenie authored
189 * Carry over the convenience of #create from ActiveRecord. Closes #7340. [Ryan Daigle]
190
1bdb14b risk danger olson Increase ActiveResource::Base test coverage. Closes #7173, #7174 [Rich ...
technoweenie authored
191 * Increase ActiveResource::Base test coverage. Closes #7173, #7174 [Rich Collins]
192
e00e6a2 Jeremy Kemper Interpret 422 Unprocessable Entity as ResourceInvalid. Closes #7097.
jeremy authored
193 * Interpret 422 Unprocessable Entity as ResourceInvalid. #7097 [dkubb]
194
932e7b0 risk danger olson Mega documentation patches. #7025, #7069 [rwdaigle]
technoweenie authored
195 * Mega documentation patches. #7025, #7069 [rwdaigle]
196
2bb33bb Jeremy Kemper Base.exists?(id, options) and Base#exists? check whether the resource is...
jeremy authored
197 * Base.exists?(id, options) and Base#exists? check whether the resource is found. #6970 [rwdaigle]
198
4e57ac3 Jeremy Kemper Query string support. Closes #6855.
jeremy authored
199 * Query string support. [untext, Jeremy Kemper]
200 # GET /forums/1/topics.xml?sort=created_at
201 Topic.find(:all, :forum_id => 1, :sort => 'created_at')
202
c172154 Jeremy Kemper Base#==, eql?, and hash methods. == returns true if its argument is iden...
jeremy authored
203 * Base#==, eql?, and hash methods. == returns true if its argument is identical to self or if it's an instance of the same class, is not new?, and has the same id. eql? is an alias for ==. hash delegates to id. [Jeremy Kemper]
204
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
205 * Allow subclassed resources to share the site info [Rick Olson, Jeremy Kemper]
2df386a risk danger olson why oh why do i always forget to save the changelog
technoweenie authored
206 d
011f4e7 risk danger olson Allow subclassed resources to share the site info [Rick]
technoweenie authored
207 class BeastResource < ActiveResource::Base
208 self.site = 'http://beast.caboo.se'
209 end
e6988ef Jeremy Kemper Subclasses share superclass site until explicitly set. This way you can ...
jeremy authored
210
011f4e7 risk danger olson Allow subclassed resources to share the site info [Rick]
technoweenie authored
211 class Forum < BeastResource
212 # taken from BeastResource
213 # self.site = 'http://beast.caboo.se'
214 end
e6988ef Jeremy Kemper Subclasses share superclass site until explicitly set. This way you can ...
jeremy authored
215
011f4e7 risk danger olson Allow subclassed resources to share the site info [Rick]
technoweenie authored
216 class Topic < BeastResource
e6988ef Jeremy Kemper Subclasses share superclass site until explicitly set. This way you can ...
jeremy authored
217 self.site += '/forums/:forum_id'
011f4e7 risk danger olson Allow subclassed resources to share the site info [Rick]
technoweenie authored
218 end
219
55d4dbb risk danger olson Fix issues with ActiveResource collection handling. Closes #6291. [bmil...
technoweenie authored
220 * Fix issues with ActiveResource collection handling. Closes #6291. [bmilekic]
221
1d31a04 Use attr_accessor_with_default to dry up attribute initialization. Refer...
Marcel Molina authored
222 * Use attr_accessor_with_default to dry up attribute initialization. References #6538. [Stuart Halloway]
223
9c94438 Jamis Buck Add basic logging support for logging outgoing requests.
jamis authored
224 * Add basic logging support for logging outgoing requests. [Jamis Buck]
225
6c0609f Jamis Buck Add Base.delete for deleting resources without having to instantiate the...
jamis authored
226 * Add Base.delete for deleting resources without having to instantiate them first. [Jamis Buck]
227
628838e Jamis Buck Make #save behavior mimic AR::Base#save (true on success, false on failu...
jamis authored
228 * Make #save behavior mimic AR::Base#save (true on success, false on failure). [Jamis Buck]
229
7ac6ed8 risk danger olson Add Basic HTTP Authentication to ActiveResource (closes #6305). [jonatha...
technoweenie authored
230 * Add Basic HTTP Authentication to ActiveResource (closes #6305). [jonathan]
231
4d63e01 risk danger olson fixed failing tests now that non-GET requests are sent with .xml file ex...
technoweenie authored
232 * Extracted #id_from_response as an entry point for customizing how a created resource gets its own ID.
233 By default, it extracts from the Location response header.
234
0a84624 Jeremy Kemper Optimistic locking: raise ActiveResource::ResourceConflict on 409 Confli...
jeremy authored
235 * Optimistic locking: raise ActiveResource::ResourceConflict on 409 Conflict response. [Jeremy Kemper]
236
237 # Example controller action
238 def update
239 @person.save!
240 rescue ActiveRecord::StaleObjectError
241 render :xml => @person.reload.to_xml, :status => '409 Conflict'
242 end
243
8d9e660 risk danger olson Basic validation support [Rick Olson]
technoweenie authored
244 * Basic validation support [Rick Olson]
245
246 Parses the xml response of ActiveRecord::Errors#to_xml with a similar interface to ActiveRecord::Errors.
247
248 render :xml => @person.errors.to_xml, :status => '400 Validation Error'
249
c918fbf Jeremy Kemper Deep hashes are converted into collections of resources. Class attribute...
jeremy authored
250 * Deep hashes are converted into collections of resources. [Jeremy Kemper]
251 Person.new :name => 'Bob',
252 :address => { :id => 1, :city => 'Portland' },
253 :contacts => [{ :id => 1 }, { :id => 2 }]
254 Looks for Address and Contact resources and creates them if unavailable.
255 So clients can fetch a complex resource in a single request if you e.g.
256 render :xml => @person.to_xml(:include => [:address, :contacts])
257 in your controller action.
258
7749c9c risk danger olson Major updates to ActiveResource, please see changelog and unit tests [Ri...
technoweenie authored
259 * Major updates [Rick Olson]
260
261 * Add full support for find/create/update/destroy
262 * Add support for specifying prefixes.
263 * Allow overriding of element_name, collection_name, and primary key
264 * Provide simpler HTTP mock interface for testing
265
266 # rails routing code
267 map.resources :posts do |post|
268 post.resources :comments
269 end
270
271 # ActiveResources
272 class Post < ActiveResource::Base
273 self.site = "http://37s.sunrise.i:3000/"
274 end
275
276 class Comment < ActiveResource::Base
277 self.site = "http://37s.sunrise.i:3000/posts/:post_id/"
278 end
279
280 @post = Post.find 5
281 @comments = Comment.find :all, :post_id => @post.id
282
283 @comment = Comment.new({:body => 'hello world'}, {:post_id => @post.id})
284 @comment.save
285
f9b3694 Jeremy Kemper 200...400 are valid response codes. PUT and POST request bodies default ...
jeremy authored
286 * Base.site= accepts URIs. 200...400 are valid response codes. PUT and POST request bodies default to ''. [Jeremy Kemper]
c1af2db Jeremy Kemper site= accepts URIs
jeremy authored
287
46c7dd2 Xavier Noria normalize author names in changelogs [#1495 state:committed]
fxn authored
288 * Initial checkin: object-oriented client for restful HTTP resources which follow the Rails convention. [David Heinemeier Hansson]
Something went wrong with that request. Please try again.