indexer101 0.2.2 → 0.2.3
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/indexer101.rb +4 -3
- metadata +4 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29ae0bede3bc885adc10e0c0f43bc38dfb43777e268dc09f9638d58759220493
|
|
4
|
+
data.tar.gz: 5562a432fc730ffaf8eac5b698ab673e5225d5032b46e676241a599a93a98834
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bebf0f9a41cb12c7828a52788b8bd2e33384036854e4d122a7bf1d44904c04654c725eab0ec994344bdfec7644be25cd8b1a20fee76e9757abc5875be8e84c61
|
|
7
|
+
data.tar.gz: 667d7d1349885fda86add5ddbcf7dd57427617afc55e7fb2c610a18db00029471abff388e7a04b227d4b08343d63df1eac85f4a5298f08073a9a7f07cfad2931
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/indexer101.rb
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|