gem-path 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -0
- data/CHANGES.md +9 -0
- data/README.md +6 -7
- data/Rakefile +1 -1
- data/gem-path.gemspec +4 -2
- data/lib/rubygems/commands/path_command.rb +7 -3
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c02bbe30c19779d0ed58d7a5d555825cef64ba7
|
4
|
+
data.tar.gz: 49cedbebd2932c7600e7bb0abdcb4035ee7d6903
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fde3f4884832c4f263304c5468f5dd91747abfa1c8ba70a12c5df171cfe77cbb6d35f4cf19217b178e3c6de159822ef65007224c47944848ed3587a7c78aaf4f
|
7
|
+
data.tar.gz: 35d3470a139d8449d74e348e58445b676eb4de9ffb5f55f29e2bbd60eb10c8d71b5055b86f71393c70e4a8a7452014dbbb76f610e5fb4b0167ac9c780950759a
|
data/.travis.yml
ADDED
data/CHANGES.md
ADDED
data/README.md
CHANGED
@@ -35,22 +35,21 @@ Or checkout [gem-cd][], [gem-eit][], [gem-grep][] for shorthands.
|
|
35
35
|
|
36
36
|
### Gem path
|
37
37
|
|
38
|
-
gem path
|
38
|
+
gem path rib # ~/.gem/ruby/2.0.0/gems/rib-1.0.0
|
39
39
|
|
40
40
|
### Gem path with specific gem version
|
41
41
|
|
42
|
-
gem path
|
43
|
-
gem path
|
44
|
-
gem path
|
42
|
+
gem path rib '<1' # ~/.gem/ruby/2.0.0/gems/rib-0.9.9
|
43
|
+
gem path rib '~>0.8.2' # ~/.gem/ruby/2.0.0/gems/rib-0.8.9
|
44
|
+
gem path rib 0.1.0 # ~/.gem/ruby/2.0.0/gems/rib-0.1.0
|
45
45
|
|
46
46
|
### Find gem path from a require path
|
47
47
|
|
48
|
-
|
49
|
-
gem path rubygems/commands/path_command
|
48
|
+
gem path rib/config # ~/.gem/ruby/2.0.0/gems/rib-1.0.0
|
50
49
|
|
51
50
|
### Find file path from a require path
|
52
51
|
|
53
|
-
gem path timeout
|
52
|
+
gem path timeout # /usr/lib/ruby/2.0.0/timeout.rb
|
54
53
|
|
55
54
|
## CONTRIBUTORS:
|
56
55
|
|
data/Rakefile
CHANGED
data/gem-path.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: gem-path 0.5.
|
2
|
+
# stub: gem-path 0.5.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "gem-path"
|
6
|
-
s.version = "0.5.
|
6
|
+
s.version = "0.5.1"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.authors = ["Lin Jen-Shin (godfat)"]
|
@@ -13,6 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.files = [
|
14
14
|
".gitignore",
|
15
15
|
".gitmodules",
|
16
|
+
".travis.yml",
|
17
|
+
"CHANGES.md",
|
16
18
|
"LICENSE",
|
17
19
|
"README.md",
|
18
20
|
"Rakefile",
|
@@ -33,11 +33,15 @@ class Gem::Commands::PathCommand < Gem::Command
|
|
33
33
|
|
34
34
|
private
|
35
35
|
def extract! args
|
36
|
-
gem(*args)
|
36
|
+
gem(*args)
|
37
37
|
args
|
38
38
|
rescue LoadError => e
|
39
|
-
|
40
|
-
|
39
|
+
if args.size > 1 # terminate if we're asking a specific gem version
|
40
|
+
alert_error(e.message)
|
41
|
+
terminate_interaction(1)
|
42
|
+
else
|
43
|
+
args # this could be a require path, go on searching
|
44
|
+
end
|
41
45
|
end
|
42
46
|
|
43
47
|
def find_path_gem name
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-path
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lin Jen-Shin (godfat)
|
@@ -32,6 +32,8 @@ extra_rdoc_files: []
|
|
32
32
|
files:
|
33
33
|
- .gitignore
|
34
34
|
- .gitmodules
|
35
|
+
- .travis.yml
|
36
|
+
- CHANGES.md
|
35
37
|
- LICENSE
|
36
38
|
- README.md
|
37
39
|
- Rakefile
|