flipt_client 0.13.0 → 0.14.0

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: b2e98029e4995b21b27c93e7d8c3083b29a2cfe4f1102b8286a8210066887498
4
- data.tar.gz: 3c9b1960602c1295b76689fbe84c490dc2b71ba0a205dac8e8b8757fe0c7e801
3
+ metadata.gz: 3b557abfcc6b932d2df3477574c31e1e3531b723e40c8d4165c896223f0a4e29
4
+ data.tar.gz: c4b0100e653392c2b7cf2a2d0706562295e378f042192f71ec2cbe9fb81ca22b
5
5
  SHA512:
6
- metadata.gz: f3a69f54c01bb5d6bd99f14a11f3cb6718448c9ef2b4deb8a991d54c7ca7a3589975d874bc484de07fa407a4ca64a3a7f32278ae0ccd257b6d71f50bfedd5fe2
7
- data.tar.gz: eb4b8d64a0da38cf548008611cbe2f788658e57e2b4e8057989885de47220cc68ddb6a85747a437781e4e7748f5d2e8914c3f9d89a655f55a3ff72f2cac1a539
6
+ metadata.gz: e678e1267550f6d9a13a5b14b0b1182cb6bc7158f33c15c1eaee7428250ab5975e5f71e3d67d7fd2bdb5979887a959985efdf50009540a873b6126a4804e657a
7
+ data.tar.gz: a11c9c16338ba2184feb4e7a39cf7131f28779414b5c86f0b20da0dcbdc926b3afcd1f1ad5e4d66ca2f5cb36f8d9735a037e0732fd37d8da3b045fb710100345
data/README.md CHANGED
@@ -106,7 +106,7 @@ The `FliptEvaluationClient` supports the following authentication strategies:
106
106
  docker run -d \
107
107
  -p 8080:8080 \
108
108
  -p 9000:9000 \
109
- docker.flipt.io/flipt/flipt:latest
109
+ flipt/flipt:latest
110
110
  ```
111
111
 
112
112
  2. You'll also need to have the `flipt_client` gem installed locally. See [Installation](#installation) above.
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Flipt
4
- VERSION = "0.13.0"
4
+ VERSION = '0.14.0'
5
5
  end
data/lib/flipt_client.rb CHANGED
@@ -92,7 +92,7 @@ module Flipt
92
92
  resp, ptr = self.class.evaluate_variant(@engine, evaluation_request.to_json)
93
93
  ptr = FFI::AutoPointer.new(ptr, EvaluationClient.method(:destroy_string))
94
94
  data = JSON.parse(resp)
95
- raise StandardError, data['error_message'] if data['status'] != 'success'
95
+ raise Error, data['error_message'] if data['status'] != 'success'
96
96
 
97
97
  data['result']
98
98
  end
@@ -107,7 +107,7 @@ module Flipt
107
107
  resp, ptr = self.class.evaluate_boolean(@engine, evaluation_request.to_json)
108
108
  ptr = FFI::AutoPointer.new(ptr, EvaluationClient.method(:destroy_string))
109
109
  data = JSON.parse(resp)
110
- raise StandardError, data['error_message'] if data['status'] != 'success'
110
+ raise Error, data['error_message'] if data['status'] != 'success'
111
111
 
112
112
  data['result']
113
113
  end
@@ -125,7 +125,7 @@ module Flipt
125
125
  resp, ptr = self.class.evaluate_batch(@engine, batch_evaluation_request.to_json)
126
126
  ptr = FFI::AutoPointer.new(ptr, EvaluationClient.method(:destroy_string))
127
127
  data = JSON.parse(resp)
128
- raise StandardError, data['error_message'] if data['status'] != 'success'
128
+ raise Error, data['error_message'] if data['status'] != 'success'
129
129
 
130
130
  data['result']
131
131
  end
@@ -135,7 +135,7 @@ module Flipt
135
135
  resp, ptr = self.class.list_flags(@engine)
136
136
  ptr = FFI::AutoPointer.new(ptr, EvaluationClient.method(:destroy_string))
137
137
  data = JSON.parse(resp)
138
- raise StandardError, data['error_message'] if data['status'] != 'success'
138
+ raise Error, data['error_message'] if data['status'] != 'success'
139
139
 
140
140
  data['result']
141
141
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipt_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flipt Devs
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-12 00:00:00.000000000 Z
11
+ date: 2025-02-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Flipt Client Evaluation SDK
14
14
  email: