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.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/lib/ldclient-rb/config.rb +3 -3
  4. data/lib/ldclient-rb/integrations/dynamodb.rb +1 -1
  5. data/lib/ldclient-rb/integrations/redis.rb +1 -1
  6. data/lib/ldclient-rb/interfaces.rb +1 -1
  7. data/lib/ldclient-rb/ldclient.rb +5 -5
  8. data/lib/ldclient-rb/version.rb +1 -1
  9. metadata +6 -121
  10. data/.circleci/config.yml +0 -43
  11. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -37
  12. data/.github/ISSUE_TEMPLATE/config.yml +0 -5
  13. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  14. data/.github/pull_request_template.md +0 -21
  15. data/.gitignore +0 -16
  16. data/.hound.yml +0 -2
  17. data/.ldrelease/build-docs.sh +0 -18
  18. data/.ldrelease/circleci/linux/execute.sh +0 -18
  19. data/.ldrelease/circleci/mac/execute.sh +0 -18
  20. data/.ldrelease/circleci/template/build.sh +0 -19
  21. data/.ldrelease/circleci/template/gems-setup.sh +0 -16
  22. data/.ldrelease/circleci/template/prepare.sh +0 -17
  23. data/.ldrelease/circleci/template/publish.sh +0 -19
  24. data/.ldrelease/circleci/template/test.sh +0 -10
  25. data/.ldrelease/circleci/template/update-version.sh +0 -8
  26. data/.ldrelease/circleci/windows/execute.ps1 +0 -19
  27. data/.ldrelease/config.yml +0 -29
  28. data/.rspec +0 -2
  29. data/.rubocop.yml +0 -600
  30. data/.simplecov +0 -4
  31. data/CHANGELOG.md +0 -371
  32. data/CODEOWNERS +0 -1
  33. data/CONTRIBUTING.md +0 -37
  34. data/Gemfile +0 -3
  35. data/azure-pipelines.yml +0 -51
  36. data/docs/Makefile +0 -26
  37. data/docs/index.md +0 -9
  38. data/launchdarkly-server-sdk.gemspec +0 -43
  39. data/spec/config_spec.rb +0 -63
  40. data/spec/diagnostic_events_spec.rb +0 -165
  41. data/spec/evaluation_detail_spec.rb +0 -135
  42. data/spec/event_sender_spec.rb +0 -197
  43. data/spec/event_summarizer_spec.rb +0 -63
  44. data/spec/events_spec.rb +0 -607
  45. data/spec/expiring_cache_spec.rb +0 -76
  46. data/spec/feature_store_spec_base.rb +0 -213
  47. data/spec/file_data_source_spec.rb +0 -283
  48. data/spec/fixtures/feature.json +0 -37
  49. data/spec/fixtures/feature1.json +0 -36
  50. data/spec/fixtures/user.json +0 -9
  51. data/spec/flags_state_spec.rb +0 -81
  52. data/spec/http_util.rb +0 -132
  53. data/spec/impl/evaluator_bucketing_spec.rb +0 -216
  54. data/spec/impl/evaluator_clause_spec.rb +0 -55
  55. data/spec/impl/evaluator_operators_spec.rb +0 -141
  56. data/spec/impl/evaluator_rule_spec.rb +0 -128
  57. data/spec/impl/evaluator_segment_spec.rb +0 -125
  58. data/spec/impl/evaluator_spec.rb +0 -349
  59. data/spec/impl/evaluator_spec_base.rb +0 -75
  60. data/spec/impl/event_factory_spec.rb +0 -108
  61. data/spec/impl/model/serialization_spec.rb +0 -41
  62. data/spec/in_memory_feature_store_spec.rb +0 -12
  63. data/spec/integrations/consul_feature_store_spec.rb +0 -40
  64. data/spec/integrations/dynamodb_feature_store_spec.rb +0 -103
  65. data/spec/integrations/store_wrapper_spec.rb +0 -276
  66. data/spec/launchdarkly-server-sdk_spec.rb +0 -13
  67. data/spec/launchdarkly-server-sdk_spec_autoloadtest.rb +0 -9
  68. data/spec/ldclient_end_to_end_spec.rb +0 -157
  69. data/spec/ldclient_spec.rb +0 -635
  70. data/spec/newrelic_spec.rb +0 -5
  71. data/spec/polling_spec.rb +0 -120
  72. data/spec/redis_feature_store_spec.rb +0 -121
  73. data/spec/requestor_spec.rb +0 -209
  74. data/spec/segment_store_spec_base.rb +0 -95
  75. data/spec/simple_lru_cache_spec.rb +0 -24
  76. data/spec/spec_helper.rb +0 -9
  77. data/spec/store_spec.rb +0 -10
  78. data/spec/stream_spec.rb +0 -45
  79. data/spec/user_filter_spec.rb +0 -91
  80. data/spec/util_spec.rb +0 -17
  81. data/spec/version_spec.rb +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 326e10ac69bf7d73c5727c555a2981b7d271d1651d9521b976005d93646a188b
