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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecbbf3ad67669f6f6513c2673c06c93066015cc9
4
- data.tar.gz: e64d0fea2a56e08401360019481aeceea015bdaf
3
+ metadata.gz: 545f59f3904b517456c21b68b3993921ebf69fb3
4
+ data.tar.gz: d8a4415776c4ca3d5e2cd132c67934042d232cf5
5
5
  SHA512:
6
- metadata.gz: f740d838d82bef80f9a2daa40ab582972188458de9ac93e936c4bde5e6b8e4dbdb5cbb056b577c416d06a7fca683a0627598a131377f6b5a6b95df7429882a8a
7
- data.tar.gz: 216a491834432db2273ddd6d02beb3c1f4df66429a6d93e2defe8cbe6a5a938677c36b8aba37ccb6007513aec9b5ddbe610a0d976cec742127f54b722b82affd
6
+ metadata.gz: 4281a08f94b32ad0973bf36a200dbb18e9e9f39452e5016b6fbcc9bc635dca8cd6907a61f400239f09013699bfb9982e17ee6360cabe0f69586c5b2b8a01b367
7
+ data.tar.gz: 01c95dd02db51cef9149d41178da68c19aadfa9a3ba96197c026a3e0ae69ddf4b7c41f326a68889d2b6bcb2984b76f2e5f77df91a9b4ccfaadd6939598c68e4c
data/Rakefile CHANGED
@@ -8,6 +8,6 @@ end
8
8
 
9
9
  Gemgem.init(__dir__) do |s|
10
10
  s.name = 'gem-grep'
11
- s.version = '0.7.0'
11
+ s.version = '0.8.0'
12
12
  s.add_runtime_dependency('gem-path')
13
13
  end
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: gem-grep 0.7.0 ruby lib
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.7.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-07-29"
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.12".freeze
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[:args], options[:build_args]))
25
+ exec(*grep_command(options[:build_args], options[:args]))
26
26
  end
27
27
 
28
- def grep_command path_args, grep_args
29
- [grep_name, *grep_args, *grep_default_args, capture_path(*path_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 *path_args
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.7.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-07-29 00:00:00.000000000 Z
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.12
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.