eppo-server-sdk 3.2.4 → 3.2.7
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/Cargo.lock +1 -1
- data/README.md +3 -2
- data/ext/eppo_client/Cargo.toml +1 -1
- data/lib/eppo_client/client.rb +9 -2
- data/lib/eppo_client/version.rb +1 -1
- 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: f48dcc40b50e8596f7fb6147b09b125a225531cc60aa4a24eb030fc7f0b3b923
|
4
|
+
data.tar.gz: 10573c138f97a0a3a6b671ed7d2b81bf26fc14d6def24ea17996c8f72643ca65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c92598ecca5b759f40c6f4fe21719e5c822c6cb008e32bf346379bff8fd466a34b3d3f52c6693c188f10d0e740114157f7373a4c2dc34a77cd8893aea4d654f5
|
7
|
+
data.tar.gz: 3867af6fbc1ea86badaf4d094821ef401583f19c6aa531628c838026973c393504e7332c0055587dcac366ac32c253d312ddda6724cf48a427cbc2a224a482a4
|
data/Cargo.lock
CHANGED
data/README.md
CHANGED
@@ -23,5 +23,6 @@ Make sure you remove the override before updating `Cargo.lock`. Otherwise, the l
|
|
23
23
|
|
24
24
|
## Releasing
|
25
25
|
|
26
|
-
* Bump versions in `ruby-sdk/lib/eppo_client/version.rb` and `ruby-sdk/ext/eppo_client/Cargo.toml
|
27
|
-
* Run `cargo update --workspace --verbose` to update `Cargo.lock`
|
26
|
+
* Bump versions in `ruby-sdk/lib/eppo_client/version.rb` and `ruby-sdk/ext/eppo_client/Cargo.toml`
|
27
|
+
* Run `cargo update --workspace --verbose` to update `Cargo.lock`
|
28
|
+
* Run `bundle` to update `Gemfile.lock`
|
data/ext/eppo_client/Cargo.toml
CHANGED
data/lib/eppo_client/client.rb
CHANGED
@@ -4,7 +4,14 @@ require "singleton"
|
|
4
4
|
require "logger"
|
5
5
|
|
6
6
|
require_relative "config"
|
7
|
-
|
7
|
+
|
8
|
+
# Tries to require the extension for the current Ruby version first
|
9
|
+
begin
|
10
|
+
RUBY_VERSION =~ /(\d+\.\d+)/
|
11
|
+
require_relative "#{Regexp.last_match(1)}/eppo_client"
|
12
|
+
rescue LoadError
|
13
|
+
require_relative "eppo_client"
|
14
|
+
end
|
8
15
|
|
9
16
|
module EppoClient
|
10
17
|
# The main client singleton
|
@@ -15,7 +22,7 @@ module EppoClient
|
|
15
22
|
def init(config)
|
16
23
|
config.validate
|
17
24
|
|
18
|
-
if !@core.nil?
|
25
|
+
if !@core.nil?
|
19
26
|
STDERR.puts "Eppo Warning: multiple initialization of the client"
|
20
27
|
@core.shutdown
|
21
28
|
end
|
data/lib/eppo_client/version.rb
CHANGED