emb-server 0.1.0.pre.fix
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 +7 -0
- data/bin/emb +31 -0
- 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 +5 -0
- metadata +64 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 8e8b49fab5352d378d40d3d0f5ea6f4395bb5332905959d5caf39439ece73a79
|
|
4
|
+
data.tar.gz: 34db85daadfa88e14a62d45b810515b1d55b9f6fe2aa005c6f27a07cee8f8456
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 3d86e7deb30a59279f161dd9191e226f30fad18e4e2204534f3dc2c9cdb6cad498e6b8c5b9e448bbd329e738063dc80fe1430be6980f8d3af48ff83b73633f69
|
|
7
|
+
data.tar.gz: 4febe755a69bf5eefd062cb5df6f2db4fc68ea2483527a8dab6785055fca78095da21da0a27fe29d140fcd462cb8cd18db4111656dbfac2e16053baf0de0a603
|
data/bin/emb
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
spec = Gem::Specification.find_by_name("emb-server")
|
|
5
|
+
|
|
6
|
+
binary_name = case RUBY_PLATFORM
|
|
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
|
+
$stderr.puts "ERROR: unsupported platform #{RUBY_PLATFORM}"
|
|
12
|
+
exit 1
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
binary = File.join(spec.gem_dir, "lib", "emb-server", binary_name)
|
|
16
|
+
|
|
17
|
+
unless File.exist?(binary)
|
|
18
|
+
$stderr.puts "ERROR: binary not found at #{binary}"
|
|
19
|
+
exit 1
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
onnx_spec = Gem::Specification.find_by_name("onnxruntime")
|
|
23
|
+
ort_lib = Dir.glob("#{onnx_spec.gem_dir}/lib/onnxruntime.{dylib,so,bundle}").first
|
|
24
|
+
|
|
25
|
+
unless ort_lib
|
|
26
|
+
$stderr.puts "ERROR: could not find onnxruntime shared library"
|
|
27
|
+
$stderr.puts "Checked: #{onnx_spec.gem_dir}/lib/onnxruntime.{dylib,so,bundle}"
|
|
28
|
+
exit 1
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
exec binary, "-ort-lib", ort_lib, *ARGV
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
metadata
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: emb-server
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0.pre.fix
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- elcuervo
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-07-01 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: onnxruntime
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0.9'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0.9'
|
|
27
|
+
description: Precompiled emb server binary.
|
|
28
|
+
email:
|
|
29
|
+
- elcuervo@elcuervo.net
|
|
30
|
+
executables:
|
|
31
|
+
- emb
|
|
32
|
+
extensions: []
|
|
33
|
+
extra_rdoc_files: []
|
|
34
|
+
files:
|
|
35
|
+
- bin/emb
|
|
36
|
+
- lib/emb-server/emb-binary-aarch64-linux
|
|
37
|
+
- lib/emb-server/emb-binary-arm64-darwin
|
|
38
|
+
- lib/emb-server/emb-binary-x86_64-linux
|
|
39
|
+
- lib/emb-server/version.rb
|
|
40
|
+
homepage: https://github.com/elcuervo/emb
|
|
41
|
+
licenses:
|
|
42
|
+
- MIT
|
|
43
|
+
metadata:
|
|
44
|
+
rubygems_mfa_required: 'true'
|
|
45
|
+
post_install_message:
|
|
46
|
+
rdoc_options: []
|
|
47
|
+
require_paths:
|
|
48
|
+
- lib
|
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '3.3'
|
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
- - ">="
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: '0'
|
|
59
|
+
requirements: []
|
|
60
|
+
rubygems_version: 3.5.22
|
|
61
|
+
signing_key:
|
|
62
|
+
specification_version: 4
|
|
63
|
+
summary: 'emb: Redis-compatible embedding server'
|
|
64
|
+
test_files: []
|