README.txt in rufus-verbs-0.6 vs README.txt in rufus-verbs-0.7
- old
+ new
@@ -99,22 +99,28 @@
# not the response body.
Using get() and co via an EndPoint to share common options for a set of requests
- ep = EndPoint.new :host => "resta.farian.host", :port => 7080, :resource => "inventory/tools"
+ ep = EndPoint.new(
+ :host => "resta.farian.host",
+ :port => 7080,
+ :resource => "inventory/tools")
res = ep.get :id => 1
# still a silver bullet ?
res = ep.get :id => 0
# where did the hammer go ?
A ConditionalEndPoint is an EndPoint that will use conditional GETs whenever possible
- ep = ConditionalEndPoint.new :host => "resta.farian.zion", :port => 7080, :resource => "inventory/tools"
+ ep = ConditionalEndPoint.new(
+ :host => "resta.farian.zion",
+ :port => 7080,
+ :resource => "inventory/tools")
res = ep.get :id => 1
# first call will retrieve the representation completely
res = ep.get :id => 1
@@ -137,10 +143,12 @@
ep = EndPoint.new :digest_authentication => [ "toto", "secretpass" ]
res = get "http://server/doc0", :hba => [ "toto", "secretpass" ]
- res = get "http://server/doc1", :digest_authentication => [ "toto", "secretpass" ]
+ res = get(
+ "http://server/doc1",
+ :digest_authentication => [ "toto", "secretpass" ])
The tests may provide good intel as on 'rufus-verbs' usage as well : http://rufus.rubyforge.org/svn/trunk/verbs/test/
== the options