emb-server 0.1.2 → 0.2.0
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/bin/emb +12 -12
- data/lib/emb-server/emb-binary-aarch64-linux +0 -0
- data/lib/emb-server/emb-binary-arm64-darwin +0 -0
- data/lib/emb-server/emb-binary-x86_64-linux +0 -0
- data/lib/emb-server/version.rb +1 -1
- data/lib/emb-server.rb +3 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b127901bff6aebc17d7bce82b7cdadf59c73a78a0ab53cca4523fc7ea31af67d
|
|
4
|
+
data.tar.gz: 789af048c971bb31ec5690f7b50c5c7c1365053e9c181764f5348b06174d5cf8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73e3f88ed2d9729d22edaa7e70305f279590d6c7b51690332760cbeeed6359f0d0e2ce25094916ee12d8e0963123728c9e526300bb4e96de419ed0a7f6b9cd13
|
|
7
|
+
data.tar.gz: 0f5bed7c91f6c2f27c0a7e26e3ac813f6d62e109476ba24e16316a46b75b85e2f8163559128dcaea69a03f400d69124fde9d1fb6f45d6dd4c518a99a959e42d0
|
data/bin/emb
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
spec = Gem::Specification.find_by_name(
|
|
4
|
+
spec = Gem::Specification.find_by_name('emb-server')
|
|
5
5
|
|
|
6
6
|
binary_name = case RUBY_PLATFORM
|
|
7
|
-
when /arm64.*darwin/ then
|
|
8
|
-
when /x86_64.*linux/ then
|
|
9
|
-
when /aarch64.*linux/ then
|
|
10
|
-
else
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
end
|
|
7
|
+
when /arm64.*darwin/ then 'emb-binary-arm64-darwin'
|
|
8
|
+
when /x86_64.*linux/ then 'emb-binary-x86_64-linux'
|
|
9
|
+
when /aarch64.*linux/ then 'emb-binary-aarch64-linux'
|
|
10
|
+
else
|
|
11
|
+
warn "ERROR: unsupported platform #{RUBY_PLATFORM}"
|
|
12
|
+
exit 1
|
|
13
|
+
end
|
|
14
14
|
|
|
15
|
-
binary = File.join(spec.gem_dir,
|
|
15
|
+
binary = File.join(spec.gem_dir, 'lib', 'emb-server', binary_name)
|
|
16
16
|
|
|
17
17
|
unless File.exist?(binary)
|
|
18
|
-
|
|
18
|
+
warn "ERROR: binary not found at #{binary}"
|
|
19
19
|
exit 1
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
require
|
|
22
|
+
require 'onnxruntime'
|
|
23
23
|
ort_lib = OnnxRuntime.ffi_lib.first
|
|
24
24
|
|
|
25
|
-
exec binary,
|
|
25
|
+
exec binary, '-ort-lib', ort_lib, *ARGV
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/emb-server/version.rb
CHANGED
data/lib/emb-server.rb
ADDED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: emb-server
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- elcuervo
|
|
@@ -34,6 +34,7 @@ extra_rdoc_files: []
|
|
|
34
34
|
files:
|
|
35
35
|
- README.md
|
|
36
36
|
- bin/emb
|
|
37
|
+
- lib/emb-server.rb
|
|
37
38
|
- lib/emb-server/emb-binary-aarch64-linux
|
|
38
39
|
- lib/emb-server/emb-binary-arm64-darwin
|
|
39
40
|
- lib/emb-server/emb-binary-x86_64-linux
|