triez 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changes +5 -0
- data/ext/extconf.rb +5 -21
- data/lib/triez.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b3d21385a2a6b7b5aeda91e030da0f74ac7bf8f
|
4
|
+
data.tar.gz: d80373108f656e2c5c4405045ccda728cb3df669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b93f09cde0f1d1eaa2a005ff9205ab3f28617261e62a93bf95813eb8504a2325244482778dcbd8d6c189fa5de26c5e3052992d54708912fd4613e4f97fd48fb
|
7
|
+
data.tar.gz: 65f19d791eddc2341ca74985cf319e152b523b0f35916066e339a6472114c8073442b6916698a3067c9aa00785ec403af2d504bf63d43b347862b3ca80ac7577
|
data/changes
CHANGED
data/ext/extconf.rb
CHANGED
@@ -8,25 +8,9 @@ create_makefile 'triez'
|
|
8
8
|
# respect header changes
|
9
9
|
headers = Dir.glob('*.{hpp,h}').join ' '
|
10
10
|
File.open 'Makefile', 'a' do |f|
|
11
|
-
f.puts
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
puts xs.join(' ')
|
17
|
-
system *xs
|
18
|
-
end
|
19
|
-
|
20
|
-
require "fileutils"
|
21
|
-
include FileUtils
|
22
|
-
build_dir = File.dirname(__FILE__) + '/build'
|
23
|
-
mkdir_p build_dir
|
24
|
-
cd build_dir
|
25
|
-
unless File.exist?('libtries.a')
|
26
|
-
cc = ENV['CC'] || RbConfig::CONFIG['CC']
|
27
|
-
cc = [cc, '-O3', '-std=c99', '-Wall', '-pedantic', '-fPIC', '-c']
|
28
|
-
ar = RbConfig::CONFIG['AR']
|
29
|
-
ar = 'ar' unless File.exist?(ar)
|
30
|
-
sh *cc, '-I..', *Dir.glob("../hat-trie/*.c")
|
31
|
-
sh ar, '-r', 'libtries.a', *Dir.glob("*.o")
|
11
|
+
f.puts
|
12
|
+
f.puts "$(OBJS): #{headers}"
|
13
|
+
f.puts "$(DLLIB): build/libtries.a"
|
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"
|
32
16
|
end
|
data/lib/triez.rb
CHANGED
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zete Lui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-12-16 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,13 +17,17 @@ extensions:
|
|
17
17
|
- ext/extconf.rb
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- changes
|
21
20
|
- copying
|
21
|
+
- changes
|
22
|
+
- readme.md
|
23
|
+
- lib/triez.rb
|
24
|
+
- test/triez_test.rb
|
25
|
+
- ext/triez.cc
|
22
26
|
- ext/common.h
|
23
27
|
- ext/extconf.rb
|
24
|
-
- ext/hat-trie/COPYING
|
25
28
|
- ext/hat-trie/ahtable.c
|
26
29
|
- ext/hat-trie/ahtable.h
|
30
|
+
- ext/hat-trie/COPYING
|
27
31
|
- ext/hat-trie/hat-trie.c
|
28
32
|
- ext/hat-trie/hat-trie.h
|
29
33
|
- ext/hat-trie/misc.c
|
@@ -31,10 +35,6 @@ files:
|
|
31
35
|
- ext/hat-trie/murmurhash3.c
|
32
36
|
- ext/hat-trie/murmurhash3.h
|
33
37
|
- 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: {}
|
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
56
|
rubyforge_project:
|
57
|
-
rubygems_version: 2.
|
57
|
+
rubygems_version: 2.0.14.1
|
58
58
|
signing_key:
|
59
59
|
specification_version: 4
|
60
60
|
summary: fast, efficient, unicode aware HAT trie with prefix / suffix support
|