Skip to content
Browse files

Double quotes

  • Loading branch information...
1 parent 9d8961a commit add6330ecd9a4302bae24807328b10e9b346e5d9 @weppos committed Apr 12, 2010
Showing with 17 additions and 17 deletions.
  1. +14 −14 Rakefile
  2. +3 −3 lib/whois.rb
View
28 Rakefile
@@ -1,27 +1,27 @@
-$:.unshift(File.dirname(__FILE__) + "/lib")
-
-require 'whois'
-require 'rubygems'
-require 'rake'
-require 'echoe'
+require "rubygems"
+require "rake"
+require "echoe"
begin
- require 'hanna/rdoctask'
+ require "hanna/rdoctask"
hanna = false
rescue LoadError
- require 'rake/rdoctask'
+ require "rake/rdoctask"
hanna = true
end
+$:.unshift(File.dirname(__FILE__) + "/lib")
+require "whois"
+
# Common package properties
-PKG_NAME = ENV['PKG_NAME'] || Whois::GEM
-PKG_VERSION = ENV['PKG_VERSION'] || Whois::VERSION
-RUBYFORGE_PROJECT = 'whois'
+PKG_NAME = ENV["PKG_NAME"] || Whois::GEM
+PKG_VERSION = ENV["PKG_VERSION"] || Whois::VERSION
+RUBYFORGE_PROJECT = "whois"
if ENV['SNAPSHOT'].to_i == 1
PKG_VERSION << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
end
-
-
+
+
Echoe.new(PKG_NAME, PKG_VERSION) do |p|
p.author = "Simone Carletti"
p.email = "weppos@weppos.net"
@@ -53,7 +53,7 @@ task :console do
end
begin
- require 'code_statistics'
+ require "code_statistics"
desc "Show library's code statistics"
task :stats do
CodeStatistics.new(["Whois", "lib"],
View
6 lib/whois.rb
@@ -24,9 +24,9 @@
module Whois
- NAME = 'Whois'
- GEM = 'whois'
- AUTHORS = ['Simone Carletti <weppos@weppos.net>']
+ NAME = "Whois"
+ GEM = "whois"
+ AUTHORS = ["Simone Carletti <weppos@weppos.net>"]
# Queries the right whois server for <tt>qstring</tt> and returns

0 comments on commit add6330

Please sign in to comment.
Something went wrong with that request. Please try again.