gem-ripper-tags 1.0.4 → 1.0.5

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.
@@ -22,14 +22,12 @@ class Gem::Commands::RipperTagsCommand < Gem::Command
22
22
  else
23
23
  Gem.source_index.gems.values
24
24
  end.each do |spec|
25
- self.class.index(spec,
26
- options[:reindex],
27
- (options[:emacs] || ENV['RIPPER_TAGS_EMACS'])) do |message|
25
+ self.class.index(spec, options[:reindex], options[:emacs]) do |message|
28
26
  say message
29
27
  end
30
28
  end
31
29
  rescue Exception => e
32
- if options[:debug]
30
+ if options[:debug] || ENV['RIPPER_TAGS_DEBUG']
33
31
  puts e.message
34
32
  puts e.backtrace.join("\n")
35
33
  end
@@ -9,6 +9,6 @@ unless old_ruby
9
9
  Gem::CommandManager.instance.register_command :ripper_tags
10
10
 
11
11
  Gem.post_install do |installer|
12
- Gem::Commands::RipperTagsCommand.index(installer.spec)
12
+ Gem::Commands::RipperTagsCommand.index(installer.spec, false, !ENV['RIPPER_TAGS_EMACS'].nil?)
13
13
  end
14
14
  end
data/test.sh CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/bin/bash
2
- rm gem-ripper-tags*.gem; gem build gem-ripper-tags.gemspec && gem uninstall gem-ripper-tags && gem install gem-ripper-tags-*.gem && gem ripper
2
+ rm gem-ripper-tags*.gem; gem build gem-ripper-tags.gemspec && gem uninstall gem-ripper-tags && gem install gem-ripper-tags-*.gem && gem ripper --debug
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-ripper-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: