indexer101 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67c8317bb311f9715b5bbef8c325b7e0e76cf44cc7d1d83c5543f1758b67f9b2
4
- data.tar.gz: 87c825fb9af605084589749fde1e8b07464c8e7d9cf7713f40e5e49351e4171e
3
+ metadata.gz: 29ae0bede3bc885adc10e0c0f43bc38dfb43777e268dc09f9638d58759220493
4
+ data.tar.gz: 5562a432fc730ffaf8eac5b698ab673e5225d5032b46e676241a599a93a98834
5
5
  SHA512:
6
- metadata.gz: 737e4933056905d48a68c0a42997ab19a465b37008cafde631370b5505c4adbe1f2a7fe10c3a763daba2e9d4505e44432d4118ea2acb5b7cf0399c8c886d36fc
7
- data.tar.gz: 13478e980d89771fa0014c8ad2b0a7d866ac3139f8fe39ef9f69d59e543b97d031d78567b6fc1a5507bffb450a785be39f8d5761712fb1493d06510a078ed8e2
6
+ metadata.gz: bebf0f9a41cb12c7828a52788b8bd2e33384036854e4d122a7bf1d44904c04654c725eab0ec994344bdfec7644be25cd8b1a20fee76e9757abc5875be8e84c61
7
+ data.tar.gz: 667d7d1349885fda86add5ddbcf7dd57427617afc55e7fb2c610a18db00029471abff388e7a04b227d4b08343d63df1eac85f4a5298f08073a9a7f07cfad2931
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -132,7 +132,7 @@ class Indexer101
132
132
  when '.xml'
133
133
  Dynarex.new location
134
134
  when '.json'
135
- DxLite.new location
135
+ DxLite.new location, debug: false
136
136
  end
137
137
  }
138
138
  end
@@ -140,7 +140,7 @@ class Indexer101
140
140
  ThreadsWait.all_waits(*threads)
141
141
 
142
142
  a = threads.map {|x| x[:v]}
143
-
143
+ puts '_a: ' + a.inspect if @debug
144
144
  t2 = Time.now - t
145
145
  puts ("dxindex documents loaded in " + ("%.2f" % t2).brown \
146
146
  + " seconds").info
@@ -167,7 +167,8 @@ class Indexer101
167
167
 
168
168
  when 1
169
169
 
170
- x.title.split(/[\s:"!\?\(\)£]+(?=[\w#_'-]+)/).each do |keyword|
170
+ # \u{A3} = £ <- represented as Unicode to avoid ASCII to UTF-8 error
171
+ x.title.split(/[\s:"!\?\(\)\u{A3}]+(?=[\w#_'-]+)/).each do |keyword|
171
172
  @indexer.index[keyword.downcase.to_sym] ||= []
172
173
  @indexer.index[keyword.downcase.to_sym] << id2
173
174
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indexer101
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -46,7 +46,7 @@ dependencies:
46
46
  version: '1.8'
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 1.8.21
49
+ version: 1.8.25
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
@@ -56,7 +56,7 @@ dependencies:
56
56
  version: '1.8'
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 1.8.21
59
+ version: 1.8.25
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: dxlite
62
62
  requirement: !ruby/object:Gem::Requirement
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubyforge_project:
107
- rubygems_version: 2.7.10
106
+ rubygems_version: 3.0.3
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: Experimental gem to search a list of words 1 character at a time. Intended
metadata.gz.sig CHANGED
Binary file