wit 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b224113043d484906a84261fd22cca9abac165b1
|
4
|
+
data.tar.gz: 8c697b188ff6fcca0c9f62371238a6ca4b0e5ab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd77147261f79371e9258587f41e552d7064915222aee67cab07a740ac77e1779e5af0e3e816d9f53df2d1a3933fc1b2ec3e3019cbc4a3f5a5d765992c1af8c4
|
7
|
+
data.tar.gz: ef6bc521dd4125843229557c791252378e16be510efd1d7b194bf81f21d0770d663016c7a67cbd41b38219514a20683c3feed0abf2671eeb056171ad0e52b53b
|
data/ext/wit/extconf.rb
CHANGED
@@ -13,22 +13,25 @@ LIB_DIRS = [
|
|
13
13
|
LIBDIR
|
14
14
|
]
|
15
15
|
|
16
|
-
if RUBY_PLATFORM.include?
|
17
|
-
|
18
|
-
elsif RUBY_PLATFORM.include?
|
19
|
-
if RUBY_PLATFORM.include?
|
20
|
-
|
16
|
+
if RUBY_PLATFORM.include? "arm"
|
17
|
+
LIBWIT_FILE = "libwit-armv6.a"
|
18
|
+
elsif RUBY_PLATFORM.include? "64"
|
19
|
+
if RUBY_PLATFORM.include? "darwin"
|
20
|
+
LIBWIT_FILE = "libwit-64-darwin.a"
|
21
21
|
else
|
22
|
-
|
22
|
+
LIBWIT_FILE = "libwit-64-linux.a"
|
23
23
|
end
|
24
24
|
else
|
25
|
-
|
25
|
+
LIBWIT_FILE = "libwit-32-linux.a"
|
26
26
|
end
|
27
|
+
abort "unable to retrieve libwit" unless system('curl -o libwit.a https://raw.githubusercontent.com/wit-ai/libwit/master/releases/' + LIBWIT_FILE, :chdir=> PATH + '/libwit/lib')
|
27
28
|
|
28
29
|
$LOCAL_LIBS = '-lwit -lsox -lcurl'
|
29
30
|
|
30
31
|
dir_config 'wit', HEADER_DIRS, LIB_DIRS
|
31
32
|
|
33
|
+
abort "missing sox" unless have_library "sox"
|
34
|
+
abort "missing curl" unless have_library "curl"
|
32
35
|
abort "missing wit.h" unless have_header "wit.h"
|
33
36
|
abort "missing libwit" unless have_library "wit"
|
34
37
|
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wit
|
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
|
- Julien Odent
|
@@ -19,10 +19,7 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- ext/wit/extconf.rb
|
21
21
|
- ext/wit/libwit/include/wit.h
|
22
|
-
- ext/wit/libwit/lib/libwit
|
23
|
-
- ext/wit/libwit/lib/libwit-64-darwin.a
|
24
|
-
- ext/wit/libwit/lib/libwit-64-linux.a
|
25
|
-
- ext/wit/libwit/lib/libwit-armv6.a
|
22
|
+
- ext/wit/libwit/lib/libwit.a
|
26
23
|
- ext/wit/wit.c
|
27
24
|
homepage: http://wit.ai
|
28
25
|
licenses:
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|