triez 1.0.5 → 1.0.6
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 +4 -0
- data/ext/extconf.rb +7 -1
- data/lib/triez.rb +1 -1
- data/readme.md +9 -2
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6f5c0aebcea5c8dece81693a83a6161863a2b46
|
4
|
+
data.tar.gz: dbabd5167aed60e72830c0ec9c26bb9125c7a03a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: decfb507c8bd5ab6d8134310b7c6ba5700e09901506bb9301f587715178d0aa8bb07a843b5ceec324618f3dbffbbb7a40b202b1f8da7db81ab6fd974d57c0e82
|
7
|
+
data.tar.gz: 885172c942a6788652bc46a00a153c8a903666b86e351723fe3b2279d9c6eb3d4ca8bee1def17159b4e0579bd81b5a1da583e1af7a03cafe8619be75c7fec2d8
|
data/changes
CHANGED
data/ext/extconf.rb
CHANGED
@@ -12,5 +12,11 @@ File.open 'Makefile', 'a' do |f|
|
|
12
12
|
f.puts "$(OBJS): #{headers}"
|
13
13
|
f.puts "$(DLLIB): build/libtries.a"
|
14
14
|
f.puts "build/libtries.a:"
|
15
|
-
|
15
|
+
ar_opt = \
|
16
|
+
if defined? CONFIG and CONFIG['AR'] =~ /libtool/
|
17
|
+
"-o" # libtool -static -o
|
18
|
+
else
|
19
|
+
"-r"
|
20
|
+
end
|
21
|
+
f.puts "\tmkdir -p build && cd build && $(CC) -O3 -std=c99 -Wall -pedantic -fPIC -c -I.. ../hat-trie/*.c && $(AR) #{ar_opt} libtries.a *.o"
|
16
22
|
end
|
data/lib/triez.rb
CHANGED
data/readme.md
CHANGED
@@ -26,10 +26,17 @@ gem ins triez
|
|
26
26
|
``` ruby
|
27
27
|
require 'triez'
|
28
28
|
|
29
|
-
# create triez
|
29
|
+
# create triez with (default value type) int64, and setting default value 0
|
30
30
|
t = Triez.new
|
31
31
|
|
32
|
-
#
|
32
|
+
# The default value is 0
|
33
|
+
t['foo'] #=> 0
|
34
|
+
|
35
|
+
# available options for value_type:
|
36
|
+
# - :int64 -- signed 64 bit integer
|
37
|
+
# - :object -- ruby object, but note that:
|
38
|
+
# if the object is beyond simple types like NilClass, TrueClass, Integer,
|
39
|
+
# it will take additional heap space
|
33
40
|
t = Triez.new value_type: :int64
|
34
41
|
|
35
42
|
# more flexible with object type [*see note below]
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- luikore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: fast, efficient, unicode aware HAT trie with prefix / suffix support.
|
14
14
|
email:
|
@@ -17,17 +17,13 @@ extensions:
|
|
17
17
|
- ext/extconf.rb
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- copying
|
21
20
|
- changes
|
22
|
-
-
|
23
|
-
- lib/triez.rb
|
24
|
-
- test/triez_test.rb
|
25
|
-
- ext/triez.cc
|
21
|
+
- copying
|
26
22
|
- ext/common.h
|
27
23
|
- ext/extconf.rb
|
24
|
+
- ext/hat-trie/COPYING
|
28
25
|
- ext/hat-trie/ahtable.c
|
29
26
|
- ext/hat-trie/ahtable.h
|
30
|
-
- ext/hat-trie/COPYING
|
31
27
|
- ext/hat-trie/hat-trie.c
|
32
28
|
- ext/hat-trie/hat-trie.h
|
33
29
|
- ext/hat-trie/misc.c
|
@@ -35,6 +31,10 @@ files:
|
|
35
31
|
- ext/hat-trie/murmurhash3.c
|
36
32
|
- ext/hat-trie/murmurhash3.h
|
37
33
|
- ext/hat-trie/pstdint.h
|
34
|
+
- ext/triez.cc
|
35
|
+
- lib/triez.rb
|
36
|
+
- readme.md
|
37
|
+
- test/triez_test.rb
|
38
38
|
homepage: https://github.com/luikore/triez
|
39
39
|
licenses: []
|
40
40
|
metadata: {}
|
@@ -44,17 +44,17 @@ require_paths:
|
|
44
44
|
- lib
|
45
45
|
required_ruby_version: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: 1.9.2
|
50
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
56
|
rubyforge_project:
|
57
|
-
rubygems_version: 2.
|
57
|
+
rubygems_version: 2.6.13
|
58
58
|
signing_key:
|
59
59
|
specification_version: 4
|
60
60
|
summary: fast, efficient, unicode aware HAT trie with prefix / suffix support
|