ihelp 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/ihelp.rb +4 -8
  2. metadata +2 -2
data/lib/ihelp.rb CHANGED
@@ -110,7 +110,7 @@ end
110
110
  # Author: Ilmari Heikkinen <kig misfiring net>
111
111
  #
112
112
  module IHelp
113
- HELP_VERSION = "0.4.3"
113
+ HELP_VERSION = "0.4.4"
114
114
  end
115
115
 
116
116
 
@@ -313,11 +313,6 @@ module IHelp
313
313
  IHelp.renderer ||= :ri
314
314
  IHelp.web_browser ||= 'firefox'
315
315
 
316
- IHelp::RI_ARGS = []
317
- if ENV["RI"]
318
- IHelp::RI_ARGS = ENV["RI"].split.concat(ARGV)
319
- end
320
-
321
316
  # Searches for str from available documentation and prints out the
322
317
  # results.
323
318
  #
@@ -359,7 +354,7 @@ module IHelp
359
354
  end
360
355
 
361
356
  def ri_driver
362
- @ri_driver ||= IHelpDriver.new(RI_ARGS)
357
+ @ri_driver ||= IHelpDriver.new
363
358
  end
364
359
 
365
360
  # Return RI::ClassDescription / RI::MethodDescription for klass
@@ -732,6 +727,7 @@ module IHelp
732
727
  amt_done = (i.to_f / names.size)
733
728
  pct = ("%.1f" % [100*amt_done]).rjust(5)
734
729
  STDERR.write "\r #{pct}% (#{i.to_s.rjust(nsz.size)}/#{nsz}) #{names.last}".ljust(80)[0,80]
730
+ STDERR.flush
735
731
  STDERR.puts
736
732
  end
737
733
  if start_size != @index.size
@@ -811,7 +807,7 @@ module IHelp
811
807
  display.formatter.draw_line
812
808
  puts
813
809
  end
814
- puts
810
+ puts "#{result.total_hits} hits"
815
811
  end
816
812
  p result.hits.map{|hit| @index[hit.doc][:full_name] }
817
813
  result
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: ihelp
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.3
7
- date: 2006-11-17 00:00:00 +02:00
6
+ version: 0.4.4
7
+ date: 2006-11-18 00:00:00 +02:00
8
8
  summary: Interactive help
9
9
  require_paths:
10
10
  - lib