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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/changes +4 -0
  3. data/ext/extconf.rb +7 -1
  4. data/lib/triez.rb +1 -1
  5. data/readme.md +9 -2
  6. metadata +12 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b3d21385a2a6b7b5aeda91e030da0f74ac7bf8f
4
- data.tar.gz: d80373108f656e2c5c4405045ccda728cb3df669
3
+ metadata.gz: f6f5c0aebcea5c8dece81693a83a6161863a2b46
4
+ data.tar.gz: dbabd5167aed60e72830c0ec9c26bb9125c7a03a
5
5
  SHA512:
6
- metadata.gz: 2b93f09cde0f1d1eaa2a005ff9205ab3f28617261e62a93bf95813eb8504a2325244482778dcbd8d6c189fa5de26c5e3052992d54708912fd4613e4f97fd48fb
7
- data.tar.gz: 65f19d791eddc2341ca74985cf319e152b523b0f35916066e339a6472114c8073442b6916698a3067c9aa00785ec403af2d504bf63d43b347862b3ca80ac7577
6
+ metadata.gz: decfb507c8bd5ab6d8134310b7c6ba5700e09901506bb9301f587715178d0aa8bb07a843b5ceec324618f3dbffbbb7a40b202b1f8da7db81ab6fd974d57c0e82
7
+ data.tar.gz: 885172c942a6788652bc46a00a153c8a903666b86e351723fe3b2279d9c6eb3d4ca8bee1def17159b4e0579bd81b5a1da583e1af7a03cafe8619be75c7fec2d8
data/changes CHANGED
@@ -1,3 +1,7 @@
1
+ 1.0.6
2
+ 2018-03-29
3
+ fix build error when `$(AR)` is set to `libtool -static`
4
+
1
5
  1.0.5
2
6
 
3
7
  2016-12-16
@@ -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
- f.puts "\tmkdir -p build && cd build && $(CC) -O3 -std=c99 -Wall -pedantic -fPIC -c -I.. ../hat-trie/*.c && $(AR) -r libtries.a *.o"
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
@@ -1,7 +1,7 @@
1
1
  require_relative "../ext/triez"
2
2
 
3
3
  class Triez
4
- VERSION = '1.0.5'
4
+ VERSION = '1.0.6'
5
5
 
6
6
  private :_internal_set_type
7
7
  private :_internal_search
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
- # the above code is equivalent to :int64 for :value_type and 0 for :default
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.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
- - Zete Lui
7
+ - luikore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-16 00:00:00.000000000 Z
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
- - readme.md
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.0.14.1
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