eppo-server-sdk 3.2.7-arm64-darwin → 3.3.0-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ca4717e9e0c2f7c0e6260d71fdc015e857f2bed7c63580effe094b88a709201
4
- data.tar.gz: 62cc406c07c9084d543131ea7a917102f30173dfb4ba938becefc322d90ee550
3
+ metadata.gz: ea1f2277501d9fd22c917040611e5da28196aad61eb9d012324592864d8d0ea5
4
+ data.tar.gz: 1a978ad135f94f9fabca4e4629e4d26a875e87f22baec41f8b7d813de9be9066
5
5
  SHA512:
6
- metadata.gz: cb7e90a331f72f90258cb317fcb35dd47ddb01134a74291cb47dd6953e934b2a57c256451fa5749d9e4d064ec20f112ca6428c83985a91644e7d852f63796048
7
- data.tar.gz: 381cffccff097a6866d9536ba4dd6025abd085dbf51700a745c6c0d5fdb0e891211aa14c422eeb1b2f94cceb23c8e04dc95b52c8701bcd22cc6c687cace51695
6
+ metadata.gz: fe23d0226d32e765faaa6aee4579609dd69967044db6130305da12665e98e06ca3711641c623c53a2fcc4338fbd6d0ddd83fbbc6afa6eb19cc906e1d60df67de
7
+ data.tar.gz: 2f6e963b79620201213d48e3c568543c6ba753dc57e914b5103363ed5f49df7608c4dff7c34ba4c15c2ce9ff54bbb3ed2eb12025ddae98feeaccf0acf46a03bf
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.7"
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.7
4
+ version: 3.3.0
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Eppo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-22 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: