launchdarkly-server-sdk 6.2.4 → 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/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/version.rb +1 -1
- metadata +6 -121
- data/.circleci/config.yml +0 -43
- 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 -19
- data/.ldrelease/circleci/template/gems-setup.sh +0 -16
- data/.ldrelease/circleci/template/prepare.sh +0 -17
- data/.ldrelease/circleci/template/publish.sh +0 -19
- 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 -371
- 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 -43
- data/spec/config_spec.rb +0 -63
- data/spec/diagnostic_events_spec.rb +0 -165
- 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 -209
- 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
|
#
|
@@ -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
|
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
|
@@ -198,14 +198,14 @@ dependencies:
|
|
198
198
|
requirements:
|
199
199
|
- - '='
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: 2.
|
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: 2.
|
208
|
+
version: 2.1.1
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: json
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -247,37 +247,8 @@ executables: []
|
|
247
247
|
extensions: []
|
248
248
|
extra_rdoc_files: []
|
249
249
|
files:
|
250
|
-
- ".circleci/config.yml"
|
251
|
-
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
252
|
-
- ".github/ISSUE_TEMPLATE/config.yml"
|
253
|
-
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
254
|
-
- ".github/pull_request_template.md"
|
255
|
-
- ".gitignore"
|
256
|
-
- ".hound.yml"
|
257
|
-
- ".ldrelease/build-docs.sh"
|
258
|
-
- ".ldrelease/circleci/linux/execute.sh"
|
259
|
-
- ".ldrelease/circleci/mac/execute.sh"
|
260
|
-
- ".ldrelease/circleci/template/build.sh"
|
261
|
-
- ".ldrelease/circleci/template/gems-setup.sh"
|
262
|
-
- ".ldrelease/circleci/template/prepare.sh"
|
263
|
-
- ".ldrelease/circleci/template/publish.sh"
|
264
|
-
- ".ldrelease/circleci/template/test.sh"
|
265
|
-
- ".ldrelease/circleci/template/update-version.sh"
|
266
|
-
- ".ldrelease/circleci/windows/execute.ps1"
|
267
|
-
- ".ldrelease/config.yml"
|
268
|
-
- ".rspec"
|
269
|
-
- ".rubocop.yml"
|
270
|
-
- ".simplecov"
|
271
|
-
- CHANGELOG.md
|
272
|
-
- CODEOWNERS
|
273
|
-
- CONTRIBUTING.md
|
274
|
-
- Gemfile
|
275
250
|
- LICENSE.txt
|
276
251
|
- README.md
|
277
|
-
- azure-pipelines.yml
|
278
|
-
- docs/Makefile
|
279
|
-
- docs/index.md
|
280
|
-
- launchdarkly-server-sdk.gemspec
|
281
252
|
- lib/launchdarkly-server-sdk.rb
|
282
253
|
- lib/ldclient-rb.rb
|
283
254
|
- lib/ldclient-rb/cache_store.rb
|
@@ -322,49 +293,6 @@ files:
|
|
322
293
|
- lib/ldclient-rb/user_filter.rb
|
323
294
|
- lib/ldclient-rb/util.rb
|
324
295
|
- lib/ldclient-rb/version.rb
|
325
|
-
- spec/config_spec.rb
|
326
|
-
- spec/diagnostic_events_spec.rb
|
327
|
-
- spec/evaluation_detail_spec.rb
|
328
|
-
- spec/event_sender_spec.rb
|
329
|
-
- spec/event_summarizer_spec.rb
|
330
|
-
- spec/events_spec.rb
|
331
|
-
- spec/expiring_cache_spec.rb
|
332
|
-
- spec/feature_store_spec_base.rb
|
333
|
-
- spec/file_data_source_spec.rb
|
334
|
-
- spec/fixtures/feature.json
|
335
|
-
- spec/fixtures/feature1.json
|
336
|
-
- spec/fixtures/user.json
|
337
|
-
- spec/flags_state_spec.rb
|
338
|
-
- spec/http_util.rb
|
339
|
-
- spec/impl/evaluator_bucketing_spec.rb
|
340
|
-
- spec/impl/evaluator_clause_spec.rb
|
341
|
-
- spec/impl/evaluator_operators_spec.rb
|
342
|
-
- spec/impl/evaluator_rule_spec.rb
|
343
|
-
- spec/impl/evaluator_segment_spec.rb
|
344
|
-
- spec/impl/evaluator_spec.rb
|
345
|
-
- spec/impl/evaluator_spec_base.rb
|
346
|
-
- spec/impl/event_factory_spec.rb
|
347
|
-
- spec/impl/model/serialization_spec.rb
|
348
|
-
- spec/in_memory_feature_store_spec.rb
|
349
|
-
- spec/integrations/consul_feature_store_spec.rb
|
350
|
-
- spec/integrations/dynamodb_feature_store_spec.rb
|
351
|
-
- spec/integrations/store_wrapper_spec.rb
|
352
|
-
- spec/launchdarkly-server-sdk_spec.rb
|
353
|
-
- spec/launchdarkly-server-sdk_spec_autoloadtest.rb
|
354
|
-
- spec/ldclient_end_to_end_spec.rb
|
355
|
-
- spec/ldclient_spec.rb
|
356
|
-
- spec/newrelic_spec.rb
|
357
|
-
- spec/polling_spec.rb
|
358
|
-
- spec/redis_feature_store_spec.rb
|
359
|
-
- spec/requestor_spec.rb
|
360
|
-
- spec/segment_store_spec_base.rb
|
361
|
-
- spec/simple_lru_cache_spec.rb
|
362
|
-
- spec/spec_helper.rb
|
363
|
-
- spec/store_spec.rb
|
364
|
-
- spec/stream_spec.rb
|
365
|
-
- spec/user_filter_spec.rb
|
366
|
-
- spec/util_spec.rb
|
367
|
-
- spec/version_spec.rb
|
368
296
|
homepage: https://github.com/launchdarkly/ruby-server-sdk
|
369
297
|
licenses:
|
370
298
|
- Apache-2.0
|
@@ -384,51 +312,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
384
312
|
- !ruby/object:Gem::Version
|
385
313
|
version: '0'
|
386
314
|
requirements: []
|
387
|
-
rubygems_version: 3.
|
315
|
+
rubygems_version: 3.2.29
|
388
316
|
signing_key:
|
389
317
|
specification_version: 4
|
390
318
|
summary: LaunchDarkly SDK for Ruby
|
391
|
-
test_files:
|
392
|
-
- spec/config_spec.rb
|
393
|
-
- spec/diagnostic_events_spec.rb
|
394
|
-
- spec/evaluation_detail_spec.rb
|
395
|
-
- spec/event_sender_spec.rb
|
396
|
-
- spec/event_summarizer_spec.rb
|
397
|
-
- spec/events_spec.rb
|
398
|
-
- spec/expiring_cache_spec.rb
|
399
|
-
- spec/feature_store_spec_base.rb
|
400
|
-
- spec/file_data_source_spec.rb
|
401
|
-
- spec/fixtures/feature.json
|
402
|
-
- spec/fixtures/feature1.json
|
403
|
-
- spec/fixtures/user.json
|
404
|
-
- spec/flags_state_spec.rb
|
405
|
-
- spec/http_util.rb
|
406
|
-
- spec/impl/evaluator_bucketing_spec.rb
|
407
|
-
- spec/impl/evaluator_clause_spec.rb
|
408
|
-
- spec/impl/evaluator_operators_spec.rb
|
409
|
-
- spec/impl/evaluator_rule_spec.rb
|
410
|
-
- spec/impl/evaluator_segment_spec.rb
|
411
|
-
- spec/impl/evaluator_spec.rb
|
412
|
-
- spec/impl/evaluator_spec_base.rb
|
413
|
-
- spec/impl/event_factory_spec.rb
|
414
|
-
- spec/impl/model/serialization_spec.rb
|
415
|
-
- spec/in_memory_feature_store_spec.rb
|
416
|
-
- spec/integrations/consul_feature_store_spec.rb
|
417
|
-
- spec/integrations/dynamodb_feature_store_spec.rb
|
418
|
-
- spec/integrations/store_wrapper_spec.rb
|
419
|
-
- spec/launchdarkly-server-sdk_spec.rb
|
420
|
-
- spec/launchdarkly-server-sdk_spec_autoloadtest.rb
|
421
|
-
- spec/ldclient_end_to_end_spec.rb
|
422
|
-
- spec/ldclient_spec.rb
|
423
|
-
- spec/newrelic_spec.rb
|
424
|
-
- spec/polling_spec.rb
|
425
|
-
- spec/redis_feature_store_spec.rb
|
426
|
-
- spec/requestor_spec.rb
|
427
|
-
- spec/segment_store_spec_base.rb
|
428
|
-
- spec/simple_lru_cache_spec.rb
|
429
|
-
- spec/spec_helper.rb
|
430
|
-
- spec/store_spec.rb
|
431
|
-
- spec/stream_spec.rb
|
432
|
-
- spec/user_filter_spec.rb
|
433
|
-
- spec/util_spec.rb
|
434
|
-
- spec/version_spec.rb
|
319
|
+
test_files: []
|
data/.circleci/config.yml
DELETED
@@ -1,43 +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.4"
|
24
|
-
LD_SKIP_DATABASE_TESTS: "1"
|
25
|
-
steps:
|
26
|
-
- checkout
|
27
|
-
- run:
|
28
|
-
name: "Releaser: prepare"
|
29
|
-
command: .ldrelease/circleci/mac/execute.sh prepare .ldrelease/circleci/template/prepare.sh
|
30
|
-
- run:
|
31
|
-
name: "Releaser: build"
|
32
|
-
command: .ldrelease/circleci/mac/execute.sh build .ldrelease/circleci/template/build.sh
|
33
|
-
- run:
|
34
|
-
name: "Releaser: test"
|
35
|
-
command: .ldrelease/circleci/mac/execute.sh test .ldrelease/circleci/template/test.sh
|
36
|
-
- run:
|
37
|
-
name: "Releaser: build-docs"
|
38
|
-
command: .ldrelease/circleci/mac/execute.sh build-docs .ldrelease/build-docs.sh
|
39
|
-
- run:
|
40
|
-
name: "Releaser: publish"
|
41
|
-
command: .ldrelease/circleci/mac/execute.sh publish .ldrelease/circleci/template/publish.sh
|
42
|
-
- store_artifacts:
|
43
|
-
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,19 +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")/gems-setup.sh"
|
11
|
-
|
12
|
-
echo; echo "Installing dependencies"
|
13
|
-
${BUNDLER_COMMAND} install
|
14
|
-
|
15
|
-
# Build Ruby Gem - this assumes there is a single .gemspec file in the main project directory
|
16
|
-
# Note that the gemspec must be able to get the project version either from $LD_RELEASE_VERSION,
|
17
|
-
# or from somewhere in the source code that the project-specific update-version.sh has updated.
|
18
|
-
echo "Running gem build"
|
19
|
-
gem build ./*.gemspec || { echo "gem build failed" >&2; exit 1; }
|
@@ -1,16 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
# helper script to set GEM_HOME, PATH, and BUNDLER_COMMAND for Ruby - must be sourced, not executed
|
4
|
-
|
5
|
-
mkdir -p "${LD_RELEASE_TEMP_DIR}/gems"
|
6
|
-
export GEM_HOME="${LD_RELEASE_TEMP_DIR}/gems"
|
7
|
-
export PATH="${GEM_HOME}/bin:${PATH}"
|
8
|
-
|
9
|
-
# also, determine whether we'll need to run a specific version of Bundler
|
10
|
-
|
11
|
-
GEMSPEC_BUNDLER_VERSION=$(sed -n -e "s/.*['\"]bundler['\"], *['\"]\([^'\"]*\)['\"]/\1/p" ./*.gemspec | tr -d ' ')
|
12
|
-
if [ -n "${GEMSPEC_BUNDLER_VERSION}" ]; then
|
13
|
-
BUNDLER_COMMAND="bundler _${GEMSPEC_BUNDLER_VERSION}_"
|
14
|
-
else
|
15
|
-
BUNDLER_COMMAND="bundler"
|
16
|
-
fi
|
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
set -ue
|
4
|
-
|
5
|
-
echo "Using gem $(gem --version)"
|
6
|
-
|
7
|
-
#shellcheck source=/dev/null
|
8
|
-
source "$(dirname "$0")/gems-setup.sh"
|
9
|
-
|
10
|
-
# If the gemspec specifies a certain version of bundler, we need to make sure we install that version.
|
11
|
-
echo "Installing bundler"
|
12
|
-
if [ -n "${GEMSPEC_BUNDLER_VERSION:-}" ]; then
|
13
|
-
GEMSPEC_OPTIONS="-v ${GEMSPEC_BUNDLER_VERSION}"
|
14
|
-
else
|
15
|
-
GEMSPEC_OPTIONS=""
|
16
|
-
fi
|
17
|
-
gem install bundler ${GEMSPEC_OPTIONS} || { echo "installing bundler failed" >&2; exit 1; }
|
@@ -1,19 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
set -ue
|
4
|
-
|
5
|
-
# Standard publish.sh for Ruby-based projects - we can assume build.sh has already been run
|
6
|
-
|
7
|
-
#shellcheck source=/dev/null
|
8
|
-
source "$(dirname "$0")/gems-setup.sh"
|
9
|
-
|
10
|
-
# If we're running in CircleCI, the RubyGems credentials will be in an environment
|
11
|
-
# variable and should be copied to the variable the gem command expects
|
12
|
-
if [ -n "${LD_RELEASE_RUBYGEMS_API_KEY:-}" ]; then
|
13
|
-
export GEM_HOST_API_KEY="${LD_RELEASE_RUBYGEMS_API_KEY}"
|
14
|
-
fi
|
15
|
-
|
16
|
-
# Since all Releaser builds are clean builds, we can assume that the only .gem file here
|
17
|
-
# is the one we just built
|
18
|
-
echo "Running gem push"
|
19
|
-
gem push ./*.gem || { echo "gem push failed" >&2; exit 1; }
|
@@ -1,8 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
set -ue
|
4
|
-
|
5
|
-
# Standard update-version.sh for Ruby-based projects - this will work only if the version string
|
6
|
-
# is in a source file under lib/ that has a line like his: VERSION = "2.0.0"
|
7
|
-
|
8
|
-
"$(dirname "$0")/../update-version-constant.sh" lib '*.rb'
|
@@ -1,19 +0,0 @@
|
|
1
|
-
param(
|
2
|
-
[string]$step,
|
3
|
-
[string]$script
|
4
|
-
)
|
5
|
-
|
6
|
-
# Performs a delegated release step in a CircleCI Windows container using PowerShell. This
|
7
|
-
# mechanism is described in scripts/circleci/README.md. All of the necessary environment
|
8
|
-
# variables should already be in the generated CircleCI configuration.
|
9
|
-
|
10
|
-
$ErrorActionPreference = "Stop"
|
11
|
-
|
12
|
-
New-Item -Path "./artifacts" -ItemType "directory" -Force | Out-Null
|
13
|
-
|
14
|
-
$env:LD_RELEASE_TEMP_DIR = "$env:TEMP\project-releaser-temp"
|
15
|
-
New-Item -Path $env:LD_RELEASE_TEMP_DIR -ItemType "directory" -Force | Out-Null
|
16
|
-
|
17
|
-
Write-Host
|
18
|
-
Write-Host "[$step] executing $script"
|
19
|
-
& "./$script"
|