diff --git a/Rakefile b/Rakefile index ea80bd9..81e43e3 100644 --- a/Rakefile +++ b/Rakefile @@ -12,7 +12,7 @@ begin :email => %q{jens.wille@gmail.com}, :license => %q{AGPL-3.0}, :homepage => :blackwinter, - :dependencies => %w[unicode] << ['ruby-nuggets', '>= 0.9.4'] + :dependencies => %w[lsi4r unicode] } }} rescue LoadError => err diff --git a/lib/pms/index.rb b/lib/pms/index.rb index abd4917..3488617 100644 --- a/lib/pms/index.rb +++ b/lib/pms/index.rb @@ -85,7 +85,7 @@ def doc(doc_num) def build_index(options) if lsi = options[:lsi] - require 'nuggets/lsi' + require 'lsi4r' lsi = DEFAULT_LSI if lsi == true map = Hash.new { |h, k| h[k] = [] } @@ -104,7 +104,7 @@ def build_index(options) } } - Nuggets::LSI.each_norm(map, :min => lsi, :new => true) { |d, k, _| + Lsi4R.each_norm(map, :min => lsi, :new => true) { |d, k, _| index[mangle_token(k)][d.key] << nil } if lsi diff --git a/spec/pms_spec.rb b/spec/pms_spec.rb index b130cb2..5dccc55 100644 --- a/spec/pms_spec.rb +++ b/spec/pms_spec.rb @@ -117,7 +117,7 @@ it 'should find more ducks' do @pms1.search('ducks').results.should == [1] - @pms2.search('ducks').results.should == [1, 4, 5] + @pms2.search('ducks').results.should == [1, 4, 6] end it 'should not report positions for LSI terms' do