Skip to content

Commit 8149da1

Browse files
authored
fix: Calling stop in ldd mode no longer raises an exception (#237)
1 parent 1b2ba7b commit 8149da1

File tree

6 files changed

+37
-4
lines changed

6 files changed

+37
-4
lines changed

.github/actions/publish/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ runs:
1010
steps:
1111
- name: Build gemspec
1212
shell: bash
13-
run: gem build ld-eventsource.gemspec
13+
run: gem build launchdarkly-server-sdk.gemspec
1414

1515
- name: Publish Library
1616
shell: bash
1717
if: ${{ inputs.dry_run == 'false' }}
18-
run: gem push ld-eventsource-*.gem
18+
run: gem push launchdarkly-server-sdk-*.gem

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
All notable changes to the LaunchDarkly Ruby SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [7.3.2](https://github.com/launchdarkly/ruby-server-sdk/compare/7.3.1...7.3.2) (2023-12-26)
6+
7+
8+
### Bug Fixes
9+
10+
* Update missed version bump to LaunchDarkly::VERSION ([#239](https://github.com/launchdarkly/ruby-server-sdk/issues/239)) ([dc44559](https://github.com/launchdarkly/ruby-server-sdk/commit/dc44559a993f8cf2320532ef456421c103f87154))
11+
12+
## [7.3.1](https://github.com/launchdarkly/ruby-server-sdk/compare/7.3.0...7.3.1) (2023-12-26)
13+
14+
15+
### Bug Fixes
16+
17+
* Calling stop in ldd mode no longer raises an exception ([#235](https://github.com/launchdarkly/ruby-server-sdk/issues/235)) ([eeb9906](https://github.com/launchdarkly/ruby-server-sdk/commit/eeb9906768f0519ac8d39def50226ed6bc8cb9ba))
18+
519
## [8.0.0] - 2023-10-17
620
The latest version of this SDK supports the ability to manage migrations or modernizations, using migration flags. You might use this functionality if you are optimizing queries, upgrading to new tech stacks, migrating from one database to another, or other similar technology changes. Migration flags are part of LaunchDarkly's Early Access Program. This feature is available to all LaunchDarkly customers but may undergo additional changes before it is finalized.
721

lib/ldclient-rb/ldclient.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def initialize(sdk_key, config = Config.default, wait_for_sec = 5)
9393

9494
if @config.use_ldd?
9595
@config.logger.info { "[LDClient] Started LaunchDarkly Client in LDD mode" }
96+
@data_source = NullUpdateProcessor.new
9697
return # requestor and update processor are not used in this mode
9798
end
9899

lib/ldclient-rb/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module LaunchDarkly
2-
VERSION = "8.0.0"
2+
VERSION = "8.0.0" # x-release-please-version
33
end

release-please-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"bump-minor-pre-major": true,
66
"versioning": "default",
77
"include-component-in-tag": false,
8-
"include-v-in-tag": false
8+
"include-v-in-tag": false,
9+
"extra-files": ["lib/ldclient-rb/version.rb"]
910
}
1011
}
1112
}

spec/ldclient_spec.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,23 @@ module LaunchDarkly
4545
end
4646
end
4747

48+
context "client can be stopped" do
49+
it "when in online mode" do
50+
client = subject.new("sdk-key", Config.new)
51+
client.close()
52+
end
53+
54+
it "when in offline mode" do
55+
client = subject.new("sdk-key", Config.new(offline: true))
56+
client.close()
57+
end
58+
59+
it "when in ldd mode" do
60+
client = subject.new("sdk-key", Config.new(use_ldd: true))
61+
client.close()
62+
end
63+
end
64+
4865
context "secure_mode_hash" do
4966
it "will return the expected value for a known message and secret" do
5067
ensure_close(subject.new("secret", test_config)) do |client|

0 commit comments

Comments
 (0)