gemcd 0.0.5 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/gemcd.gemspec +3 -3
- data/lib/rubygems/commands/cd.rb +3 -3
- data/lib/{gemcd.rb → rubygems_plugin.rb} +0 -0
- data/readme.md +17 -1
- metadata +5 -5
data/gemcd.gemspec
CHANGED
@@ -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
|
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 = '
|
12
|
-
gem.homepage = 'https://github.com/nickbarth/
|
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']
|
data/lib/rubygems/commands/cd.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
class Gem::Commands::CdCommand < Gem::Command
|
2
2
|
def initialize
|
3
|
-
super 'cd', "
|
3
|
+
super 'cd', "CD to the gem directory."
|
4
4
|
end
|
5
5
|
|
6
6
|
def arguments
|
7
|
-
"GEM gem to
|
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 '
|
14
|
+
exec ENV['SHELL']
|
15
15
|
end
|
16
16
|
end
|
File without changes
|
data/readme.md
CHANGED
@@ -1,4 +1,20 @@
|
|
1
|
-
#
|
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 © 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
|
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:
|
15
|
-
with
|
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/
|
28
|
+
homepage: https://github.com/nickbarth/GemCD
|
29
29
|
licenses: []
|
30
30
|
post_install_message:
|
31
31
|
rdoc_options: []
|