ihelp 0.4.0 → 0.4.1

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 +7 -3
  2. metadata +7 -5
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.0"
113
+ HELP_VERSION = "0.4.1"
114
114
  end
115
115
 
116
116
 
@@ -608,6 +608,8 @@ module IHelp
608
608
  @index_path = LOCAL_INDEX_PATH
609
609
  if not File.exist?(@index_path) and File.exist?(GLOBAL_INDEX_PATH)
610
610
  FileUtils.cp_r(GLOBAL_INDEX_PATH, @index_path) rescue nil
611
+ elsif not File.exist?(@index_path)
612
+ self.class.reindex_when_needed = true
611
613
  end
612
614
  end
613
615
  analyzer = IHelpAnalyzer.new
@@ -641,10 +643,12 @@ module IHelp
641
643
  :analyzer => analyzer
642
644
  )
643
645
  end
644
- reindex! if self.class.reindex_when_needed and need_reindexing?
646
+ if self.class.reindex_when_needed and need_reindexing?
647
+ reindex!
648
+ end
645
649
  unless have_index
646
650
  @index.persist(@index_path)
647
- log "Saved index.", 2
651
+ log "\nSaved index.", 2
648
652
  end
649
653
  end
650
654
 
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
2
+ 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.0
7
- date: 2006-11-16 00:00:00 +02:00
6
+ version: 0.4.1
7
+ date: 2006-11-17 00:00:00 +02:00
8
8
  summary: Interactive help
9
9
  require_paths:
10
10
  - lib
@@ -25,10 +25,12 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
25
25
  platform: ruby
26
26
  signing_key:
27
27
  cert_chain:
28
+ post_install_message:
28
29
  authors:
29
30
  - Ilmari Heikkinen
30
31
  files:
31
32
  - lib/ihelp.rb
33
+ - lib/ihelp_reindex.rb
32
34
  test_files: []
33
35
 
34
36
  rdoc_options: []
@@ -37,8 +39,8 @@ extra_rdoc_files: []
37
39
 
38
40
  executables: []
39
41
 
40
- extensions:
41
- - lib/ihelp_reindex.rb
42
+ extensions: []
43
+
42
44
  requirements: []
43
45
 
44
46
  dependencies: