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