motion/http.rb in bubble-wrap-1.3.0 vs motion/http.rb in bubble-wrap-1.4.0

- old
+ new

@@ -17,10 +17,10 @@ # BubbleWrap::HTTP.get("https://api.github.com/users/mattetti", {credentials: {username: 'matt', password: 'aimonetti'}}) do |response| # p response.body.to_str # prints the response's body # end # - [:get, :post, :put, :delete, :head, :patch].each do |http_verb| + [:get, :post, :put, :delete, :head, :options, :patch].each do |http_verb| define_singleton_method(http_verb) do |url, options = {}, &block| options[:action] = block if block HTTP::Query.new(url, http_verb, options) end