gem-path 0.6.0 → 0.6.1
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.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/Rakefile +1 -1
- data/gem-path.gemspec +2 -2
- data/lib/rubygems/commands/path_command.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e7f21ca15b0727abebdd8803578ca20a5df360e1
|
|
4
|
+
data.tar.gz: 3b28368692aa43ac2057aa63fc95aa860978ab85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5db751acd42cae416b12cc77effabc1be93061973600a5a34d43667895efff7a5f5772156e21dbe999240a0d4b50c4ec5349dd99a6d3f524c0c5ff6faba14d9b
|
|
7
|
+
data.tar.gz: 9a4c0461ca7cc9e5e4a393a9acbba9898838b8c385a6282da83a6085883f56a4454ba99a149f0313fd35c5797f789e9d87a7fb70016e4ebb7775e0f10cf86730
|
data/CHANGES.md
CHANGED
data/Rakefile
CHANGED
data/gem-path.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: gem-path 0.6.
|
|
2
|
+
# stub: gem-path 0.6.1 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "gem-path"
|
|
6
|
-
s.version = "0.6.
|
|
6
|
+
s.version = "0.6.1"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib"]
|
|
@@ -34,9 +34,9 @@ class Gem::Commands::PathCommand < Gem::Command
|
|
|
34
34
|
def find_gem_path name
|
|
35
35
|
gem_path = Gem.path.find do |base|
|
|
36
36
|
gem_path = $LOAD_PATH.find do |path|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
gem_path = path[%r{#{base}/(bundler/)?gems/#{name}\-[^/-]+/}]
|
|
38
|
+
break gem_path if gem_path
|
|
39
|
+
end
|
|
40
40
|
break gem_path if gem_path
|
|
41
41
|
end
|
|
42
42
|
gem_path[0...-1] if gem_path
|