gemwhois 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
  require 'jeweler'
4
- require File.dirname(__FILE__) + '/lib/gemwhois/version'
4
+ require File.dirname(__FILE__) + '/lib/gemwhois'
5
5
 
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = 'gemwhois'
@@ -1,7 +1,3 @@
1
- require 'rubygems'
2
- require 'rubygems/command_manager'
3
- require 'rubygems/commands/whois'
4
- require 'crack'
5
- require 'unindent'
6
-
7
- Gem::CommandManager.instance.register_command(:whois)
1
+ module Gemwhois
2
+ Version = '0.2.1'
3
+ end
@@ -1,4 +1,6 @@
1
1
  require 'rubygems/gemcutter_utilities'
2
+ require 'crack'
3
+ require 'unindent'
2
4
 
3
5
  class Gem::Commands::WhoisCommand < Gem::Command
4
6
  include Gem::GemcutterUtilities
@@ -1,3 +1,4 @@
1
1
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.3.6')
2
- require File.join(File.dirname(__FILE__), 'gemwhois')
2
+ require 'rubygems/command_manager'
3
+ Gem::CommandManager.instance.register_command(:whois)
3
4
  end
@@ -4,10 +4,12 @@ require 'shoulda'
4
4
  require 'fakeweb'
5
5
  require 'mocha'
6
6
  require 'helpers/output'
7
+ require 'pathname'
7
8
 
8
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
9
- $LOAD_PATH.unshift(File.dirname(__FILE__))
10
- require 'gemwhois'
9
+ dir = Pathname(__FILE__).join('..', '..', 'lib')
10
+
11
+ require dir.join('gemwhois').expand_path
12
+ require dir.join('rubygems', 'commands', 'whois_command').expand_path
11
13
 
12
14
  FakeWeb.allow_net_connect = false
13
15
 
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- version: "0.2"
8
+ - 1
9
+ version: 0.2.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - John Nunemaker
@@ -102,8 +103,7 @@ files:
102
103
  - README.rdoc
103
104
  - Rakefile
104
105
  - lib/gemwhois.rb
105
- - lib/gemwhois/version.rb
106
- - lib/rubygems/commands/whois.rb
106
+ - lib/rubygems/commands/whois_command.rb
107
107
  - lib/rubygems_plugin.rb
108
108
  - test/fixtures/httparty.json
109
109
  - test/fixtures/missing.json
@@ -1,3 +0,0 @@
1
- module Gemwhois
2
- Version = '0.2'
3
- end