Skip to content

HTTPS clone URL

Subversion checkout URL

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