emb-server 0.1.0.pre.fix → 0.1.0.pre.install.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e8b49fab5352d378d40d3d0f5ea6f4395bb5332905959d5caf39439ece73a79
4
- data.tar.gz: 34db85daadfa88e14a62d45b810515b1d55b9f6fe2aa005c6f27a07cee8f8456
3
+ metadata.gz: '0250964df332d74add7d8b32db7816a42b75df9975e0aded5aaaaf1f457c60bf'
4
+ data.tar.gz: 7fa5ae893dfe1778610bb6c1ab13b139f70231e89eea5b1afcb47b480cdf5252
5
5
  SHA512:
6
- metadata.gz: 3d86e7deb30a59279f161dd9191e226f30fad18e4e2204534f3dc2c9cdb6cad498e6b8c5b9e448bbd329e738063dc80fe1430be6980f8d3af48ff83b73633f69
7
- data.tar.gz: 4febe755a69bf5eefd062cb5df6f2db4fc68ea2483527a8dab6785055fca78095da21da0a27fe29d140fcd462cb8cd18db4111656dbfac2e16053baf0de0a603
6
+ metadata.gz: 5a63ab57f80e206822355c14ad25028b113c7087af1dbd99dff6e591641288342bb89faa050f6fd1dc6adc3ad3db5c7aa6f1108765f813f13ec17d84c98cf969
7
+ data.tar.gz: d135d4329feb5277e7cdef9593ed58301344bb685249d655f242843cb6d98b4b1b5b514d3b19873194a677d1b470032a34c81746d70676f4b4d3f2c7888c3bdd
data/bin/emb CHANGED
@@ -19,13 +19,7 @@ unless File.exist?(binary)
19
19
  exit 1
20
20
  end
21
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
22
+ require "onnxruntime"
23
+ ort_lib = OnnxRuntime.ffi_lib.first
30
24
 
31
25
  exec binary, "-ort-lib", ort_lib, *ARGV
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EmbServer
4
- VERSION = File.read(File.expand_path("../../../VERSION", __dir__)).strip
4
+ VERSION = Gem.loaded_specs['emb-server'].version.to_s
5
5
  end
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.1.0.pre.fix
4
+ version: 0.1.0.pre.install.pre.fix
5
5
  platform: ruby
6
6
  authors:
7
7
  - elcuervo