openfeature-flagd-provider 0.1.0 โ 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +2 -2
- data/lib/openfeature/flagd/provider/client.rb +2 -7
- data/lib/openfeature/flagd/provider/version.rb +1 -1
- data/openfeature-flagd-provider.gemspec +4 -4
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeee29f4b0359783d3357d22eb5beacebd0b240ece60e943fe542046b922d407
|
4
|
+
data.tar.gz: 110a2261297fd797a72a793171536c495ff6fa3f3fd563d29fd1947887805f73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7efbaad31b307a0e95e2689fd4d011766d7ec0fa6b01424867678207c89391a0e479005b67dcd666c53ffcaf0aa4f2c7e4d053930dedf03694dc994062639de3
|
7
|
+
data.tar.gz: db579d8d646d4f0844f4fc1e60e9e1d466852a6e1acdec6c14b95c182a5d973c21779bc7a97a1d80445be198d5bb43e36445edc3f890ddc3d6f61cad13c832c4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [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
|
+
|
5
|
+
|
6
|
+
### ๐ Bug Fixes
|
7
|
+
|
8
|
+
* Fractional evaluation ([#41](https://github.com/open-feature/ruby-sdk-contrib/issues/41)) ([5bb34f2](https://github.com/open-feature/ruby-sdk-contrib/commit/5bb34f2f1cd880e0bc77597594cb33a2dba092e6))
|
9
|
+
|
10
|
+
## [0.1.1](https://github.com/open-feature/ruby-sdk-contrib/compare/openfeature-flagd-provider/v0.1.0...openfeature-flagd-provider/v0.1.1) (2024-07-11)
|
11
|
+
|
12
|
+
|
13
|
+
### โจ New Features
|
14
|
+
|
15
|
+
* Use integer and float specific resolver methods ([#26](https://github.com/open-feature/ruby-sdk-contrib/issues/26)) ([6baa243](https://github.com/open-feature/ruby-sdk-contrib/commit/6baa243f7586d65796fdba9a567352c66d100fde))
|
16
|
+
|
17
|
+
|
18
|
+
### ๐งน Chore
|
19
|
+
|
20
|
+
* **flagd:** update spec metadata links ([#36](https://github.com/open-feature/ruby-sdk-contrib/issues/36)) ([400d625](https://github.com/open-feature/ruby-sdk-contrib/commit/400d6254c164b8c3623bf2b18c5bea66580b0b1a))
|
21
|
+
|
3
22
|
## [0.1.0](https://github.com/open-feature/ruby-sdk-contrib/compare/openfeature-flagd-provider-v0.0.1...openfeature-flagd-provider/v0.1.0) (2024-05-16)
|
4
23
|
|
5
24
|
|
data/Gemfile.lock
CHANGED
@@ -47,12 +47,7 @@ module OpenFeature
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def fetch_number_value(flag_key:, default_value:, evaluation_context: nil)
|
50
|
-
|
51
|
-
when Integer
|
52
|
-
fetch_integer_value(flag_key: flag_key, default_value: default_value, evaluation_context: evaluation_context)
|
53
|
-
when Float
|
54
|
-
fetch_float_value(flag_key: flag_key, default_value: default_value, evaluation_context: evaluation_context)
|
55
|
-
end
|
50
|
+
raise "fetch_number_value is not supported by flagd"
|
56
51
|
end
|
57
52
|
|
58
53
|
def fetch_integer_value(flag_key:, default_value:, evaluation_context: nil)
|
@@ -103,7 +98,7 @@ module OpenFeature
|
|
103
98
|
return nil unless evaluation_context
|
104
99
|
|
105
100
|
fields = evaluation_context.fields
|
106
|
-
fields["targetingKey"] = fields.delete(
|
101
|
+
fields["targetingKey"] = fields.delete("targeting_key")
|
107
102
|
Google::Protobuf::Struct.from_hash(fields)
|
108
103
|
end
|
109
104
|
|
@@ -10,15 +10,15 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = "The flagd provider for the OpenFeature Ruby SDK"
|
12
12
|
spec.description = "The flagd provider for the OpenFeature Ruby SDK"
|
13
|
-
spec.homepage = "https://github.com/open-feature/ruby-sdk-contrib/providers/openfeature-flagd-provider"
|
13
|
+
spec.homepage = "https://github.com/open-feature/ruby-sdk-contrib/tree/main/providers/openfeature-flagd-provider"
|
14
14
|
spec.license = "Apache-2.0"
|
15
15
|
spec.required_ruby_version = ">= 3.1"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
-
spec.metadata["source_code_uri"] = "https://github.com/open-feature/ruby-sdk-contrib/providers/openfeature-flagd-provider"
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/open-feature/ruby-sdk-contrib/tree/main/providers/openfeature-flagd-provider"
|
19
19
|
spec.metadata["changelog_uri"] = "https://github.com/open-feature/ruby-sdk-contrib/blob/main/providers/openfeature-flagd-provider/CHANGELOG.md"
|
20
20
|
spec.metadata["bug_tracker_uri"] = "https://github.com/open-feature/ruby-sdk-contrib/issues"
|
21
|
-
spec.metadata["documentation_uri"] = "https://github.com/open-feature/ruby-sdk-contrib/README.md"
|
21
|
+
spec.metadata["documentation_uri"] = "https://github.com/open-feature/ruby-sdk-contrib/tree/main/providers/openfeature-flagd-provider/README.md"
|
22
22
|
|
23
23
|
# Specify which files should be added to the gem when it is released.
|
24
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
32
|
spec.add_runtime_dependency "grpc", "~> 1.50"
|
33
|
-
spec.add_runtime_dependency "openfeature-sdk", "~> 0.3"
|
33
|
+
spec.add_runtime_dependency "openfeature-sdk", "~> 0.3.1"
|
34
34
|
|
35
35
|
spec.add_development_dependency "rake", "~> 13.0"
|
36
36
|
spec.add_development_dependency "rspec", "~> 3.12.0"
|
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.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenFeature Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.3.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.3.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,15 +123,15 @@ files:
|
|
123
123
|
- lib/openfeature/flagd/provider/flagd/sync/v1/sync_services_pb.rb
|
124
124
|
- lib/openfeature/flagd/provider/version.rb
|
125
125
|
- openfeature-flagd-provider.gemspec
|
126
|
-
homepage: https://github.com/open-feature/ruby-sdk-contrib/providers/openfeature-flagd-provider
|
126
|
+
homepage: https://github.com/open-feature/ruby-sdk-contrib/tree/main/providers/openfeature-flagd-provider
|
127
127
|
licenses:
|
128
128
|
- Apache-2.0
|
129
129
|
metadata:
|
130
|
-
homepage_uri: https://github.com/open-feature/ruby-sdk-contrib/providers/openfeature-flagd-provider
|
131
|
-
source_code_uri: https://github.com/open-feature/ruby-sdk-contrib/providers/openfeature-flagd-provider
|
130
|
+
homepage_uri: https://github.com/open-feature/ruby-sdk-contrib/tree/main/providers/openfeature-flagd-provider
|
131
|
+
source_code_uri: https://github.com/open-feature/ruby-sdk-contrib/tree/main/providers/openfeature-flagd-provider
|
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
|
-
documentation_uri: https://github.com/open-feature/ruby-sdk-contrib/README.md
|
134
|
+
documentation_uri: https://github.com/open-feature/ruby-sdk-contrib/tree/main/providers/openfeature-flagd-provider/README.md
|
135
135
|
post_install_message:
|
136
136
|
rdoc_options: []
|
137
137
|
require_paths:
|
@@ -147,7 +147,7 @@ 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.
|
150
|
+
rubygems_version: 3.5.11
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: The flagd provider for the OpenFeature Ruby SDK
|