README.rdoc in almodovar-0.5.6 vs README.rdoc in almodovar-0.6.0
- old
+ new
@@ -1,6 +1,6 @@
-=Almodovar
+=Almodovar {<img src="http://travis-ci.org/bebanjo/almodovar.png" />}[http://travis-ci.org/bebanjo/almodovar]
Almodovar is a client for BeBanjo's Sequence & Movida API written in Ruby (it's actually a generic client which plays nice with any RESTful API following some conventions).
==Getting started
@@ -83,22 +83,22 @@
Resource collections have the _create_ method. Just call it with the attributes you want your new resource to have!
>> jobs = Almodovar::Resource("http://sequence.example.com/api/work_areas/52/jobs", auth)
=> [<job> ... </job>, <job> ... </job>]
- >> job = jobs.create(:name => "Wadus")
+ >> job = jobs.create(:job => {:name => "Wadus"})
=> <job> ... </job>
>> job.name
=> "Wadus"
==Modifying resources
You can use the _update_ method:
>> job = Almodovar::Resource("http://sequence.example.com/api/work_areas/52/jobs", auth).first
=> <job> ... </job>
- >> job.update(:name => "Wadus wadus")
+ >> job.update(:job => {:name => "Wadus wadus"})
=> ...
>> job.name
=> "Wadus wadus"
== Deleting resources
@@ -109,10 +109,10 @@
=> <job> ... </job>
>> job.delete
==To-do
-* See what is preventing latest version of Resourceful from working and fix it (Now we're using a vendorized, patched version based on resourceful 0.5.3)
* Better error management
* Write the conventions Almodovar expects in an API
+* Other authentication methods than digest
Copyright (c) 2010 BeBanjo S.L., released under the MIT license
\ No newline at end of file