Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
 - lib/curl/easy.rb:NNN: warning: `*' interpreted as argument prefix
 - cyclic requirement warning fixed
  • Loading branch information
geronime committed Feb 6, 2013
1 parent 86a2764 commit 4e822de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 0 additions & 3 deletions lib/curb.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
require 'curb_core'
require 'curl'
require 'curl/easy'
require 'curl/multi'
4 changes: 3 additions & 1 deletion lib/curl.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require 'curb'
require 'curb_core'
require 'curl/easy'
require 'curl/multi'
require 'uri'

# expose shortcut methods
Expand Down
10 changes: 5 additions & 5 deletions lib/curl/easy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class << self
# the +http_get+ call.
#
def perform(*args)
c = Curl::Easy.new *args
c = Curl::Easy.new(*args)
yield c if block_given?
c.perform
c
Expand All @@ -327,7 +327,7 @@ def perform(*args)
# the +http_get+ call.
#
def http_get(*args)
c = Curl::Easy.new *args
c = Curl::Easy.new(*args)
yield c if block_given?
c.http_get
c
Expand All @@ -344,7 +344,7 @@ def http_get(*args)
# the +http_head+ call.
#
def http_head(*args)
c = Curl::Easy.new *args
c = Curl::Easy.new(*args)
yield c if block_given?
c.http_head
c
Expand Down Expand Up @@ -383,7 +383,7 @@ def http_post(*args)
url = args.shift
c = Curl::Easy.new url
yield c if block_given?
c.http_post *args
c.http_post(*args)
c
end

Expand All @@ -398,7 +398,7 @@ def http_post(*args)
# the +http_delete+ call.
#
def http_delete(*args)
c = Curl::Easy.new *args
c = Curl::Easy.new(*args)
yield c if block_given?
c.http_delete
c
Expand Down

0 comments on commit 4e822de

Please sign in to comment.