gem-grep 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/gem-grep.gemspec +4 -4
- data/lib/rubygems/commands/grep_command.rb +5 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 545f59f3904b517456c21b68b3993921ebf69fb3
|
4
|
+
data.tar.gz: d8a4415776c4ca3d5e2cd132c67934042d232cf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4281a08f94b32ad0973bf36a200dbb18e9e9f39452e5016b6fbcc9bc635dca8cd6907a61f400239f09013699bfb9982e17ee6360cabe0f69586c5b2b8a01b367
|
7
|
+
data.tar.gz: 01c95dd02db51cef9149d41178da68c19aadfa9a3ba96197c026a3e0ae69ddf4b7c41f326a68889d2b6bcb2984b76f2e5f77df91a9b4ccfaadd6939598c68e4c
|
data/Rakefile
CHANGED
data/gem-grep.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: gem-grep 0.
|
2
|
+
# stub: gem-grep 0.8.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "gem-grep".freeze
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "0.8.0"
|
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 = "2017-
|
11
|
+
s.date = "2017-09-11"
|
12
12
|
s.description = "grep the gem for a given name or grep the file for a given require path.\n\nAlso checkout [gem-eit][].\n\n[gem-eit]: https://github.com/godfat/gem-eit".freeze
|
13
13
|
s.email = ["godfat (XD) godfat.org".freeze]
|
14
14
|
s.files = [
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
"task/gemgem.rb".freeze]
|
27
27
|
s.homepage = "https://github.com/godfat/gem-grep".freeze
|
28
28
|
s.licenses = ["Apache-2.0".freeze]
|
29
|
-
s.rubygems_version = "2.6.
|
29
|
+
s.rubygems_version = "2.6.13".freeze
|
30
30
|
s.summary = "grep the gem for a given name or grep the file for a given require path.".freeze
|
31
31
|
|
32
32
|
if s.respond_to? :specification_version then
|
@@ -22,15 +22,16 @@ class Gem::Commands::GrepCommand < Gem::Command
|
|
22
22
|
terminate_interaction(1)
|
23
23
|
end
|
24
24
|
|
25
|
-
exec(*grep_command(options[:
|
25
|
+
exec(*grep_command(options[:build_args], options[:args]))
|
26
26
|
end
|
27
27
|
|
28
|
-
def grep_command
|
29
|
-
[grep_name, *grep_args, *grep_default_args,
|
28
|
+
def grep_command grep_args, *paths_args
|
29
|
+
[grep_name, *grep_args, *grep_default_args,
|
30
|
+
*paths_args.map(&method(:capture_path))]
|
30
31
|
end
|
31
32
|
|
32
33
|
private
|
33
|
-
def capture_path
|
34
|
+
def capture_path path_args
|
34
35
|
ui = CapturedUI.new
|
35
36
|
Gem::DefaultUserInteraction.use_ui(ui) do
|
36
37
|
Gem::GemRunner.new.run(['path', *path_args])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-grep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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: 2017-
|
11
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem-path
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project:
|
71
|
-
rubygems_version: 2.6.
|
71
|
+
rubygems_version: 2.6.13
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: grep the gem for a given name or grep the file for a given require path.
|