picky 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ desc 'Checks if index files are small/missing (index, category optional).'
4
4
  task :check, [:index, :category] => :application do |_, options|
5
5
  index, category = options.index, options.category
6
6
 
7
- specific = Indexes
7
+ specific = Picky::Indexes
8
8
  specific = specific[index] if index
9
9
  specific = specific[category] if category
10
10
  specific.check
@@ -4,11 +4,11 @@ desc "Analyzes indexes (index, category optional)."
4
4
  task :analyze, [:index, :category] => :'stats:prepare' do |_, options|
5
5
  index, category = options.index, options.category
6
6
 
7
- specific = Indexes
7
+ specific = Picky::Indexes
8
8
  specific = specific[index] if index
9
9
  specific = specific[category] if category
10
10
 
11
- statistics = Statistics.new
11
+ statistics = Picky::Statistics.new
12
12
 
13
13
  begin
14
14
  statistics.analyze specific
@@ -21,7 +21,7 @@ task :analyze, [:index, :category] => :'stats:prepare' do |_, options|
21
21
  end
22
22
 
23
23
  task :stats => :'stats:prepare' do
24
- stats = Statistics.new
24
+ stats = Picky::Statistics.new
25
25
  puts stats.application
26
26
  end
27
27
 
data/lib/tasks/try.rake CHANGED
@@ -7,13 +7,13 @@ task :try, [:text, :index, :category] => :application do |_, options|
7
7
  puts
8
8
  fail "\x1b[31mrake try needs a text to try indexing and query preparation\x1b[m, e.g. rake 'try[yourtext]'." unless text
9
9
 
10
- specific = Indexes
10
+ specific = Picky::Indexes
11
11
  specific = specific[index] if index
12
12
  specific = specific[category] if category
13
13
 
14
14
  puts "\"#{text}\" is saved in the #{specific.identifier} index as #{specific.tokenizer.tokenize(text.dup).to_a}"
15
15
 
16
- puts "\"#{text}\" as a search will be tokenized into #{Tokenizers::Query.default.tokenize(text.dup).to_a.map(&:to_s).map(&:to_sym)}"
16
+ puts "\"#{text}\" as a search will be tokenized into #{Picky::Tokenizers::Query.default.tokenize(text.dup).to_a.map(&:to_s).map(&:to_sym)}"
17
17
  puts
18
18
  puts "(category qualifiers, e.g. title: are removed if they do not exist as a qualifier, so 'toitle:bla' -> 'bla')"
19
19
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: picky
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 3.0.0
5
+ version: 3.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Florian Hanke
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-16 00:00:00 +10:00
13
+ date: 2011-08-17 00:00:00 +10:00
14
14
  default_executable: picky
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -32,7 +32,7 @@ dependencies:
32
32
  requirements:
33
33
  - - "="
34
34
  - !ruby/object:Gem::Version
35
- version: 3.0.0
35
+ version: 3.0.1
36
36
  type: :development
37
37
  version_requirements: *id002
38
38
  description: Fast Ruby semantic text search engine with comfortable single field interface.