4
- data.tar.gz: 608205f6ac545e410aaa9e507180b8ad097ebe1ed23c6dc011b2c522209d9e3f
3
+ metadata.gz: 8f1b216e5ae2518b79aae9613ecd04b02ed525ea2d25084df805eae7d92cb219
4
+ data.tar.gz: 317db7e14a292968b245e39e3cd4be33206fd8085c8ebd04be43f1c987434228
5
5
  SHA512:
6
- metadata.gz: a1b648a1d796ad1b65feffd9ee83fcd3dcb63c3146d513e44173d5cb6da32fd29b993d8b7343957094b801b69da5c0873b458fb568e6d174e4c402e158d129c4
7
- data.tar.gz: 433d7761a4386538c25a8db6a0520b7d1e8c7184dcc9967e9770bbf5639e3f0a74476f2a0ef20f50bf53a5c6da4df62aacfd444f5fad5cfb1d64bc73a113374f
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/docs/getting-started) using LaunchDarkly today!
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/docs/ruby-sdk-reference#section-getting-started) for instructions on getting started with using the SDK.
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. Check out [our documentation](https://docs.launchdarkly.com/docs) for a complete list.
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
@@ -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/v2.0/docs/the-relay-proxy)
114
- # and ["Using a persistent feature store"](https://docs.launchdarkly.com/v2.0/docs/using-a-persistent-feature-store).
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 ["Using a persistent feature store"](https://docs.launchdarkly.com/v2.0/docs/using-a-persistent-feature-store).
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/v2.0/docs/using-a-persistent-feature-store).
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/v2.0/docs/using-a-persistent-feature-store).
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/v2.0/docs/using-a-persistent-feature-store).
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
@@ -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/docs/js-sdk-reference#section-secure-mode).
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/docs/targeting-users).
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/docs/private-user-attributes)
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/v2.0/docs/evaluation-reasons).
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/docs/ruby-sdk-reference#section-track)
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
@@ -1,3 +1,3 @@
1
1
  module LaunchDarkly
2
- VERSION = "6.2.4"
2
+ VERSION = "6.2.5"
3
3
  end
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
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-08-11 00:00:00.000000000 Z
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.0.1
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.0.1
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.0.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,5 +0,0 @@
1
- blank_issues_enabled: false
2
- contact_links:
3
- - name: Support request
4
- url: https://support.launchdarkly.com/hc/en-us/requests/new
5
- about: File your support requests with LaunchDarkly's support team
@@ -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
@@ -1,16 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /docs/build
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- *.bundle
10
- *.so
11
- *.o
12
- *.a
13
- mkmf.log
14
- *.gem
15
- .DS_Store
16
- Gemfile.lock
data/.hound.yml DELETED
@@ -1,2 +0,0 @@
1
- ruby:
2
- config_file: .rubocop
@@ -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,10 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -ue
4
-
5
- # Standard test.sh for Ruby-based projects
6
-
7
- #shellcheck source=/dev/null
8
- source "$(dirname "$0")/gems-setup.sh"
9
-
10
- ${BUNDLER_COMMAND} exec rspec spec
@@ -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"