1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Mitigates Style/SpecialGlobalVars

This commit is contained in:
Thomas Nys 2015-04-18 01:46:46 +02:00
parent dc28a650f7
commit 7d8c47c287
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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|