ihelp 0.4.3 → 0.4.4
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.
- data/lib/ihelp.rb +4 -8
- 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. | 
| 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 | 
| 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