gem-bgrep 0.6.2 → 0.6.3

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: 05b90a5ef1fed0cce863764957910b8d90c82243
4
- data.tar.gz: eb4d4205d08644d5112f14a27d09932ee10d55fb
3
+ metadata.gz: 02812e5a6c95d2aa420ae4655d4dd2b6ab802c2a
4
+ data.tar.gz: ce86b6f65cc9badabee524f3c9f4a803b49d4499
5
5
  SHA512:
6
- metadata.gz: 335342b1279b8ecebfb0a331827806973f9a03c172d8e32d80c30791cec4bcf9fec689068944cd14da2c8d4446a943fe0cc3360da9485d47145ac990842366aa
7
- data.tar.gz: 268c33d6cc8b04dea01ab88c2d7b538c109da84061ca7ba6fbf6aeb3d1a2c3eeed04c312d3dc141a5106bd2f46581b165574473143f7e16dfc6de81fe701b455
6
+ metadata.gz: 9e9a42c6d176b0242c1cc80757f4eec4f3cd516c8b648d4559593bdd13f8ef66f6a39d17df6a6d7d7a22274e1e348894dd71fe644fe4e92a9611f854b40f6a6a
7
+ data.tar.gz: 679c09a42bcb281577253e51af9aa4951cd31e931fbcbfaecb8e32f262c065974a87de3babcd0b6523fcc30c2e929c663239d679bf4124ee321edeb737e2170f
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGES
2
2
 
3
+ ## gem-bgrep 0.6.3 -- 2016-05-29
4
+
5
+ * Show "No Gemfile detected." when we can't setup bundler.
6
+ * Fixed a bug where ignored groups were also searched.
7
+
3
8
  ## gem-bgrep 0.6.0 -- 2014-03-24
4
9
 
5
10
  * Birthday!
data/Rakefile CHANGED
@@ -8,6 +8,7 @@ end
8
8
 
9
9
  Gemgem.init(dir) do |s|
10
10
  s.name = 'gem-bgrep'
11
- s.version = '0.6.2'
11
+ s.version = '0.6.3'
12
12
  s.add_runtime_dependency('gem-grep', '>= 0.6.2')
13
+ s.add_runtime_dependency('bundler')
13
14
  end
data/gem-bgrep.gemspec CHANGED
@@ -1,43 +1,46 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: gem-bgrep 0.6.2 ruby lib
2
+ # stub: gem-bgrep 0.6.3 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.name = "gem-bgrep"
6
- s.version = "0.6.2"
5
+ s.name = "gem-bgrep".freeze
6
+ s.version = "0.6.3"
7
7
 
8
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
- s.require_paths = ["lib"]
10
- s.authors = ["Lin Jen-Shin (godfat)"]
11
- s.date = "2014-03-24"
12
- s.description = "Can't find some codes from your app? gem-bgrep let you grep from your Gemfile.\n\nAlso checkout [gem-grep][].\n\n[gem-grep]: https://github.com/godfat/gem-grep"
13
- s.email = ["godfat (XD) godfat.org"]
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
+ s.require_paths = ["lib".freeze]
10
+ s.authors = ["Lin Jen-Shin (godfat)".freeze]
11
+ s.date = "2016-05-29"
12
+ s.description = "Can't find some codes from your app? gem-bgrep let you grep from your Gemfile.\n\nAlso checkout [gem-grep][].\n\n[gem-grep]: https://github.com/godfat/gem-grep".freeze
13
+ s.email = ["godfat (XD) godfat.org".freeze]
14
14
  s.files = [
15
- ".gitignore",
16
- ".gitmodules",
17
- ".travis.yml",
18
- "CHANGES.md",
19
- "LICENSE",
20
- "README.md",
21
- "Rakefile",
22
- "gem-bgrep.gemspec",
23
- "lib/rubygems/commands/bgrep_command.rb",
24
- "lib/rubygems_plugin.rb",
25
- "task/README.md",
26
- "task/gemgem.rb"]
27
- s.homepage = "https://github.com/godfat/gem-bgrep"
28
- s.licenses = ["Apache License 2.0"]
29
- s.rubygems_version = "2.2.2"
30
- s.summary = "Can't find some codes from your app? gem-bgrep let you grep from your Gemfile."
15
+ ".gitignore".freeze,
16
+ ".gitmodules".freeze,
17
+ ".travis.yml".freeze,
18
+ "CHANGES.md".freeze,
19
+ "LICENSE".freeze,
20
+ "README.md".freeze,
21
+ "Rakefile".freeze,
22
+ "gem-bgrep.gemspec".freeze,
23
+ "lib/rubygems/commands/bgrep_command.rb".freeze,
24
+ "lib/rubygems_plugin.rb".freeze,
25
+ "task/README.md".freeze,
26
+ "task/gemgem.rb".freeze]
27
+ s.homepage = "https://github.com/godfat/gem-bgrep".freeze
28
+ s.licenses = ["Apache License 2.0".freeze]
29
+ s.rubygems_version = "2.6.4".freeze
30
+ s.summary = "Can't find some codes from your app? gem-bgrep let you grep from your Gemfile.".freeze
31
31
 
32
32
  if s.respond_to? :specification_version then
33
33
  s.specification_version = 4
34
34
 
35
35
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
36
- s.add_runtime_dependency(%q<gem-grep>, [">= 0.6.2"])
36
+ s.add_runtime_dependency(%q<gem-grep>.freeze, [">= 0.6.2"])
37
+ s.add_runtime_dependency(%q<bundler>.freeze, [">= 0"])
37
38
  else
38
- s.add_dependency(%q<gem-grep>, [">= 0.6.2"])
39
+ s.add_dependency(%q<gem-grep>.freeze, [">= 0.6.2"])
40
+ s.add_dependency(%q<bundler>.freeze, [">= 0"])
39
41
  end
40
42
  else
41
- s.add_dependency(%q<gem-grep>, [">= 0.6.2"])
43
+ s.add_dependency(%q<gem-grep>.freeze, [">= 0.6.2"])
44
+ s.add_dependency(%q<bundler>.freeze, [">= 0"])
42
45
  end
43
46
  end
@@ -12,8 +12,17 @@ class Gem::Commands::BgrepCommand < Gem::Command
12
12
  require 'rubygems/commands/grep_command'
13
13
  require 'rubygems/commands/path_command'
14
14
  require 'bundler/setup'
15
+
16
+ if Bundler::SharedHelpers.in_bundle?
17
+ grep_gems
18
+ else
19
+ say("No Gemfile detected.")
20
+ end
21
+ end
22
+
23
+ def grep_gems
15
24
  cmd = Gem::Commands::GrepCommand.new
16
- Bundler.locked_gems.specs.each do |spec|
25
+ Bundler.load.requested_specs.each do |spec|
17
26
  system(*cmd.grep_command([spec.name, spec.version],
18
27
  options[:args] + options[:build_args]))
19
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-bgrep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
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: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2016-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem-grep
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.6.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description: |-
28
42
  Can't find some codes from your app? gem-bgrep let you grep from your Gemfile.
29
43
 
@@ -68,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
82
  version: '0'
69
83
  requirements: []
70
84
  rubyforge_project:
71
- rubygems_version: 2.2.2
85
+ rubygems_version: 2.6.4
72
86
  signing_key:
73
87
  specification_version: 4
74
88
  summary: Can't find some codes from your app? gem-bgrep let you grep from your Gemfile.