triez 1.0.3 → 1.0.4
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
- data/changes +5 -0
- data/ext/hat-trie/hat-trie.c +2 -0
- data/lib/triez.rb +1 -1
- data/test/triez_test.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c4c1f285ee9dcd875d44fe4378366cf77dadf9c
|
4
|
+
data.tar.gz: 8b0347fc7f1c72994a4d5b71c895703e1ebbf7ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d21b1590e2daf5d03bdd36b3c1115c2e6f4ab24d8cfe8dabd7ad36d961d9db162876fdd8f13184e5f79c12fad286197350e05d52e36d879b5dd033a1e3f04d47
|
7
|
+
data.tar.gz: fbca9f35f59697db205363023edc97b1a96d0b02824ec736cc84f224a4f9ec9b754f0e51fc217ad4038d7c9bb0e736c21adcfc66b4a9d958d1c756e98764cdba
|
data/changes
CHANGED
data/ext/hat-trie/hat-trie.c
CHANGED
data/lib/triez.rb
CHANGED
data/test/triez_test.rb
CHANGED
@@ -217,7 +217,9 @@ class TriezTest < Test::Unit::TestCase
|
|
217
217
|
def test_should_not_segfault_when_search_with_prefix
|
218
218
|
t = Triez.new
|
219
219
|
# bursts when 16384
|
220
|
-
16_385.times{ |i| t["a#{i}"] =
|
221
|
-
|
220
|
+
16_385.times{ |i| t["a#{i}"] = i }
|
221
|
+
expected_postfices = 16_385.times.map &:to_s
|
222
|
+
actual_postfices = t.search_with_prefix("a").map(&:first)
|
223
|
+
assert_equal expected_postfices.sort, actual_postfices.sort
|
222
224
|
end
|
223
225
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: triez
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zete Lui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: fast, efficient, unicode aware HAT trie with prefix / suffix support.
|
14
14
|
email:
|