eppo-server-sdk 3.2.8-aarch64-linux-musl → 3.3.0-aarch64-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac29b646a9fd7865a8ea9abf949f54448d5e9c3d820c125d24662264a78de6eb
4
- data.tar.gz: 8f1e2dfcbf03e6ad9e5eb3d174f7d3c180f6ea91d23da9a7111af63b17963cdf
3
+ metadata.gz: 4a55eacb78f31e7edbd997d6aee738e2dc953f6dd449503dd5aa2ecefa72c84c
4
+ data.tar.gz: ab4eb0cd94c518280abd75e92d6ee9ab307397a568d4f52637bcfc3afe6dbc69
5
5
  SHA512:
6
- metadata.gz: cf0ce26c748ce6d18730abd21cc07cf6760c85a580848a10a4d7a5125d29846790255ab73d441bdc2d3dc06a99b8f45c39c06f428e72b84ab6ae1c27bd94da72
7
- data.tar.gz: 529b2d9a66afb958476787a32d0d01804e3957a448f787b3da2655fc353f45fb232e70280515d776a3afd72b92d8333057c1e18527995c0fb10364d5b8a1cbf4
6
+ metadata.gz: c8aec28c7f74f5d64d3a5235909d27b2d8b10e8776fc4786957cc2c5f73564b28957fc0c6f66b1208045755e71f8019b5344fe934ec1fe0501798e53069b7968
7
+ data.tar.gz: 05dbd9b966c84a1f7b852217a27f0ca4f2df09f0219719ce6d4e02f5594a95fa329eb6d28154826514621a7d0f0d1df1e61065fc6b0bc603f63ab062653daf2b
data/README.md CHANGED
@@ -7,6 +7,23 @@ Refer to our [SDK documentation](https://docs.geteppo.com/feature-flags/sdks/rub
7
7
  ## Supported Ruby Versions
8
8
  This version of the SDK is compatible with Ruby 3.0.6 and above.
9
9
 
10
+ ## Logging
11
+
12
+ Ruby SDK uses [`env_logger`](https://docs.rs/env_logger/) for logging.
13
+
14
+ Starting from version 3.3.0, the log level can be configured via `EPPO_LOG` environment variable using one of the following values:
15
+ - `off`
16
+ - `error`
17
+ - `warn`
18
+ - `info` (default)
19
+ - `debug`
20
+ - `trace`
21
+
22
+ Alternatively, it can be configured using `log_level` parameter for `EppoClient::Config` constructor:
23
+ ```ruby
24
+ config = EppoClient::Config.new("sdk-key", log_level: "debug")
25
+ ```
26
+
10
27
  # Contributing
11
28
 
12
29
  ## Testing with local version of `eppo_core`
Binary file
Binary file
Binary file
Binary file
@@ -6,14 +6,15 @@ require_relative "assignment_logger"
6
6
  module EppoClient
7
7
  # The class for configuring the Eppo client singleton
8
8
  class Config
9
- attr_reader :api_key, :assignment_logger, :base_url, :poll_interval_seconds, :poll_jitter_seconds
9
+ attr_reader :api_key, :assignment_logger, :base_url, :poll_interval_seconds, :poll_jitter_seconds, :log_level
10
10
 
11
- def initialize(api_key, assignment_logger: AssignmentLogger.new, base_url: EppoClient::Core::DEFAULT_BASE_URL, poll_interval_seconds: EppoClient::Core::DEFAULT_POLL_INTERVAL_SECONDS, poll_jitter_seconds: EppoClient::Core::DEFAULT_POLL_JITTER_SECONDS, initial_configuration: nil)
11
+ def initialize(api_key, assignment_logger: AssignmentLogger.new, base_url: EppoClient::Core::DEFAULT_BASE_URL, poll_interval_seconds: EppoClient::Core::DEFAULT_POLL_INTERVAL_SECONDS, poll_jitter_seconds: EppoClient::Core::DEFAULT_POLL_JITTER_SECONDS, initial_configuration: nil, log_level: nil)
12
12
  @api_key = api_key
13
13
  @assignment_logger = assignment_logger
14
14
  @base_url = base_url
15
15
  @poll_interval_seconds = poll_interval_seconds
16
16
  @poll_jitter_seconds = poll_jitter_seconds
17
+ @log_level = log_level
17
18
  end
18
19
 
19
20
  def validate
@@ -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.8"
5
+ VERSION = "3.3.0"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eppo-server-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.8
4
+ version: 3.3.0
5
5
  platform: aarch64-linux-musl
6
6
  authors:
7
7
  - Eppo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-31 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: