gemcd 0.0.5 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = 'gemcd'
6
6
  gem.date = '2012-10-22'
7
- gem.version = '0.0.5'
7
+ gem.version = '1.0.0'
8
8
  gem.authors = ['Nick Barth']
9
9
  gem.email = ['nick@nickbarth.ca']
10
10
  gem.summary = 'A Ruby Gem for navigating your Gem directory.'
11
- gem.description = 'GemCd helps you navigate your Gem directory by extending your gem commands with a built in `cd`.'
12
- gem.homepage = 'https://github.com/nickbarth/GemCd'
11
+ gem.description = 'GemCD helps you navigate your Gem directory by extending your gem commands with `cd`.'
12
+ gem.homepage = 'https://github.com/nickbarth/GemCD'
13
13
 
14
14
  gem.files = `git ls-files`.split($/)
15
15
  gem.require_paths = ['lib']
@@ -1,16 +1,16 @@
1
1
  class Gem::Commands::CdCommand < Gem::Command
2
2
  def initialize
3
- super 'cd', "Navigates to the gem's source directory."
3
+ super 'cd', "CD to the gem directory."
4
4
  end
5
5
 
6
6
  def arguments
7
- "GEM gem to open"
7
+ "GEM gem to cd too"
8
8
  end
9
9
 
10
10
  def execute
11
11
  gem = options[:args].first
12
12
  raise Gem::CommandLineError, 'Usage: gem cd GEM' unless gem
13
13
  Dir.chdir("#{Gem::Specification.find_by_name(gem).full_gem_path}")
14
- exec '$0'
14
+ exec ENV['SHELL']
15
15
  end
16
16
  end
File without changes
data/readme.md CHANGED
@@ -1,4 +1,20 @@
1
- # GemCd
1
+ # GemCD
2
+
3
+ Your Ruby Gems get lonely. Visit them.
4
+
5
+ ## Usage
6
+
7
+ Here is how to use GemCD.
8
+
9
+ [/www]$ gem install gemcd
10
+ [/www]$ gem cd gemcd
11
+ [/usr/local/lib/ruby/gems/1.9.1/gems/gemcd-1.0.0]$ exit
12
+ [/www]$
13
+
14
+ Here is how to use it on Windows.
15
+
16
+ C:\>q_q
17
+ 'q_q' is not recognized as an internal or external command, operable program or batch file.
2
18
 
3
19
  ### License
4
20
  WTFPL &copy; 2012 Nick Barth
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemcd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,8 +11,8 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-10-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: GemCd helps you navigate your Gem directory by extending your gem commands
15
- with a built in `cd`.
14
+ description: GemCD helps you navigate your Gem directory by extending your gem commands
15
+ with `cd`.
16
16
  email:
17
17
  - nick@nickbarth.ca
18
18
  executables: []
@@ -22,10 +22,10 @@ files:
22
22
  - .gitignore
23
23
  - Gemfile
24
24
  - gemcd.gemspec
25
- - lib/gemcd.rb
26
25
  - lib/rubygems/commands/cd.rb
26
+ - lib/rubygems_plugin.rb
27
27
  - readme.md
28
- homepage: https://github.com/nickbarth/GemCd
28
+ homepage: https://github.com/nickbarth/GemCD
29
29
  licenses: []
30
30
  post_install_message:
31
31
  rdoc_options: []