numaflow_ruby 0.1.17-x86_64-linux-musl → 0.1.19-x86_64-linux-musl
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/lib/numaflow_ruby/version.rb +1 -1
- data/lib/numaflow_ruby.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 723b87d3e70dbe2e7bd6845080578750d949924c2bdc23783165aeb247633cdb
|
4
|
+
data.tar.gz: 34d01d74d35ae87a37ff39db8f417dfae0a0ef7843ee30fb45b8e8325c7168d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09a40efeba0bccb7d327d1246e9984f32687f4c5586b37159e84882a0715e6b5be06e9b5c86e670ac02b33e2bbbbbe9a958843ff7b1d995e42e16bb6f1886766'
|
7
|
+
data.tar.gz: 1d05ed6c5501c6818634825162c1a00718ab2fa6de4f046b4935bfa8aff100061be022e9f482979773aeda4c644681bfff076616db2e4e7f7d2dddde2257a25a
|
data/lib/numaflow_ruby.rb
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "numaflow_ruby/version"
|
4
|
-
|
5
|
-
|
4
|
+
MINOR_RUBY_VERSION = RUBY_VERSION.split(".").first(2).join(".")
|
5
|
+
versioned_path = File.join(__dir__, "numaflow_ruby", MINOR_RUBY_VERSION, "numaflow_ruby")
|
6
|
+
begin
|
7
|
+
require versioned_path
|
8
|
+
rescue LoadError
|
9
|
+
require_relative "numaflow_ruby/numaflow_ruby"
|
10
|
+
end
|
6
11
|
# NumaflowRuby is a Ruby wrapper for Numaflow rust library, allowing you to create map servers in Ruby.
|
7
12
|
module NumaflowRuby
|
8
13
|
class Error < StandardError; end
|