launchdarkly-server-sdk 6.2.1 → 6.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/ldclient-rb/config.rb +3 -3
- data/lib/ldclient-rb/impl/diagnostic_events.rb +1 -1
- data/lib/ldclient-rb/integrations/dynamodb.rb +1 -1
- data/lib/ldclient-rb/integrations/redis.rb +1 -1
- data/lib/ldclient-rb/interfaces.rb +1 -1
- data/lib/ldclient-rb/ldclient.rb +5 -5
- data/lib/ldclient-rb/requestor.rb +1 -1
- data/lib/ldclient-rb/version.rb +1 -1
- metadata +24 -132
- data/.circleci/config.yml +0 -40
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -37
- data/.github/ISSUE_TEMPLATE/config.yml +0 -5
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- data/.github/pull_request_template.md +0 -21
- data/.gitignore +0 -16
- data/.hound.yml +0 -2
- data/.ldrelease/build-docs.sh +0 -18
- data/.ldrelease/circleci/linux/execute.sh +0 -18
- data/.ldrelease/circleci/mac/execute.sh +0 -18
- data/.ldrelease/circleci/template/build.sh +0 -29
- data/.ldrelease/circleci/template/publish.sh +0 -23
- data/.ldrelease/circleci/template/set-gem-home.sh +0 -7
- data/.ldrelease/circleci/template/test.sh +0 -10
- data/.ldrelease/circleci/template/update-version.sh +0 -8
- data/.ldrelease/circleci/windows/execute.ps1 +0 -19
- data/.ldrelease/config.yml +0 -29
- data/.rspec +0 -2
- data/.rubocop.yml +0 -600
- data/.simplecov +0 -4
- data/CHANGELOG.md +0 -359
- data/CODEOWNERS +0 -1
- data/CONTRIBUTING.md +0 -37
- data/Gemfile +0 -3
- data/azure-pipelines.yml +0 -51
- data/docs/Makefile +0 -26
- data/docs/index.md +0 -9
- data/launchdarkly-server-sdk.gemspec +0 -45
- data/spec/config_spec.rb +0 -63
- data/spec/diagnostic_events_spec.rb +0 -163
- data/spec/evaluation_detail_spec.rb +0 -135
- data/spec/event_sender_spec.rb +0 -197
- data/spec/event_summarizer_spec.rb +0 -63
- data/spec/events_spec.rb +0 -607
- data/spec/expiring_cache_spec.rb +0 -76
- data/spec/feature_store_spec_base.rb +0 -213
- data/spec/file_data_source_spec.rb +0 -283
- data/spec/fixtures/feature.json +0 -37
- data/spec/fixtures/feature1.json +0 -36
- data/spec/fixtures/user.json +0 -9
- data/spec/flags_state_spec.rb +0 -81
- data/spec/http_util.rb +0 -132
- data/spec/impl/evaluator_bucketing_spec.rb +0 -216
- data/spec/impl/evaluator_clause_spec.rb +0 -55
- data/spec/impl/evaluator_operators_spec.rb +0 -141
- data/spec/impl/evaluator_rule_spec.rb +0 -128
- data/spec/impl/evaluator_segment_spec.rb +0 -125
- data/spec/impl/evaluator_spec.rb +0 -349
- data/spec/impl/evaluator_spec_base.rb +0 -75
- data/spec/impl/event_factory_spec.rb +0 -108
- data/spec/impl/model/serialization_spec.rb +0 -41
- data/spec/in_memory_feature_store_spec.rb +0 -12
- data/spec/integrations/consul_feature_store_spec.rb +0 -40
- data/spec/integrations/dynamodb_feature_store_spec.rb +0 -103
- data/spec/integrations/store_wrapper_spec.rb +0 -276
- data/spec/launchdarkly-server-sdk_spec.rb +0 -13
- data/spec/launchdarkly-server-sdk_spec_autoloadtest.rb +0 -9
- data/spec/ldclient_end_to_end_spec.rb +0 -157
- data/spec/ldclient_spec.rb +0 -635
- data/spec/newrelic_spec.rb +0 -5
- data/spec/polling_spec.rb +0 -120
- data/spec/redis_feature_store_spec.rb +0 -121
- data/spec/requestor_spec.rb +0 -196
- data/spec/segment_store_spec_base.rb +0 -95
- data/spec/simple_lru_cache_spec.rb +0 -24
- data/spec/spec_helper.rb +0 -9
- data/spec/store_spec.rb +0 -10
- data/spec/stream_spec.rb +0 -45
- data/spec/user_filter_spec.rb +0 -91
- data/spec/util_spec.rb +0 -17
- data/spec/version_spec.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f1b216e5ae2518b79aae9613ecd04b02ed525ea2d25084df805eae7d92cb219
|
4
|
+
data.tar.gz: 317db7e14a292968b245e39e3cd4be33206fd8085c8ebd04be43f1c987434228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d9182ccde6530f67df30fd8a238e9b510e89dc235cf76c45140cb6eaa36b8e342a44a98595b8c86f171c8f6f1cc74291f3c2ebf11ac274f2a1e46d64798318c
|
7
|
+
data.tar.gz: 4b54fc711795c06e3bdabb9dd593af8499aa8e8c28eec1f9db508a5a6c5288cd0268b7ce9d324c892425ffcf080f0ad21e78060a74e0186f19998bd40f076943
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ LaunchDarkly Server-side SDK for Ruby
|
|
10
10
|
|
11
11
|
LaunchDarkly overview
|
12
12
|
-------------------------
|
13
|
-
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/
|
13
|
+
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!
|
14
14
|
|
15
15
|
[![Twitter Follow](https://img.shields.io/twitter/follow/launchdarkly.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/intent/follow?screen_name=launchdarkly)
|
16
16
|
|
@@ -22,7 +22,7 @@ This version of the LaunchDarkly SDK has a minimum Ruby version of 2.5.0, or 9.2
|
|
22
22
|
Getting started
|
23
23
|
-----------
|
24
24
|
|
25
|
-
Refer to the [SDK documentation](https://docs.launchdarkly.com/
|
25
|
+
Refer to the [SDK documentation](https://docs.launchdarkly.com/sdk/server-side/ruby#getting-started) for instructions on getting started with using the SDK.
|
26
26
|
|
27
27
|
Learn more
|
28
28
|
-----------
|
@@ -49,7 +49,7 @@ About LaunchDarkly
|
|
49
49
|
* Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
|
50
50
|
* Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
|
51
51
|
* Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
|
52
|
-
* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies.
|
52
|
+
* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.
|
53
53
|
* Explore LaunchDarkly
|
54
54
|
* [launchdarkly.com](https://www.launchdarkly.com/ "LaunchDarkly Main Website") for more information
|
55
55
|
* [docs.launchdarkly.com](https://docs.launchdarkly.com/ "LaunchDarkly Documentation") for our documentation and SDK reference guides
|
data/lib/ldclient-rb/config.rb
CHANGED
@@ -110,8 +110,8 @@ module LaunchDarkly
|
|
110
110
|
# Whether to use the LaunchDarkly relay proxy in daemon mode. In this mode, the client does not
|
111
111
|
# use polling or streaming to get feature flag updates from the server, but instead reads them
|
112
112
|
# from the {#feature_store feature store}, which is assumed to be a database that is populated by
|
113
|
-
# a LaunchDarkly relay proxy. For more information, see ["The relay proxy"](https://docs.launchdarkly.com/
|
114
|
-
# and ["Using a persistent
|
113
|
+
# a LaunchDarkly relay proxy. For more information, see ["The relay proxy"](https://docs.launchdarkly.com/home/relay-proxy)
|
114
|
+
# and ["Using a persistent data stores"](https://docs.launchdarkly.com/sdk/concepts/data-stores).
|
115
115
|
#
|
116
116
|
# All other properties related to streaming or polling are ignored if this option is set to true.
|
117
117
|
#
|
@@ -189,7 +189,7 @@ module LaunchDarkly
|
|
189
189
|
# from LaunchDarkly, and uses the last stored data when evaluating flags. Defaults to
|
190
190
|
# {InMemoryFeatureStore}; for other implementations, see {LaunchDarkly::Integrations}.
|
191
191
|
#
|
192
|
-
# For more information, see ["
|
192
|
+
# For more information, see ["Persistent data stores"](https://docs.launchdarkly.com/sdk/concepts/data-stores).
|
193
193
|
#
|
194
194
|
# @return [LaunchDarkly::Interfaces::FeatureStore]
|
195
195
|
#
|
@@ -79,7 +79,7 @@ module LaunchDarkly
|
|
79
79
|
streamingDisabled: !config.stream?,
|
80
80
|
userKeysCapacity: config.user_keys_capacity,
|
81
81
|
userKeysFlushIntervalMillis: self.seconds_to_millis(config.user_keys_flush_interval),
|
82
|
-
usingProxy: ENV.has_key?('http_proxy') || ENV.has_key?('https_proxy') || ENV.has_key?('HTTP_PROXY'),
|
82
|
+
usingProxy: ENV.has_key?('http_proxy') || ENV.has_key?('https_proxy') || ENV.has_key?('HTTP_PROXY') || ENV.has_key?('HTTPS_PROXY'),
|
83
83
|
usingRelayDaemon: config.use_ldd?,
|
84
84
|
}
|
85
85
|
ret
|
@@ -7,7 +7,7 @@ module LaunchDarkly
|
|
7
7
|
#
|
8
8
|
# Creates a DynamoDB-backed persistent feature store. For more details about how and why you can
|
9
9
|
# use a persistent feature store, see the
|
10
|
-
# [SDK reference guide](https://docs.launchdarkly.com/
|
10
|
+
# [SDK reference guide](https://docs.launchdarkly.com/sdk/features/storing-data#ruby).
|
11
11
|
#
|
12
12
|
# To use this method, you must first install one of the AWS SDK gems: either `aws-sdk-dynamodb`, or
|
13
13
|
# the full `aws-sdk`. Then, put the object returned by this method into the `feature_store` property
|
@@ -25,7 +25,7 @@ module LaunchDarkly
|
|
25
25
|
#
|
26
26
|
# Creates a Redis-backed persistent feature store. For more details about how and why you can
|
27
27
|
# use a persistent feature store, see the
|
28
|
-
# [SDK reference guide](https://docs.launchdarkly.com/
|
28
|
+
# [SDK reference guide](https://docs.launchdarkly.com/sdk/features/storing-data#rubys).
|
29
29
|
#
|
30
30
|
# To use this method, you must first have the `redis` and `connection-pool` gems installed. Then,
|
31
31
|
# put the object returned by this method into the `feature_store` property of your
|
@@ -9,7 +9,7 @@ module LaunchDarkly
|
|
9
9
|
# client uses the feature store to persist feature flags and related objects received from
|
10
10
|
# the LaunchDarkly service. Implementations must support concurrent access and updates.
|
11
11
|
# For more about how feature stores can be used, see:
|
12
|
-
# [Using a persistent feature store](https://docs.launchdarkly.com/
|
12
|
+
# [Using a persistent feature store](https://docs.launchdarkly.com/sdk/features/storing-data#ruby).
|
13
13
|
#
|
14
14
|
# An entity that can be stored in a feature store is a hash that can be converted to and from
|
15
15
|
# JSON, and that has at a minimum the following properties: `:key`, a string that is unique
|
data/lib/ldclient-rb/ldclient.rb
CHANGED
@@ -132,7 +132,7 @@ module LaunchDarkly
|
|
132
132
|
|
133
133
|
#
|
134
134
|
# Creates a hash string that can be used by the JavaScript SDK to identify a user.
|
135
|
-
# For more information, see [Secure mode](https://docs.launchdarkly.com/
|
135
|
+
# For more information, see [Secure mode](https://docs.launchdarkly.com/sdk/features/secure-mode#ruby).
|
136
136
|
#
|
137
137
|
# @param user [Hash] the user properties
|
138
138
|
# @return [String] a hash string
|
@@ -172,11 +172,11 @@ module LaunchDarkly
|
|
172
172
|
#
|
173
173
|
# Other supported user attributes include IP address, country code, and an arbitrary hash of
|
174
174
|
# custom attributes. For more about the supported user properties and how they work in
|
175
|
-
# LaunchDarkly, see [Targeting users](https://docs.launchdarkly.com/
|
175
|
+
# LaunchDarkly, see [Targeting users](https://docs.launchdarkly.com/home/flags/targeting-users).
|
176
176
|
#
|
177
177
|
# The optional `:privateAttributeNames` user property allows you to specify a list of
|
178
178
|
# attribute names that should not be sent back to LaunchDarkly.
|
179
|
-
# [Private attributes](https://docs.launchdarkly.com/
|
179
|
+
# [Private attributes](https://docs.launchdarkly.com/home/users/attributes#creating-private-user-attributes)
|
180
180
|
# can also be configured globally in {Config}.
|
181
181
|
#
|
182
182
|
# @example Basic user hash
|
@@ -213,7 +213,7 @@ module LaunchDarkly
|
|
213
213
|
# be included in analytics events, if you are capturing detailed event data for this flag.
|
214
214
|
#
|
215
215
|
# For more information, see the reference guide on
|
216
|
-
# [Evaluation reasons](https://docs.launchdarkly.com/
|
216
|
+
# [Evaluation reasons](https://docs.launchdarkly.com/sdk/concepts/evaluation-reasons).
|
217
217
|
#
|
218
218
|
# @param key [String] the unique feature key for the feature flag, as shown
|
219
219
|
# on the LaunchDarkly dashboard
|
@@ -260,7 +260,7 @@ module LaunchDarkly
|
|
260
260
|
#
|
261
261
|
# As of this version’s release date, the LaunchDarkly service does not support the `metricValue`
|
262
262
|
# parameter. As a result, specifying `metricValue` will not yet produce any different behavior
|
263
|
-
# from omitting it. Refer to the [SDK reference guide](https://docs.launchdarkly.com/
|
263
|
+
# from omitting it. Refer to the [SDK reference guide](https://docs.launchdarkly.com/sdk/features/events#ruby)
|
264
264
|
# for the latest status.
|
265
265
|
#
|
266
266
|
# @param event_name [String] The name of the event
|
@@ -60,9 +60,9 @@ module LaunchDarkly
|
|
60
60
|
headers: headers
|
61
61
|
})
|
62
62
|
status = response.status.code
|
63
|
-
@config.logger.debug { "[LDClient] Got response from uri: #{uri}\n\tstatus code: #{status}\n\theaders: #{response.headers}\n\tbody: #{res.to_s}" }
|
64
63
|
# must fully read body for persistent connections
|
65
64
|
body = response.to_s
|
65
|
+
@config.logger.debug { "[LDClient] Got response from uri: #{uri}\n\tstatus code: #{status}\n\theaders: #{response.headers.to_h}\n\tbody: #{body}" }
|
66
66
|
if status == 304 && !cached.nil?
|
67
67
|
body = cached.body
|
68
68
|
else
|
data/lib/ldclient-rb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: launchdarkly-server-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.2.
|
4
|
+
version: 6.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LaunchDarkly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-dynamodb
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.2.10
|
34
34
|
type: :development
|
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: 2.2.10
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,44 +196,50 @@ dependencies:
|
|
196
196
|
name: ld-eventsource
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - '='
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: 2.1.1
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - '='
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: 2.1.1
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: json
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 2.3
|
215
|
+
version: '2.3'
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 2.3
|
222
|
+
version: '2.3'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: http
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- - "
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 4.4.0
|
230
|
+
- - "<"
|
228
231
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
232
|
+
version: 6.0.0
|
230
233
|
type: :runtime
|
231
234
|
prerelease: false
|
232
235
|
version_requirements: !ruby/object:Gem::Requirement
|
233
236
|
requirements:
|
234
|
-
- - "
|
237
|
+
- - ">="
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: 4.4.0
|
240
|
+
- - "<"
|
235
241
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
242
|
+
version: 6.0.0
|
237
243
|
description: Official LaunchDarkly SDK for Ruby
|
238
244
|
email:
|
239
245
|
- team@launchdarkly.com
|
@@ -241,36 +247,8 @@ executables: []
|
|
241
247
|
extensions: []
|
242
248
|
extra_rdoc_files: []
|
243
249
|
files:
|
244
|
-
- ".circleci/config.yml"
|
245
|
-
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
246
|
-
- ".github/ISSUE_TEMPLATE/config.yml"
|
247
|
-
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
248
|
-
- ".github/pull_request_template.md"
|
249
|
-
- ".gitignore"
|
250
|
-
- ".hound.yml"
|
251
|
-
- ".ldrelease/build-docs.sh"
|
252
|
-
- ".ldrelease/circleci/linux/execute.sh"
|
253
|
-
- ".ldrelease/circleci/mac/execute.sh"
|
254
|
-
- ".ldrelease/circleci/template/build.sh"
|
255
|
-
- ".ldrelease/circleci/template/publish.sh"
|
256
|
-
- ".ldrelease/circleci/template/set-gem-home.sh"
|
257
|
-
- ".ldrelease/circleci/template/test.sh"
|
258
|
-
- ".ldrelease/circleci/template/update-version.sh"
|
259
|
-
- ".ldrelease/circleci/windows/execute.ps1"
|
260
|
-
- ".ldrelease/config.yml"
|
261
|
-
- ".rspec"
|
262
|
-
- ".rubocop.yml"
|
263
|
-
- ".simplecov"
|
264
|
-
- CHANGELOG.md
|
265
|
-
- CODEOWNERS
|
266
|
-
- CONTRIBUTING.md
|
267
|
-
- Gemfile
|
268
250
|
- LICENSE.txt
|
269
251
|
- README.md
|
270
|
-
- azure-pipelines.yml
|
271
|
-
- docs/Makefile
|
272
|
-
- docs/index.md
|
273
|
-
- launchdarkly-server-sdk.gemspec
|
274
252
|
- lib/launchdarkly-server-sdk.rb
|
275
253
|
- lib/ldclient-rb.rb
|
276
254
|
- lib/ldclient-rb/cache_store.rb
|
@@ -315,49 +293,6 @@ files:
|
|
315
293
|
- lib/ldclient-rb/user_filter.rb
|
316
294
|
- lib/ldclient-rb/util.rb
|
317
295
|
- lib/ldclient-rb/version.rb
|
318
|
-
- spec/config_spec.rb
|
319
|
-
- spec/diagnostic_events_spec.rb
|
320
|
-
- spec/evaluation_detail_spec.rb
|
321
|
-
- spec/event_sender_spec.rb
|
322
|
-
- spec/event_summarizer_spec.rb
|
323
|
-
- spec/events_spec.rb
|
324
|
-
- spec/expiring_cache_spec.rb
|
325
|
-
- spec/feature_store_spec_base.rb
|
326
|
-
- spec/file_data_source_spec.rb
|
327
|
-
- spec/fixtures/feature.json
|
328
|
-
- spec/fixtures/feature1.json
|
329
|
-
- spec/fixtures/user.json
|
330
|
-
- spec/flags_state_spec.rb
|
331
|
-
- spec/http_util.rb
|
332
|
-
- spec/impl/evaluator_bucketing_spec.rb
|
333
|
-
- spec/impl/evaluator_clause_spec.rb
|
334
|
-
- spec/impl/evaluator_operators_spec.rb
|
335
|
-
- spec/impl/evaluator_rule_spec.rb
|
336
|
-
- spec/impl/evaluator_segment_spec.rb
|
337
|
-
- spec/impl/evaluator_spec.rb
|
338
|
-
- spec/impl/evaluator_spec_base.rb
|
339
|
-
- spec/impl/event_factory_spec.rb
|
340
|
-
- spec/impl/model/serialization_spec.rb
|
341
|
-
- spec/in_memory_feature_store_spec.rb
|
342
|
-
- spec/integrations/consul_feature_store_spec.rb
|
343
|
-
- spec/integrations/dynamodb_feature_store_spec.rb
|
344
|
-
- spec/integrations/store_wrapper_spec.rb
|
345
|
-
- spec/launchdarkly-server-sdk_spec.rb
|
346
|
-
- spec/launchdarkly-server-sdk_spec_autoloadtest.rb
|
347
|
-
- spec/ldclient_end_to_end_spec.rb
|
348
|
-
- spec/ldclient_spec.rb
|
349
|
-
- spec/newrelic_spec.rb
|
350
|
-
- spec/polling_spec.rb
|
351
|
-
- spec/redis_feature_store_spec.rb
|
352
|
-
- spec/requestor_spec.rb
|
353
|
-
- spec/segment_store_spec_base.rb
|
354
|
-
- spec/simple_lru_cache_spec.rb
|
355
|
-
- spec/spec_helper.rb
|
356
|
-
- spec/store_spec.rb
|
357
|
-
- spec/stream_spec.rb
|
358
|
-
- spec/user_filter_spec.rb
|
359
|
-
- spec/util_spec.rb
|
360
|
-
- spec/version_spec.rb
|
361
296
|
homepage: https://github.com/launchdarkly/ruby-server-sdk
|
362
297
|
licenses:
|
363
298
|
- Apache-2.0
|
@@ -377,51 +312,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
377
312
|
- !ruby/object:Gem::Version
|
378
313
|
version: '0'
|
379
314
|
requirements: []
|
380
|
-
rubygems_version: 3.
|
315
|
+
rubygems_version: 3.2.29
|
381
316
|
signing_key:
|
382
317
|
specification_version: 4
|
383
318
|
summary: LaunchDarkly SDK for Ruby
|
384
|
-
test_files:
|
385
|
-
- spec/config_spec.rb
|
386
|
-
- spec/diagnostic_events_spec.rb
|
387
|
-
- spec/evaluation_detail_spec.rb
|
388
|
-
- spec/event_sender_spec.rb
|
389
|
-
- spec/event_summarizer_spec.rb
|
390
|
-
- spec/events_spec.rb
|
391
|
-
- spec/expiring_cache_spec.rb
|
392
|
-
- spec/feature_store_spec_base.rb
|
393
|
-
- spec/file_data_source_spec.rb
|
394
|
-
- spec/fixtures/feature.json
|
395
|
-
- spec/fixtures/feature1.json
|
396
|
-
- spec/fixtures/user.json
|
397
|
-
- spec/flags_state_spec.rb
|
398
|
-
- spec/http_util.rb
|
399
|
-
- spec/impl/evaluator_bucketing_spec.rb
|
400
|
-
- spec/impl/evaluator_clause_spec.rb
|
401
|
-
- spec/impl/evaluator_operators_spec.rb
|
402
|
-
- spec/impl/evaluator_rule_spec.rb
|
403
|
-
- spec/impl/evaluator_segment_spec.rb
|
404
|
-
- spec/impl/evaluator_spec.rb
|
405
|
-
- spec/impl/evaluator_spec_base.rb
|
406
|
-
- spec/impl/event_factory_spec.rb
|
407
|
-
- spec/impl/model/serialization_spec.rb
|
408
|
-
- spec/in_memory_feature_store_spec.rb
|
409
|
-
- spec/integrations/consul_feature_store_spec.rb
|
410
|
-
- spec/integrations/dynamodb_feature_store_spec.rb
|
411
|
-
- spec/integrations/store_wrapper_spec.rb
|
412
|
-
- spec/launchdarkly-server-sdk_spec.rb
|
413
|
-
- spec/launchdarkly-server-sdk_spec_autoloadtest.rb
|
414
|
-
- spec/ldclient_end_to_end_spec.rb
|
415
|
-
- spec/ldclient_spec.rb
|
416
|
-
- spec/newrelic_spec.rb
|
417
|
-
- spec/polling_spec.rb
|
418
|
-
- spec/redis_feature_store_spec.rb
|
419
|
-
- spec/requestor_spec.rb
|
420
|
-
- spec/segment_store_spec_base.rb
|
421
|
-
- spec/simple_lru_cache_spec.rb
|
422
|
-
- spec/spec_helper.rb
|
423
|
-
- spec/store_spec.rb
|
424
|
-
- spec/stream_spec.rb
|
425
|
-
- spec/user_filter_spec.rb
|
426
|
-
- spec/util_spec.rb
|
427
|
-
- spec/version_spec.rb
|
319
|
+
test_files: []
|
data/.circleci/config.yml
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# This CircleCI configuration was generated by Releaser for a specific release. It is not to be used
|
2
|
-
# for regular CI builds. Be aware that rerunning this build may cause it to repeat release actions
|
3
|
-
# such as publishing to a package manager. However, it will not perform any Git actions other than
|
4
|
-
# reading the repository.
|
5
|
-
version: 2.1
|
6
|
-
workflows:
|
7
|
-
test:
|
8
|
-
jobs:
|
9
|
-
- release_linux:
|
10
|
-
context: org-global
|
11
|
-
jobs:
|
12
|
-
release_linux:
|
13
|
-
docker:
|
14
|
-
- image: circleci/ruby:2.6.6-buster
|
15
|
-
environment:
|
16
|
-
LD_RELEASE_CIRCLECI_TYPE: linux
|
17
|
-
LD_RELEASE_BRANCH: "master"
|
18
|
-
LD_RELEASE_CIRCLECI_BRANCH: ""
|
19
|
-
LD_RELEASE_DOCS_GITHUB_PAGES: "1"
|
20
|
-
LD_RELEASE_DOCS_TITLE: ""
|
21
|
-
LD_RELEASE_PROJECT: "ruby-server-sdk"
|
22
|
-
LD_RELEASE_PROJECT_TEMPLATE: "ruby"
|
23
|
-
LD_RELEASE_VERSION: "6.2.1"
|
24
|
-
LD_SKIP_DATABASE_TESTS: "1"
|
25
|
-
steps:
|
26
|
-
- checkout
|
27
|
-
- run:
|
28
|
-
name: "Releaser: build"
|
29
|
-
command: .ldrelease/circleci/mac/execute.sh build .ldrelease/circleci/template/build.sh
|
30
|
-
- run:
|
31
|
-
name: "Releaser: test"
|
32
|
-
command: .ldrelease/circleci/mac/execute.sh test .ldrelease/circleci/template/test.sh
|
33
|
-
- run:
|
34
|
-
name: "Releaser: build-docs"
|
35
|
-
command: .ldrelease/circleci/mac/execute.sh build-docs .ldrelease/build-docs.sh
|
36
|
-
- run:
|
37
|
-
name: "Releaser: publish"
|
38
|
-
command: .ldrelease/circleci/mac/execute.sh publish .ldrelease/circleci/template/publish.sh
|
39
|
-
- store_artifacts:
|
40
|
-
path: artifacts
|
@@ -1,37 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Bug report
|
3
|
-
about: Create a report to help us improve
|
4
|
-
title: ''
|
5
|
-
labels: ''
|
6
|
-
assignees: ''
|
7
|
-
|
8
|
-
---
|
9
|
-
|
10
|
-
**Is this a support request?**
|
11
|
-
This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the SDK code. If you're not sure whether the problem you are having is specifically related to the SDK, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going [here](https://support.launchdarkly.com/hc/en-us/requests/new) or by emailing support@launchdarkly.com.
|
12
|
-
|
13
|
-
Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.
|
14
|
-
|
15
|
-
**Describe the bug**
|
16
|
-
A clear and concise description of what the bug is.
|
17
|
-
|
18
|
-
**To reproduce**
|
19
|
-
Steps to reproduce the behavior.
|
20
|
-
|
21
|
-
**Expected behavior**
|
22
|
-
A clear and concise description of what you expected to happen.
|
23
|
-
|
24
|
-
**Logs**
|
25
|
-
If applicable, add any log output related to your problem.
|
26
|
-
|
27
|
-
**SDK version**
|
28
|
-
The version of this SDK that you are using.
|
29
|
-
|
30
|
-
**Language version, developer tools**
|
31
|
-
For instance, Go 1.11 or Ruby 2.5.3. If you are using a language that requires a separate compiler, such as C, please include the name and version of the compiler too.
|
32
|
-
|
33
|
-
**OS/platform**
|
34
|
-
For instance, Ubuntu 16.04, Windows 10, or Android 4.0.3. If your code is running in a browser, please also include the browser type and version.
|
35
|
-
|
36
|
-
**Additional context**
|
37
|
-
Add any other context about the problem here.
|
@@ -1,20 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Feature request
|
3
|
-
about: Suggest an idea for this project
|
4
|
-
title: ''
|
5
|
-
labels: ''
|
6
|
-
assignees: ''
|
7
|
-
|
8
|
-
---
|
9
|
-
|
10
|
-
**Is your feature request related to a problem? Please describe.**
|
11
|
-
A clear and concise description of what the problem is. Ex. I would love to see the SDK [...does something new...]
|
12
|
-
|
13
|
-
**Describe the solution you'd like**
|
14
|
-
A clear and concise description of what you want to happen.
|
15
|
-
|
16
|
-
**Describe alternatives you've considered**
|
17
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
18
|
-
|
19
|
-
**Additional context**
|
20
|
-
Add any other context about the feature request here.
|
@@ -1,21 +0,0 @@
|
|
1
|
-
**Requirements**
|
2
|
-
|
3
|
-
- [ ] I have added test coverage for new or changed functionality
|
4
|
-
- [ ] I have followed the repository's [pull request submission guidelines](../blob/master/CONTRIBUTING.md#submitting-pull-requests)
|
5
|
-
- [ ] I have validated my changes against all supported platform versions
|
6
|
-
|
7
|
-
**Related issues**
|
8
|
-
|
9
|
-
Provide links to any issues in this repository or elsewhere relating to this pull request.
|
10
|
-
|
11
|
-
**Describe the solution you've provided**
|
12
|
-
|
13
|
-
Provide a clear and concise description of what you expect to happen.
|
14
|
-
|
15
|
-
**Describe alternatives you've considered**
|
16
|
-
|
17
|
-
Provide a clear and concise description of any alternative solutions or features you've considered.
|
18
|
-
|
19
|
-
**Additional context**
|
20
|
-
|
21
|
-
Add any other context about the pull request here.
|
data/.gitignore
DELETED
data/.hound.yml
DELETED
data/.ldrelease/build-docs.sh
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
# doc generation is not part of Releaser's standard Ruby project template
|
4
|
-
|
5
|
-
mkdir -p ./artifacts/
|
6
|
-
|
7
|
-
cd ./docs
|
8
|
-
make
|
9
|
-
cd ..
|
10
|
-
|
11
|
-
# Releaser will pick up docs generated in CI if we put an archive of them in the
|
12
|
-
# artifacts directory and name it docs.tar.gz or docs.zip. They will be uploaded
|
13
|
-
# to GitHub Pages and also attached as release artifacts. There's no separate
|
14
|
-
# "publish-docs" step because the external service that also hosts them doesn't
|
15
|
-
# require an upload, it just picks up gems automatically.
|
16
|
-
|
17
|
-
cd ./docs/build/html
|
18
|
-
tar cfz ../../../artifacts/docs.tar.gz *
|
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
set -ue
|
4
|
-
|
5
|
-
# Performs a delegated release step in a CircleCI Linux container. This mechanism is described
|
6
|
-
# in scripts/circleci/README.md. All of the necessary environment variables should already be
|
7
|
-
# in the generated CircleCI configuration.
|
8
|
-
|
9
|
-
mkdir -p artifacts
|
10
|
-
|
11
|
-
export LD_RELEASE_TEMP_DIR=/tmp/project-releaser-temp
|
12
|
-
mkdir -p ${LD_RELEASE_TEMP_DIR}
|
13
|
-
|
14
|
-
STEP="$1"
|
15
|
-
SCRIPT="$2"
|
16
|
-
echo
|
17
|
-
echo "[${STEP}] executing ${SCRIPT}"
|
18
|
-
"./${SCRIPT}"
|
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
set -ue
|
4
|
-
|
5
|
-
# Performs a delegated release step in a CircleCI Mac container. This mechanism is described
|
6
|
-
# in scripts/circleci/README.md. All of the necessary environment variables should already be
|
7
|
-
# in the generated CircleCI configuration.
|
8
|
-
|
9
|
-
mkdir -p artifacts
|
10
|
-
|
11
|
-
export LD_RELEASE_TEMP_DIR=/tmp/project-releaser-temp
|
12
|
-
mkdir -p ${LD_RELEASE_TEMP_DIR}
|
13
|
-
|
14
|
-
STEP="$1"
|
15
|
-
SCRIPT="$2"
|
16
|
-
echo
|
17
|
-
echo "[${STEP}] executing ${SCRIPT}"
|
18
|
-
"./${SCRIPT}"
|
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
set -ue
|
4
|
-
|
5
|
-
# Standard build.sh for Ruby-based projects that publish a gem
|
6
|
-
|
7
|
-
echo "Using gem $(gem --version)"
|
8
|
-
|
9
|
-
#shellcheck source=/dev/null
|
10
|
-
source "$(dirname "$0")/set-gem-home.sh"
|
11
|
-
|
12
|
-
# If the gemspec specifies a certain version of bundler, we need to make sure we install that version.
|
13
|
-
echo "Installing bundler"
|
14
|
-
GEMSPEC_BUNDLER_VERSION=$(sed -n -e "s/.*['\"]bundler['\"], *['\"]\([^'\"]*\)['\"]/\1/p" ./*.gemspec | tr -d ' ')
|
15
|
-
if [ -n "${GEMSPEC_BUNDLER_VERSION}" ]; then
|
16
|
-
GEMSPEC_OPTIONS="-v ${GEMSPEC_BUNDLER_VERSION}"
|
17
|
-
else
|
18
|
-
GEMSPEC_OPTIONS=""
|
19
|
-
fi
|
20
|
-
gem install bundler ${GEMSPEC_OPTIONS} || { echo "installing bundler failed" >&2; exit 1; }
|
21
|
-
|
22
|
-
echo; echo "Installing dependencies"
|
23
|
-
bundle install
|
24
|
-
|
25
|
-
# Build Ruby Gem - this assumes there is a single .gemspec file in the main project directory
|
26
|
-
# Note that the gemspec must be able to get the project version either from $LD_RELEASE_VERSION,
|
27
|
-
# or from somewhere in the source code that the project-specific update-version.sh has updated.
|
28
|
-
echo "Running gem build"
|
29
|
-
gem build ./*.gemspec || { echo "gem build failed" >&2; exit 1; }
|