lib/curb-fu.rb in curb-fu-0.4.4 vs lib/curb-fu.rb in curb-fu-0.6.0
- old
+ new
@@ -1,29 +1,27 @@
dir = File.dirname(__FILE__)
$:.unshift(dir) unless $:.include?(dir)
require 'curb-fu/response'
require 'curb-fu/request'
-require 'curb-fu/entity'
require 'curb-fu/authentication'
require 'curb-fu/core_ext'
-require 'curb-fu/test'
module CurbFu
class << self
- def get(*args)
- CurbFu::Request.get(*args)
+ def get(*args, &block)
+ CurbFu::Request.get(*args, &block)
end
- def post(*args)
- CurbFu::Request.post(*args)
+ def post(*args, &block)
+ CurbFu::Request.post(*args, &block)
end
- def put(*args)
- CurbFu::Request.put(*args)
+ def put(*args, &block)
+ CurbFu::Request.put(*args, &block)
end
- def delete(*args)
- CurbFu::Request.delete(*args)
+ def delete(*args, &block)
+ CurbFu::Request.delete(*args, &block)
end
attr_accessor :stubs
def stubs=(val)