mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Mitigates Style/SpecialGlobalVars
This commit is contained in:
parent
dc28a650f7
commit
7d8c47c287
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
require "optparse"
|
||||
require "pp"
|
||||
|
||||
$:.unshift(File.join(File.dirname(__FILE__), "/../lib"))
|
||||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "/../lib"))
|
||||
require "httparty"
|
||||
|
||||
opts = {
|
||||
|
@ -13,7 +13,7 @@ opts = {
|
|||
}
|
||||
|
||||
OptionParser.new do |o|
|
||||
o.banner = "USAGE: #{$0} [options] [url]"
|
||||
o.banner = "USAGE: #{$PROGRAM_NAME} [options] [url]"
|
||||
|
||||
o.on("-f",
|
||||
"--format [FORMAT]",
|
||||
|
@ -67,7 +67,7 @@ end.parse!
|
|||
|
||||
if ARGV.empty?
|
||||
STDERR.puts "You need to provide a URL"
|
||||
STDERR.puts "USAGE: #{$0} [options] [url]"
|
||||
STDERR.puts "USAGE: #{$PROGRAM_NAME} [options] [url]"
|
||||
end
|
||||
|
||||
def dump_headers(response)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
|
||||
require "httparty/version"
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
|
|
Loading…
Add table
Reference in a new issue