Permalink
Browse files

Updated layout of files based on this comment: http://railstips.org/b…

  • Loading branch information...
1 parent 13ce703 commit 8fe8241ed272ae9c34da326dcec23d9703716a86 @jnunemaker committed Apr 1, 2010
Showing with 8 additions and 12 deletions.
  1. +1 −1 Rakefile
  2. +3 −7 lib/gemwhois.rb
  3. +0 −3 lib/gemwhois/version.rb
  4. +2 −0 lib/rubygems/commands/{whois.rb → whois_command.rb}
  5. +2 −1 lib/rubygems_plugin.rb
View
@@ -1,7 +1,7 @@
require 'rubygems'
require 'rake'
require 'jeweler'
-require File.dirname(__FILE__) + '/lib/gemwhois/version'
+require File.dirname(__FILE__) + '/lib/gemwhois'
Jeweler::Tasks.new do |gem|
gem.name = 'gemwhois'
View
@@ -1,7 +1,3 @@
-require 'rubygems'
-require 'rubygems/command_manager'
-require 'rubygems/commands/whois'
-require 'crack'
-require 'unindent'
-
-Gem::CommandManager.instance.register_command(:whois)
+module Gemwhois
+ Version = '0.2.1'
+end
@@ -1,3 +0,0 @@
-module Gemwhois
- Version = '0.2'
-end
@@ -1,4 +1,6 @@
require 'rubygems/gemcutter_utilities'
+require 'crack'
+require 'unindent'
class Gem::Commands::WhoisCommand < Gem::Command
include Gem::GemcutterUtilities
@@ -1,3 +1,4 @@
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.3.6')
- require File.join(File.dirname(__FILE__), 'gemwhois')
+ require 'rubygems/command_manager'
+ Gem::CommandManager.instance.register_command(:whois)
end

0 comments on commit 8fe8241

Please sign in to comment.