Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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