launchdarkly-server-sdk 5.8.1 → 5.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -1
- data/.ldrelease/build-docs.sh +18 -0
- data/.ldrelease/config.yml +8 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/docs/Makefile +26 -0
- data/docs/index.md +9 -0
- data/lib/ldclient-rb/impl/integrations/redis_impl.rb +3 -1
- data/lib/ldclient-rb/version.rb +1 -1
- metadata +9 -10
- data/.yardopts +0 -9
- data/scripts/gendocs.sh +0 -11
- data/scripts/release.sh +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 509c387994cfb92e5d258eeb2190532f87a33805527eeba659a78472efe76831
|
4
|
+
data.tar.gz: edabc361b4728b6228136cd79171e11cd22f05b78453f7b0f4b3b513cf2e0d02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67e083a20014a4e9c9f8b9dbadec403563f2802191f8bdf844da86f7800076ef584c860541c3dc76472b2c79ad289c3558832d50482daa882577e8dc18e5b59f
|
7
|
+
data.tar.gz: c0fcaca18d915e9aadc53bca4ef609aa04da63a0aca5aae6826ee43caa6d2110dc268848fb6886cfdb1b96753dfafa3236162ead4d4e4ab67888f2ef1e89f37f
|
data/.gitignore
CHANGED
@@ -0,0 +1,18 @@
|
|
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 *
|
data/.ldrelease/config.yml
CHANGED
@@ -13,5 +13,13 @@ template:
|
|
13
13
|
env:
|
14
14
|
LD_SKIP_DATABASE_TESTS: 1 # Don't run Redis/Consul/DynamoDB tests in release; they are run in CI
|
15
15
|
|
16
|
+
circleci:
|
17
|
+
linux:
|
18
|
+
image: circleci/ruby:2.6.2-stretch
|
19
|
+
context: org-global
|
20
|
+
|
21
|
+
documentation:
|
22
|
+
githubPages: true
|
23
|
+
|
16
24
|
sdk:
|
17
25
|
displayName: "Ruby"
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
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
|
+
## [5.8.2] - 2021-01-19
|
6
|
+
### Fixed:
|
7
|
+
- Fixed a warning within the Redis integration when run with version 4.3 or later of the `redis` gem. (Thanks, [emancu](https://github.com/launchdarkly/ruby-server-sdk/pull/167)!)
|
8
|
+
|
9
|
+
|
10
|
+
## [5.8.1] - 2020-11-09
|
11
|
+
### Fixed:
|
12
|
+
- Updated `json` gem to patch [CVE-2020-10663](https://nvd.nist.gov/vuln/detail/CVE-2020-10663).
|
13
|
+
|
14
|
+
|
5
15
|
## [5.8.0] - 2020-05-27
|
6
16
|
### Added:
|
7
17
|
- 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](https://github.com/launchdarkly/ruby-server-sdk/pull/158)!)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -5,6 +5,8 @@ LaunchDarkly Server-side SDK for Ruby
|
|
5
5
|
|
6
6
|
[![Circle CI](https://circleci.com/gh/launchdarkly/ruby-server-sdk/tree/master.svg?style=svg)](https://circleci.com/gh/launchdarkly/ruby-server-sdk/tree/master)
|
7
7
|
[![Security](https://hakiri.io/github/launchdarkly/ruby-server-sdk/master.svg)](https://hakiri.io/github/launchdarkly/ruby-server-sdk/master)
|
8
|
+
[![RubyDoc](https://img.shields.io/static/v1?label=docs+-+all+versions&message=reference&color=00add8)](https://www.rubydoc.info/gems/launchdarkly-server-sdk)
|
9
|
+
[![GitHub Pages](https://img.shields.io/static/v1?label=docs+-+latest&message=reference&color=00add8)](https://launchdarkly.github.io/ruby-server-sdk)
|
8
10
|
|
9
11
|
LaunchDarkly overview
|
10
12
|
-------------------------
|
@@ -27,7 +29,7 @@ Learn more
|
|
27
29
|
|
28
30
|
Check out our [documentation](http://docs.launchdarkly.com) for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the [reference guide for this SDK](http://docs.launchdarkly.com/docs/ruby-sdk-reference).
|
29
31
|
|
30
|
-
Generated API documentation is on [RubyDoc.info](https://www.rubydoc.info/gems/launchdarkly-server-sdk).
|
32
|
+
Generated API documentation for all versions of the SDK is on [RubyDoc.info](https://www.rubydoc.info/gems/launchdarkly-server-sdk). The API documentation for the latest version is also on [GitHub Pages](https://launchdarkly.github.io/ruby-server-sdk).
|
31
33
|
|
32
34
|
Testing
|
33
35
|
-------
|
data/docs/Makefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
|
2
|
+
ifeq ($(LD_RELEASE_VERSION),)
|
3
|
+
TITLE=LaunchDarkly Ruby SDK
|
4
|
+
else
|
5
|
+
TITLE=LaunchDarkly Ruby SDK ($(LD_RELEASE_VERSION))
|
6
|
+
endif
|
7
|
+
|
8
|
+
.PHONY: dependencies html
|
9
|
+
|
10
|
+
html: dependencies
|
11
|
+
rm -rf ./build
|
12
|
+
cd .. && yard doc \
|
13
|
+
-o docs/build/html \
|
14
|
+
--title "$(TITLE)" \
|
15
|
+
--no-private \
|
16
|
+
--markup markdown \
|
17
|
+
--embed-mixins \
|
18
|
+
-r docs/index.md \
|
19
|
+
lib/*.rb \
|
20
|
+
lib/**/*.rb \
|
21
|
+
lib/**/**/*.rb \
|
22
|
+
lib/**/**/**/*.rb
|
23
|
+
|
24
|
+
dependencies:
|
25
|
+
gem install --conservative yard
|
26
|
+
gem install --conservative redcarpet # provides Markdown formatting
|
data/docs/index.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# LaunchDarkly Server-side SDK for Ruby
|
2
|
+
|
3
|
+
This generated API documentation lists all types and methods in the SDK.
|
4
|
+
|
5
|
+
The API documentation for the most recent SDK release is hosted on [GitHub Pages](https://launchdarkly.github.io/ruby-server-sdk). API documentation for current and past releases is hosted on [RubyDoc.info](https://www.rubydoc.info/gems/launchdarkly-server-sdk).
|
6
|
+
|
7
|
+
Source code and readme: [GitHub](https://github.com/launchdarkly/ruby-server-sdk)
|
8
|
+
|
9
|
+
SDK reference guide: [docs.launchdarkly.com](https://docs.launchdarkly.com/sdk/server-side/ruby)
|
@@ -115,7 +115,9 @@ module LaunchDarkly
|
|
115
115
|
end
|
116
116
|
|
117
117
|
def initialized_internal?
|
118
|
-
with_connection
|
118
|
+
with_connection do |redis|
|
119
|
+
redis.respond_to?(:exists?) ? redis.exists?(inited_key) : redis.exists(inited_key)
|
120
|
+
end
|
119
121
|
end
|
120
122
|
|
121
123
|
def stop
|
data/lib/ldclient-rb/version.rb
CHANGED
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: 5.8.
|
4
|
+
version: 5.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LaunchDarkly
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-dynamodb
|
@@ -233,11 +233,11 @@ files:
|
|
233
233
|
- ".github/pull_request_template.md"
|
234
234
|
- ".gitignore"
|
235
235
|
- ".hound.yml"
|
236
|
+
- ".ldrelease/build-docs.sh"
|
236
237
|
- ".ldrelease/config.yml"
|
237
238
|
- ".rspec"
|
238
239
|
- ".rubocop.yml"
|
239
240
|
- ".simplecov"
|
240
|
-
- ".yardopts"
|
241
241
|
- CHANGELOG.md
|
242
242
|
- CODEOWNERS
|
243
243
|
- CONTRIBUTING.md
|
@@ -246,6 +246,8 @@ files:
|
|
246
246
|
- LICENSE.txt
|
247
247
|
- README.md
|
248
248
|
- azure-pipelines.yml
|
249
|
+
- docs/Makefile
|
250
|
+
- docs/index.md
|
249
251
|
- launchdarkly-server-sdk.gemspec
|
250
252
|
- lib/launchdarkly-server-sdk.rb
|
251
253
|
- lib/ldclient-rb.rb
|
@@ -286,8 +288,6 @@ files:
|
|
286
288
|
- lib/ldclient-rb/user_filter.rb
|
287
289
|
- lib/ldclient-rb/util.rb
|
288
290
|
- lib/ldclient-rb/version.rb
|
289
|
-
- scripts/gendocs.sh
|
290
|
-
- scripts/release.sh
|
291
291
|
- spec/config_spec.rb
|
292
292
|
- spec/diagnostic_events_spec.rb
|
293
293
|
- spec/evaluation_spec.rb
|
@@ -326,7 +326,7 @@ homepage: https://github.com/launchdarkly/ruby-server-sdk
|
|
326
326
|
licenses:
|
327
327
|
- Apache-2.0
|
328
328
|
metadata: {}
|
329
|
-
post_install_message:
|
329
|
+
post_install_message:
|
330
330
|
rdoc_options: []
|
331
331
|
require_paths:
|
332
332
|
- lib
|
@@ -341,9 +341,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
341
341
|
- !ruby/object:Gem::Version
|
342
342
|
version: '0'
|
343
343
|
requirements: []
|
344
|
-
|
345
|
-
|
346
|
-
signing_key:
|
344
|
+
rubygems_version: 3.1.2
|
345
|
+
signing_key:
|
347
346
|
specification_version: 4
|
348
347
|
summary: LaunchDarkly SDK for Ruby
|
349
348
|
test_files:
|
data/.yardopts
DELETED
data/scripts/gendocs.sh
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
# Use this script to generate documentation locally in ./doc so it can be proofed before release.
|
4
|
-
# After release, documentation will be visible at https://www.rubydoc.info/gems/launchdarkly-server-sdk
|
5
|
-
|
6
|
-
gem install --conservative yard
|
7
|
-
gem install --conservative redcarpet # provides Markdown formatting
|
8
|
-
|
9
|
-
rm -rf doc/*
|
10
|
-
|
11
|
-
yard doc
|
data/scripts/release.sh
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
# This script updates the version for the launchdarkly-server-sdk library and releases it to RubyGems
|
3
|
-
# It will only work if you have the proper credentials set up in ~/.gem/credentials
|
4
|
-
|
5
|
-
# It takes exactly one argument: the new version.
|
6
|
-
# It should be run from the root of this git repo like this:
|
7
|
-
# ./scripts/release.sh 4.0.9
|
8
|
-
|
9
|
-
# When done you should commit and push the changes made.
|
10
|
-
|
11
|
-
set -uxe
|
12
|
-
echo "Starting ruby-server-sdk release."
|
13
|
-
|
14
|
-
VERSION=$1
|
15
|
-
|
16
|
-
#Update version in lib/ldclient-rb/version.rb
|
17
|
-
VERSION_RB_TEMP=./version.rb.tmp
|
18
|
-
sed "s/VERSION =.*/VERSION = \"${VERSION}\"/g" lib/ldclient-rb/version.rb > ${VERSION_RB_TEMP}
|
19
|
-
mv ${VERSION_RB_TEMP} lib/ldclient-rb/version.rb
|
20
|
-
|
21
|
-
# Build Ruby Gem
|
22
|
-
gem build launchdarkly-server-sdk.gemspec
|
23
|
-
|
24
|
-
# Publish Ruby Gem
|
25
|
-
gem push launchdarkly-server-sdk-${VERSION}.gem
|
26
|
-
|
27
|
-
echo "Done with ruby-server-sdk release"
|