gem-path 0.7.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +1 -1
- data/CHANGES.md +9 -0
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/gem-path.gemspec +4 -4
- data/lib/rubygems/commands/path_command.rb +14 -1
- data/task/README.md +3 -3
- data/task/gemgem.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4786a967e6d67052d64ae4a5bb5264d21afe2a57fca6d3b3eff326c16da5a325
|
4
|
+
data.tar.gz: 7f4b5583b9c2ae3cb4361bab1d2447549f5be2f097ade91deb9555fcc09e5b70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc857e7a5176cc260bfd5a9825e8a2938f56d4432120901f7c2ac541a6530bbf99143a407406f5eab3d7c91d693684fc3001b6bdcefe1caa24a82327866f2b1e
|
7
|
+
data.tar.gz: 972fae17e38c6feaccabbc73e9a5e865784fd3c5a1833ddf090a2b795efe04fcd1e620a25c263c52fb53e4b3dd92079552077a04652b12ccaa4398e350964942
|
data/.gitmodules
CHANGED
data/CHANGES.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# CHANGES
|
2
2
|
|
3
|
+
## gem-path 1.0.0 -- 2024-08-01
|
4
|
+
|
5
|
+
* Fixed looking up local gems specified in bundler.
|
6
|
+
|
7
|
+
## gem-path 0.7.0 -- 2021-08-11
|
8
|
+
|
9
|
+
* Fixed finding gems like google-protobuf again on Mac where it may not be
|
10
|
+
using `x86_64-darwin20` but `universal-darwin`.
|
11
|
+
|
3
12
|
## gem-path 0.6.2 -- 2017-03-23
|
4
13
|
|
5
14
|
* Fixed finding gems like google-protobuf which could have platform postfix.
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Or checkout [gem-eit][], [gem-grep][] for shorthands.
|
|
24
24
|
|
25
25
|
## REQUIREMENTS:
|
26
26
|
|
27
|
-
* Tested with MRI (official CRuby)
|
27
|
+
* Tested with MRI (official CRuby) and JRuby.
|
28
28
|
|
29
29
|
## INSTALLATION:
|
30
30
|
|
@@ -64,7 +64,7 @@ This was extracted from [eit-gem][].
|
|
64
64
|
|
65
65
|
Apache License 2.0 (Apache-2.0)
|
66
66
|
|
67
|
-
Copyright (c) 2013-
|
67
|
+
Copyright (c) 2013-2024, Lin Jen-Shin (godfat)
|
68
68
|
|
69
69
|
Licensed under the Apache License, Version 2.0 (the "License");
|
70
70
|
you may not use this file except in compliance with the License.
|
data/Rakefile
CHANGED
data/gem-path.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: gem-path 0.
|
2
|
+
# stub: gem-path 1.0.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "gem-path".freeze
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "1.0.0".freeze
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Lin Jen-Shin (godfat)".freeze]
|
11
|
-
s.date = "
|
11
|
+
s.date = "2024-08-01"
|
12
12
|
s.description = "Find the path for a given gem or require path for editing or greping.\n\nFor examples, under [fish](http://fishshell.com/):\n\n cd (gem path gem-path)\n vim (gem path gem-path)\n grep require -R (gem path gem-path)\n\nOr checkout [gem-eit][], [gem-grep][] for shorthands.\n\n[gem-eit]: https://github.com/godfat/gem-eit\n[gem-grep]: https://github.com/godfat/gem-grep".freeze
|
13
13
|
s.email = ["godfat (XD) godfat.org".freeze]
|
14
14
|
s.files = [
|
@@ -27,6 +27,6 @@ Gem::Specification.new do |s|
|
|
27
27
|
"test/test.rb".freeze]
|
28
28
|
s.homepage = "https://github.com/godfat/gem-path".freeze
|
29
29
|
s.licenses = ["Apache-2.0".freeze]
|
30
|
-
s.rubygems_version = "3.
|
30
|
+
s.rubygems_version = "3.5.16".freeze
|
31
31
|
s.summary = "Find the path for a given gem or require path for editing or greping.".freeze
|
32
32
|
end
|
@@ -48,10 +48,15 @@ class Gem::Commands::PathCommand < Gem::Command
|
|
48
48
|
}x
|
49
49
|
]
|
50
50
|
break gem_path if gem_path
|
51
|
+
|
52
|
+
if Object.const_defined?(:Bundler)
|
53
|
+
gem_path = bundler_gem_name_to_path[name]
|
54
|
+
break gem_path if gem_path
|
55
|
+
end
|
51
56
|
end
|
52
57
|
break gem_path if gem_path
|
53
58
|
end
|
54
|
-
gem_path.
|
59
|
+
gem_path.chomp('/') if gem_path
|
55
60
|
end
|
56
61
|
|
57
62
|
private
|
@@ -67,6 +72,14 @@ class Gem::Commands::PathCommand < Gem::Command
|
|
67
72
|
end
|
68
73
|
end
|
69
74
|
|
75
|
+
def bundler_gem_name_to_path
|
76
|
+
@bundler_gem_name_to_path ||= Bundler.load.
|
77
|
+
requested_specs.inject({}) do |result, spec|
|
78
|
+
result[spec.name] = spec.full_gem_path
|
79
|
+
result
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
70
83
|
def sitearch
|
71
84
|
@sitearch ||= RbConfig::CONFIG['sitearch']
|
72
85
|
end
|
data/task/README.md
CHANGED
@@ -17,7 +17,7 @@ Provided tasks:
|
|
17
17
|
|
18
18
|
## INSTALLATION:
|
19
19
|
|
20
|
-
git submodule add
|
20
|
+
git submodule add https://github.com/godfat/gemgem.git task
|
21
21
|
|
22
22
|
And in Rakefile:
|
23
23
|
|
@@ -39,13 +39,13 @@ end
|
|
39
39
|
|
40
40
|
Apache License 2.0 (Apache-2.0)
|
41
41
|
|
42
|
-
Copyright (c) 2011-
|
42
|
+
Copyright (c) 2011-2023, Lin Jen-Shin (godfat)
|
43
43
|
|
44
44
|
Licensed under the Apache License, Version 2.0 (the "License");
|
45
45
|
you may not use this file except in compliance with the License.
|
46
46
|
You may obtain a copy of the License at
|
47
47
|
|
48
|
-
<
|
48
|
+
<https://www.apache.org/licenses/LICENSE-2.0>
|
49
49
|
|
50
50
|
Unless required by applicable law or agreed to in writing, software
|
51
51
|
distributed under the License is distributed on an "AS IS" BASIS,
|
data/task/gemgem.rb
CHANGED
@@ -77,8 +77,8 @@ module Gemgem
|
|
77
77
|
|
78
78
|
def gem_release
|
79
79
|
sh_git('tag', gem_tag)
|
80
|
-
|
81
|
-
|
80
|
+
sh_git('push')
|
81
|
+
sh_git('push', '--tags')
|
82
82
|
sh_gem('push', gem_path)
|
83
83
|
end
|
84
84
|
|
@@ -318,7 +318,7 @@ task :release => [:spec, :check, :build] do
|
|
318
318
|
end
|
319
319
|
|
320
320
|
task :check do
|
321
|
-
|
321
|
+
Gemgem.gem_check
|
322
322
|
end
|
323
323
|
|
324
324
|
end # of gem namespace
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-path
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lin Jen-Shin (godfat)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Find the path for a given gem or require path for editing or greping.
|
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
requirements: []
|
64
|
-
rubygems_version: 3.
|
64
|
+
rubygems_version: 3.5.16
|
65
65
|
signing_key:
|
66
66
|
specification_version: 4
|
67
67
|
summary: Find the path for a given gem or require path for editing or greping.
|