openfeature-flagd-provider 0.1.2 → 0.1.3

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: eeee29f4b0359783d3357d22eb5beacebd0b240ece60e943fe542046b922d407
4
- data.tar.gz: 110a2261297fd797a72a793171536c495ff6fa3f3fd563d29fd1947887805f73
3
+ metadata.gz: f3818e16ad54fb7f0f168217349f823f84fb26a2b8392984766e178f2da422d9
4
+ data.tar.gz: 63325181c71479777aecd65d9d82e11c4dd060eb7d3b46649fe14e7480754c84
5
5
  SHA512:
6
- metadata.gz: 7efbaad31b307a0e95e2689fd4d011766d7ec0fa6b01424867678207c89391a0e479005b67dcd666c53ffcaf0aa4f2c7e4d053930dedf03694dc994062639de3
7
- data.tar.gz: db579d8d646d4f0844f4fc1e60e9e1d466852a6e1acdec6c14b95c182a5d973c21779bc7a97a1d80445be198d5bb43e36445edc3f890ddc3d6f61cad13c832c4
6
+ metadata.gz: 2154f07ad06cc67d0067350d5a0011e421bcad489d02bbf9efb829e8682c8c163dce3e9b461b9d8f82e8caa5a762f79a18a113b8781a34d09138be0530a8bfb2
7
+ data.tar.gz: a18dc531cfd02c5c7cca268be3e9d375749535bb326d36060baa8dcaab4296b478f0f4c3be1b0056bf6d9169120e89dba2c0b462021816afed3209a4642e8b0f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.3](https://github.com/open-feature/ruby-sdk-contrib/compare/openfeature-flagd-provider/v0.1.2...openfeature-flagd-provider/v0.1.3) (2026-03-07)
4
+
5
+
6
+ ### ✨ New Features
7
+
8
+ * **flagd:** support kwargs configuration and add lazy root_cert reader ([#78](https://github.com/open-feature/ruby-sdk-contrib/issues/78)) ([981f6fc](https://github.com/open-feature/ruby-sdk-contrib/commit/981f6fc95160cda80df87e062f5bfbbb73e770b5))
9
+
3
10
  ## [0.1.2](https://github.com/open-feature/ruby-sdk-contrib/compare/openfeature-flagd-provider/v0.1.1...openfeature-flagd-provider/v0.1.2) (2024-08-29)
4
11
 
5
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openfeature-flagd-provider (0.1.2)
4
+ openfeature-flagd-provider (0.1.3)
5
5
  grpc (~> 1.50)
6
6
  openfeature-sdk (~> 0.3.1)
7
7
 
@@ -117,7 +117,7 @@ module OpenFeature
117
117
  options = :this_channel_is_insecure
118
118
  if configuration.tls
119
119
  options = GRPC::Core::ChannelCredentials.new(
120
- configuration.root_cert_path
120
+ configuration.root_cert
121
121
  )
122
122
  end
123
123
 
@@ -31,6 +31,10 @@ module OpenFeature
31
31
  end
32
32
  end
33
33
 
34
+ def root_cert
35
+ @root_cert ||= root_cert_path && File.read(root_cert_path)
36
+ end
37
+
34
38
  def merge(other_configuration)
35
39
  return self if other_configuration.nil?
36
40
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OpenFeature
4
4
  module Flagd
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
@@ -62,10 +62,11 @@ module OpenFeature
62
62
  .merge(explicit_configuration)
63
63
  end
64
64
 
65
- def configure(&block)
66
- return unless block
67
-
68
- block.call(explicit_configuration)
65
+ def configure(**kwargs, &block)
66
+ kwargs.each { |key, value| explicit_configuration[key] = value }
67
+ block&.call(explicit_configuration)
68
+ @configuration = nil
69
+ @client = nil
69
70
  end
70
71
 
71
72
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openfeature-flagd-provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenFeature Authors
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-30 00:00:00.000000000 Z
11
+ date: 2026-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -132,7 +132,7 @@ metadata:
132
132
  changelog_uri: https://github.com/open-feature/ruby-sdk-contrib/blob/main/providers/openfeature-flagd-provider/CHANGELOG.md
133
133
  bug_tracker_uri: https://github.com/open-feature/ruby-sdk-contrib/issues
134
134
  documentation_uri: https://github.com/open-feature/ruby-sdk-contrib/tree/main/providers/openfeature-flagd-provider/README.md
135
- post_install_message:
135
+ post_install_message:
136
136
  rdoc_options: []
137
137
  require_paths:
138
138
  - lib
@@ -147,8 +147,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
- rubygems_version: 3.5.11
151
- signing_key:
150
+ rubygems_version: 3.5.22
151
+ signing_key:
152
152
  specification_version: 4
153
153
  summary: The flagd provider for the OpenFeature Ruby SDK
154
154
  test_files: []