eppo-server-sdk 3.2.8-arm-linux → 3.3.0-arm-linux

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: f40b6c8f410d972e3f32c3b39d8435403d0b150c76be51fae2932cc82deb23ce
4
- data.tar.gz: ab41d09578394954fb4a319f1c9bc9a429652b13a95d7760fdff2df09b442e61
3
+ metadata.gz: a4746198a7058f267fe883a64ccd20acc7c48968238ab3db8d208ed194d8c15e
4
+ data.tar.gz: bbbe8bd8c4bec6eb037b0375becd6c365dd276570ebee1e593850047b104f4c9
5
5
  SHA512:
6
- metadata.gz: 9448ea89f5c0bc893562c338e673e8d48e721901971fab8f4c8c2a82ec305196f45b72ee13693231c65c832acc6052215a2620c64bfbbe203664b1de723c70e5
7
- data.tar.gz: c7105fdb79b27a7d1f3ebe4edf9ce59da293dceb230cfa983ea14bee3d717d1a4ca43cb48fe04abbb39cf3d42728bcd0c2f905a7a7056fcdc816b7c9ca7b67bb
6
+ metadata.gz: 65de61362f6e440284dbc5470ee100fa24e95fb62a752ac920ad975e7588d84f099c49e384dc6f11a356a2c6ddc0fbb3fc719c282f45be40d1ca80d76690d49c
7
+ data.tar.gz: b18b073bd50de74d27be8d4e14244c939b74622d557590bf591dc8140fe5a1ecbc94b9ff3690f9a5a8933b9ee1bc6e19ed2ccd65484d5f799ebf0b39de96c831
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: arm-linux
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: