launchdarkly-server-sdk 6.2.1 → 6.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c3e33076372820b2ecde009b3effb174d633fee79cb700380e1b887f6f1876c
4
- data.tar.gz: 30b62850e576db2710058de74bf28c1f95ef72e79479326df6214577c343d100
3
+ metadata.gz: eef5d4b08484f02739bfab4d151f5212624cba09157e756e0126603ccacf0a31
4
+ data.tar.gz: c0510cc29bbb40dd18dc3428803d0b6a33d1c9df868a4ac43caa801c9e3329f0
5
5
  SHA512:
6
- metadata.gz: b93a893777b34b7eb0774d150cbef556166852afb9bdebed78293b62ddc0c7f8639a4a789dc74655d461120b8720123ff687d851d873d2074ced86611b635cad
7
- data.tar.gz: 90aa095737b094516659bd63b6987a6a523e5f20a83eeef3793ae9c667b5d950c7f494e7a7e44d655a5f7e6b2a0865e1cbeca0d35c8ec16ee8b084a7756027da
6
+ metadata.gz: 338a0e3189764f8c5cfe1034ac6602050430a70468da33688953385322c8c94df60919ad04707e7504d6653a51b6928ea0d0fb121518fbdb5fd7ade9e418fa6e
7
+ data.tar.gz: 94d7650238107eadc7cb2846b826816fe01fe6ee3f421a1a396821681ae8e2b3854c6675bede18cf7a7abf391164123b838dca615bb8404910e07ce350071d02
data/.circleci/config.yml CHANGED
@@ -20,7 +20,7 @@ jobs:
20
20
  LD_RELEASE_DOCS_TITLE: ""
21
21
  LD_RELEASE_PROJECT: "ruby-server-sdk"
22
22
  LD_RELEASE_PROJECT_TEMPLATE: "ruby"
23
- LD_RELEASE_VERSION: "6.2.1"
23
+ LD_RELEASE_VERSION: "6.2.2"
24
24
  LD_SKIP_DATABASE_TESTS: "1"
25
25
  steps:
26
26
  - checkout
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to the LaunchDarkly Ruby SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## [6.2.1] - 2021-07-15
6
+ ### Changed:
7
+ - If `variation` or `variation_detail` is called with a user object that has no `key` (an invalid condition that will always result in the default value being returned), the SDK now logs a `warn`-level message to alert you to this incorrect usage. This makes the Ruby SDK's logging behavior consistent with the other server-side LaunchDarkly SDKs. ([#177](https://github.com/launchdarkly/ruby-server-sdk/issues/177))
8
+
5
9
  ## [6.2.0] - 2021-06-17
6
10
  ### Added:
7
11
  - The SDK now supports the ability to control the proportion of traffic allocation to an experiment. This works in conjunction with a new platform feature now available to early access customers.
@@ -60,9 +60,9 @@ module LaunchDarkly
60
60
  headers: headers
61
61
  })
62
62
  status = response.status.code
63
- @config.logger.debug { "[LDClient] Got response from uri: #{uri}\n\tstatus code: #{status}\n\theaders: #{response.headers}\n\tbody: #{res.to_s}" }
64
63
  # must fully read body for persistent connections
65
64
  body = response.to_s
65
+ @config.logger.debug { "[LDClient] Got response from uri: #{uri}\n\tstatus code: #{status}\n\theaders: #{response.headers.to_h}\n\tbody: #{body}" }
66
66
  if status == 304 && !cached.nil?
67
67
  body = cached.body
68
68
  else
@@ -1,3 +1,3 @@
1
1
  module LaunchDarkly
2
- VERSION = "6.2.1"
2
+ VERSION = "6.2.2"
3
3
  end
@@ -40,6 +40,19 @@ describe LaunchDarkly::Requestor do
40
40
  end
41
41
  end
42
42
 
43
+ it "logs debug output" do
44
+ logger = ::Logger.new($stdout)
45
+ logger.level = ::Logger::DEBUG
46
+ with_server do |server|
47
+ with_requestor(server.base_uri.to_s, { logger: logger }) do |requestor|
48
+ server.setup_ok_response("/", { flags: { x: { key: "y" } } }.to_json)
49
+ expect do
50
+ requestor.request_all_data()
51
+ end.to output(/\[LDClient\] Got response from uri\:/).to_stdout_from_any_process
52
+ end
53
+ end
54
+ end
55
+
43
56
  it "sends etag from previous response" do
44
57
  etag = "xyz"
45
58
  with_server do |server|
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.1
4
+ version: 6.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - LaunchDarkly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-15 00:00:00.000000000 Z
11
+ date: 2021-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-dynamodb