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: d3b718c4374e1ec44e10e654263dce26f0b16659
4
- data.tar.gz: 4131df32324bb55c07fddd343edffba7ce580ff6
3
+ metadata.gz: b224113043d484906a84261fd22cca9abac165b1
4
+ data.tar.gz: 8c697b188ff6fcca0c9f62371238a6ca4b0e5ab8
5
5
  SHA512:
6
- metadata.gz: ca0903390cc881d7e73c3efaecc54a9bec87ded7e4e50de8fcb2b560312fcaaf1a4d2dd25de57a0187d88ed047d932b4934b1b6a3c798ed5c57e7f872fd29f38
7
- data.tar.gz: e65d81a2350b5bfc7b9f5a1183614e840614388feade282b6b2f803d58a86fc7002f54748d733f32413d08eb226c46df14fd9c0e8a53c32a43d32643b942a48b
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? 'arm'
17
- system('ln -s libwit-armv6.a libwit.a', :chdir=> PATH + '/libwit/lib')
18
- elsif RUBY_PLATFORM.include? '64'
19
- if RUBY_PLATFORM.include? 'darwin'
20
- system('ln -s libwit-64-darwin.a libwit.a', :chdir=> PATH + '/libwit/lib')
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
- system('ln -s libwit-64-linux.a libwit.a', :chdir=> PATH + '/libwit/lib')
22
+ LIBWIT_FILE = "libwit-64-linux.a"
23
23
  end
24
24
  else
25
- system('ln -s libwit-32-linux.a libwit.a', :chdir=> PATH + '/libwit/lib')
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
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-32-linux.a
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