Skip to content

Releases: launchdarkly/ruby-server-sdk

6.0.0

26 Jan 22:43
Compare
Choose a tag to compare

[6.0.0] - 2021-01-26

Added:

  • Added a socket_factory configuration option which can be used for socket creation by the HTTP client if provided. The value of socket_factory must be an object providing an open(uri, timeout) method and returning a connected socket.

Changed:

  • Switched to the http gem instead of socketry (with a custom http client) for streaming, and instead of Net::HTTP for polling / events.
  • Dropped support for Ruby < version 2.5
  • Dropped support for JRuby < version 9.2
  • Changed the default polling domain from app.launchdarkly.com to sdk.launchdarkly.com.

5.8.2

20 Jan 00:36
Compare
Choose a tag to compare

[5.8.2] - 2021-01-19

Fixed:

  • Fixed a warning within the Redis integration when run with version 4.3 or later of the redis gem. (Thanks, emancu!)

5.8.1

09 Nov 22:06
Compare
Choose a tag to compare

[5.8.1] - 2020-11-09

Fixed:

5.8.0

27 May 20:57
Compare
Choose a tag to compare

[5.8.0] - 2020-05-27

Added:

  • In LaunchDarkly::Integrations::Redis::new_feature_store, if you pass in an externally created pool, you can now set the new option pool_shutdown_on_close to false to indicate that the SDK should not shut down this pool if the SDK is shut down. The default behavior, as before, is that it will be shut down. (Thanks, jacobthemyth!)

5.7.4

04 May 22:02
Compare
Choose a tag to compare

[5.7.4] - 2020-05-04

Fixed:

  • Setting a user's custom property explicitly to nil, rather than omitting it entirely or setting it to an empty hash, would cause the SDK to log an error and drop the current batch of analytics events. Now, it will be treated the same as an empty hash. (#147)

5.7.3

27 Apr 22:45
Compare
Choose a tag to compare

[5.7.3] - 2020-04-27

Changed:

  • Previously, installing the SDK in an environment that did not have openssl would cause a failure at build time. The SDK still requires openssl at runtime, but this check has been removed because it caused the rake problem mentioned below, and because openssl is normally bundled in modern Ruby versions.

Fixed:

  • The LDClient constructor will fail immediately with a descriptive ArgumentError if you provide a nil SDK key in a configuration that requires an SDK key (that is, a configuration that will require communicating with LaunchDarkly services). Previously, it would still fail, but without a clear error message. You are still allowed to omit the SDK key in an offline configuration. (#154)
  • Removed a hidden dependency on rake which could cause your build to fail if you had a dependency on this SDK and you did not have rake installed. (#155)
  • Previously a clause in a feature flag rule that used a string operator (such as "starts with") or a numeric operator (such as "greater than") could cause evaluation of the flag to completely fail and return a default value if the value on the right-hand side of the expression did not have the right data type-- for instance, "greater than" with a string value. The LaunchDarkly dashboard does not allow creation of such a rule, but it might be possible to do so via the REST API; the correct behavior of the SDK is to simply treat the expression as a non-match.

5.7.2

27 Mar 21:17
Compare
Choose a tag to compare

[5.7.2] - 2020-03-27

Fixed:

  • Fixed a bug in the 5.7.0 and 5.7.1 releases that caused analytics events not to be sent unless diagnostic events were explicitly disabled. This also caused an error to be logged: undefined method started?.

5.7.1

18 Mar 17:28
Compare
Choose a tag to compare

[5.7.1] - 2020-03-18

Please use 5.7.2 instead of this release.

Fixed:

  • The backoff delay logic for reconnecting after a stream failure was broken so that if a failure occurred after a stream had been active for at least 60 seconds, retries would use no delay, potentially causing a flood of requests and a spike in CPU usage. This bug was introduced in version 5.5.0 of the SDK.

5.7.0

10 Mar 22:53
Compare
Choose a tag to compare

[5.7.0] - 2020-03-10

Please use 5.7.2 instead of this release.

Added:

  • The SDK now periodically sends diagnostic data to LaunchDarkly, describing the version and configuration of the SDK, the architecture and version of the runtime platform, and performance statistics. No credentials, hostnames, or other identifiable values are included. This behavior can be disabled with Config.diagnostic_opt_out or configured with Config.diagnostic_recording_interval.
  • New Config properties wrapper_name and wrapper_version allow a library that uses the Ruby SDK to identify itself for usage data if desired.

Removed:

  • Removed an unused dependency on rake.

5.6.2

15 Jan 19:24
Compare
Choose a tag to compare

[5.6.2] - 2020-01-15

Fixed:

  • The SDK now specifies a uniquely identifiable request header when sending events to LaunchDarkly to ensure that events are only processed once, even if the SDK sends them two times due to a failed initial attempt.