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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f7df6c86f861e8529f9efd44cacf1090af56bcaa5cb3ca4b2a7b72728f2d4a2
4
- data.tar.gz: 28f7afdbd4a28fb358e9c74464bf8eafdb6e832e1855aadd15943e141acbef47
3
+ metadata.gz: f48dcc40b50e8596f7fb6147b09b125a225531cc60aa4a24eb030fc7f0b3b923
4
+ data.tar.gz: 10573c138f97a0a3a6b671ed7d2b81bf26fc14d6def24ea17996c8f72643ca65
5
5
  SHA512:
6
- metadata.gz: d04b5cec0385e8275becf66bd6e8b3afad02fe2da0af52d7f2cd4ec4a41d753e3ddb85acdd9076c2ddf1c3c16ac8b855759cf2689ed094730efb858b90bafac6
7
- data.tar.gz: e830c55fdca91ed98e6c4016ef7c9e0d48bc211f3984526c66128b2995be29edf3d70fbf11e92bdb9bbe6a5a5fe458c7f617bb8dedb9a982395203047b6fff65
6
+ metadata.gz: c92598ecca5b759f40c6f4fe21719e5c822c6cb008e32bf346379bff8fd466a34b3d3f52c6693c188f10d0e740114157f7373a4c2dc34a77cd8893aea4d654f5
7
+ data.tar.gz: 3867af6fbc1ea86badaf4d094821ef401583f19c6aa531628c838026973c393504e7332c0055587dcac366ac32c253d312ddda6724cf48a427cbc2a224a482a4
data/Cargo.lock CHANGED
@@ -304,7 +304,7 @@ dependencies = [
304
304
 
305
305
  [[package]]
306
306
  name = "eppo_client"
307
- version = "3.2.4"
307
+ version = "3.2.7"
308
308
  dependencies = [
309
309
  "env_logger",
310
310
  "eppo_core",
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` and `Gemfile.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`
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  name = "eppo_client"
3
3
  # TODO: this version and lib/eppo_client/version.rb should be in sync
4
- version = "3.2.4"
4
+ version = "3.2.7"
5
5
  edition = "2021"
6
6
  license = "MIT"
7
7
  publish = false
@@ -4,7 +4,14 @@ require "singleton"
4
4
  require "logger"
5
5
 
6
6
  require_relative "config"
7
- require_relative "eppo_client"
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? then
25
+ if !@core.nil?
19
26
  STDERR.puts "Eppo Warning: multiple initialization of the client"
20
27
  @core.shutdown
21
28
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # TODO: this version and ext/eppo_client/Cargo.toml should be in sync
4
4
  module EppoClient
5
- VERSION = "3.2.4"
5
+ VERSION = "3.2.7"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eppo-server-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.4
4
+ version: 3.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eppo