openfeature-ruby-sdk-contrib 0.2.0 → 0.3.0

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: a769e314a26cad2d838cd2038cc0bf7c419bb341b3a1d84c8f25af1c86f431a4
4
- data.tar.gz: f5fe644274b24df571e54d2128f39de106ca0e88a7e3c8d1ec354e2ead2fdbf2
3
+ metadata.gz: 2cf8cd0512f8cb54964eef7abc7152a8a1ff440b87ff180c3e5cf4d5672fe2be
4
+ data.tar.gz: f67486141dd2f5e0847b0884dd95d8aa3ec6e8176495164637f9fdca6c71fd99
5
5
  SHA512:
6
- metadata.gz: 4295a9914e8e7be4f79e65e1879964d5ffa4ccb560b71a094f6618df9731afc39a611a199f99efa69ab759bb24b6d3e6bcd16fc6aa2a3fecac2e22e71fcb0458
7
- data.tar.gz: 01e988330d77f7ec392c53ab253622141d4e698ed1662bc8dd70aa03085d15d35980367b96502afcf6a6d35042394735952567673a34d868b2d36c6971106638
6
+ metadata.gz: ff01303ffef255120f9eb98855e25eff6669b88153ec04c40e7700a8dc14b1bb620be992a509067ff0c80352c12706a0faa50e9d2af42bb6c5dff917c1690562
7
+ data.tar.gz: 297f07e8736d693bf7f68b22aa2236e6836c8b86cbaa36d81e86e045f91771b985bc0595e8622fbe0889b810ca9ffd2f6a6aaaa08b66232e5ccf30334889b741
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openfeature-ruby-sdk-contrib (0.1.2)
4
+ openfeature-ruby-sdk-contrib (0.2.1)
5
5
  concurrent-ruby (~> 1.2.2)
6
6
  faraday (~> 2.7.10)
7
7
  openfeature-sdk (~> 0.1)
@@ -22,7 +22,7 @@ GEM
22
22
  language_server-protocol (3.17.0.3)
23
23
  lint_roller (1.1.0)
24
24
  method_source (1.0.0)
25
- openfeature-sdk (0.1.0)
25
+ openfeature-sdk (0.1.1)
26
26
  parallel (1.23.0)
27
27
  parser (3.2.2.3)
28
28
  ast (~> 2.4.1)
@@ -14,6 +14,10 @@ module OpenFeature
14
14
  result = @provider.fetch_float_value(flag_key: flag_key, default_value: default_value, evaluation_context: evaluation_context)
15
15
  result.value
16
16
  end
17
+
18
+ def fetch_raw_flag(flag_key:)
19
+ @provider.fetch_raw_key(flag_key: flag_key)
20
+ end
17
21
  end
18
22
  end
19
23
  end
@@ -67,6 +67,10 @@ module OpenFeature
67
67
  @flag_contents = nil
68
68
  end
69
69
 
70
+ def fetch_raw_key(flag_key:)
71
+ read_all_values_with_cache.detect { |f| f["name"] == flag_key }
72
+ end
73
+
70
74
  # Returns a boolean value for the key specified
71
75
  #
72
76
  # @param flag_key [String] flag key to search for
@@ -3,7 +3,7 @@
3
3
  module OpenFeature
4
4
  module SDK
5
5
  module Contrib
6
- VERSION = "0.2.0"
6
+ VERSION = "0.3.0"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openfeature-ruby-sdk-contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Howe