Skip to content

Commit 065e75a

Browse files
prepare 6.2.5 release (#188)
1 parent cd9f081 commit 065e75a

File tree

14 files changed

+54
-48
lines changed

14 files changed

+54
-48
lines changed

.circleci/config.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ workflows:
1818
docker-image: cimg/ruby:3.0
1919
- build-test-linux:
2020
name: JRuby 9.2
21-
docker-image: circleci/jruby:9.2-jdk
21+
docker-image: jruby:9.2-jdk
2222
jruby: true
2323

2424
jobs:
@@ -42,12 +42,17 @@ jobs:
4242
condition: <<parameters.jruby>>
4343
steps:
4444
- run: gem install jruby-openssl # required by bundler, no effect on Ruby MRI
45-
- run: sudo apt-get update -y && sudo apt-get install -y build-essential
45+
- run: apt-get update -y && apt-get install -y build-essential
46+
- when:
47+
condition:
48+
not: <<parameters.jruby>>
49+
steps:
50+
- run: sudo apt-get update -y && sudo apt-get install -y build-essential
4651
- run: ruby -v
4752
- run: gem install bundler -v 2.2.10
4853
- run: bundle _2.2.10_ install
4954
- run: mkdir ./rspec
50-
- run: bundle _2.2.10_ exec rspec --format progress --format RspecJunitFormatter -o ./rspec/rspec.xml spec
55+
- run: bundle _2.2.10_ exec rspec --format documentation --format RspecJunitFormatter -o ./rspec/rspec.xml spec
5156
- store_test_results:
5257
path: ./rspec
5358
- store_artifacts:

.ldrelease/build-docs.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@
22

33
# doc generation is not part of Releaser's standard Ruby project template
44

5-
mkdir -p ./artifacts/
6-
75
cd ./docs
86
make
9-
cd ..
7+
cd build/html
108

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.
9+
# Releaser will pick up generated docs if we put them in the designated
10+
# directory. They will be uploaded to GitHub Pages and also attached as
11+
# release artifacts. There's no separate "publish-docs" step because the
12+
# external service that also hosts them doesn't require an upload, it just
13+
# picks up gems automatically.
1614

17-
cd ./docs/build/html
18-
tar cfz ../../../artifacts/docs.tar.gz *
15+
cp -r * "${LD_RELEASE_DOCS_DIR}"

.ldrelease/config.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
version: 2
2+
13
repo:
24
public: ruby-server-sdk
35
private: ruby-server-sdk-private
46

5-
releasableBranches:
7+
branches:
68
- name: master
79
- name: 5.x
810

@@ -12,18 +14,16 @@ publications:
1214
- url: https://www.rubydoc.info/gems/launchdarkly-server-sdk
1315
description: documentation
1416

15-
template:
16-
name: ruby
17-
18-
circleci:
19-
linux:
20-
image: circleci/ruby:2.6.6-buster
21-
context: org-global
17+
jobs:
18+
- docker:
19+
image: ruby:2.5-buster
20+
template:
21+
name: ruby
2222
env:
2323
LD_SKIP_DATABASE_TESTS: "1" # Don't run Redis/Consul/DynamoDB tests in release; they are run in CI
2424

2525
documentation:
26-
githubPages: true
26+
gitHubPages: true
2727

2828
sdk:
2929
displayName: "Ruby"

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ The gem name will also change. In the 5.5.6 release, it is still `ldclient-rb`;
167167

168168
## [5.5.0] - 2019-01-17
169169
### Added:
170-
- It is now possible to use Consul or DynamoDB as a persistent feature store, similar to the existing Redis integration. See the `LaunchDarkly::Integrations::Consul` and `LaunchDarkly::Integrations::DynamoDB` modules, and the reference guide [Using a persistent feature store](https://docs.launchdarkly.com/v2.0/docs/using-a-persistent-feature-store).
170+
- It is now possible to use Consul or DynamoDB as a persistent feature store, similar to the existing Redis integration. See the `LaunchDarkly::Integrations::Consul` and `LaunchDarkly::Integrations::DynamoDB` modules, and the reference guide [Persistent data stores](https://docs.launchdarkly.com/sdk/concepts/data-stores).
171171
- There is now a `LaunchDarkly::Integrations::Redis` module, which is the preferred method for creating a Redis feature store.
172172
- All of the database feature stores now support local caching not only for individual feature flag queries, but also for `all_flags_state`.
173173
- The `Config` property `data_source` is the new name for `update_processor` and `update_processor_factory`.
@@ -249,7 +249,7 @@ Fixed a regression in version 5.0.0 that could prevent the client from reconnect
249249
## [4.0.0] - 2018-05-10
250250

251251
### Changed:
252-
- To reduce the network bandwidth used for analytics events, feature request events are now sent as counters rather than individual events, and user details are now sent only at intervals rather than in each event. These behaviors can be modified through the LaunchDarkly UI and with the new configuration option `inline_users_in_events`. For more details, see [Analytics Data Stream Reference](https://docs.launchdarkly.com/v2.0/docs/analytics-data-stream-reference).
252+
- To reduce the network bandwidth used for analytics events, feature request events are now sent as counters rather than individual events, and user details are now sent only at intervals rather than in each event. These behaviors can be modified through the LaunchDarkly UI and with the new configuration option `inline_users_in_events`.
253253

254254
### Removed:
255255
- JRuby 1.7 is no longer supported.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Contributing to the LaunchDarkly Server-side SDK for Ruby
22
================================================
33

4-
LaunchDarkly has published an [SDK contributor's guide](https://docs.launchdarkly.com/docs/sdk-contributors-guide) that provides a detailed explanation of how our SDKs work. See below for additional information on how to contribute to this SDK.
4+
LaunchDarkly has published an [SDK contributor's guide](https://docs.launchdarkly.com/sdk/concepts/contributors-guide) that provides a detailed explanation of how our SDKs work. See below for additional information on how to contribute to this SDK.
55

66
Submitting bug reports and feature requests
77
------------------

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LaunchDarkly Server-side SDK for Ruby
1010

1111
LaunchDarkly overview
1212
-------------------------
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!
1414

1515
[![Twitter Follow](https://img.shields.io/twitter/follow/launchdarkly.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/intent/follow?screen_name=launchdarkly)
1616

@@ -22,7 +22,7 @@ This version of the LaunchDarkly SDK has a minimum Ruby version of 2.5.0, or 9.2
2222
Getting started
2323
-----------
2424

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.
2626

2727
Learn more
2828
-----------
@@ -49,7 +49,7 @@ About LaunchDarkly
4949
* 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?).
5050
* 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.
5151
* 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.
5353
* Explore LaunchDarkly
5454
* [launchdarkly.com](https://www.launchdarkly.com/ "LaunchDarkly Main Website") for more information
5555
* [docs.launchdarkly.com](https://docs.launchdarkly.com/ "LaunchDarkly Documentation") for our documentation and SDK reference guides

launchdarkly-server-sdk.gemspec

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
lib = File.expand_path("../lib", __FILE__)
44
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
55
require "ldclient-rb/version"
6+
require "rake"
67

78
# rubocop:disable Metrics/BlockLength
89
Gem::Specification.new do |spec|
@@ -15,9 +16,8 @@ Gem::Specification.new do |spec|
1516
spec.homepage = "https://github.com/launchdarkly/ruby-server-sdk"
1617
spec.license = "Apache-2.0"
1718

18-
spec.files = `git ls-files -z`.split("\x0")
19+
spec.files = FileList["lib/**/*", "README.md", "LICENSE.txt"]
1920
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
2121
spec.require_paths = ["lib"]
2222
spec.required_ruby_version = ">= 2.5.0"
2323

@@ -36,7 +36,9 @@ Gem::Specification.new do |spec|
3636

3737
spec.add_runtime_dependency "semantic", "~> 1.6"
3838
spec.add_runtime_dependency "concurrent-ruby", "~> 1.1"
39-
spec.add_runtime_dependency "ld-eventsource", "2.0.1"
39+
spec.add_runtime_dependency "ld-eventsource", "2.1.1"
40+
# Please keep ld-eventsource dependency as an exact version so that bugfixes to
41+
# that LD library are always associated with a new SDK version.
4042

4143
spec.add_runtime_dependency "json", "~> 2.3"
4244
spec.add_runtime_dependency "http", ">= 4.4.0", "< 6.0.0"

lib/ldclient-rb/config.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def stream?
110110
# Whether to use the LaunchDarkly relay proxy in daemon mode. In this mode, the client does not
111111
# use polling or streaming to get feature flag updates from the server, but instead reads them
112112
# 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).
115115
#
116116
# All other properties related to streaming or polling are ignored if this option is set to true.
117117
#
@@ -189,7 +189,7 @@ def offline?
189189
# from LaunchDarkly, and uses the last stored data when evaluating flags. Defaults to
190190
# {InMemoryFeatureStore}; for other implementations, see {LaunchDarkly::Integrations}.
191191
#
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).
193193
#
194194
# @return [LaunchDarkly::Interfaces::FeatureStore]
195195
#

lib/ldclient-rb/integrations/dynamodb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module DynamoDB
77
#
88
# Creates a DynamoDB-backed persistent feature store. For more details about how and why you can
99
# 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).
1111
#
1212
# To use this method, you must first install one of the AWS SDK gems: either `aws-sdk-dynamodb`, or
1313
# the full `aws-sdk`. Then, put the object returned by this method into the `feature_store` property

lib/ldclient-rb/integrations/redis.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def self.default_prefix
2525
#
2626
# Creates a Redis-backed persistent feature store. For more details about how and why you can
2727
# 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).
2929
#
3030
# To use this method, you must first have the `redis` and `connection-pool` gems installed. Then,
3131
# put the object returned by this method into the `feature_store` property of your

0 commit comments

Comments
 (0)