Skip to content

Commit 199213e

Browse files
prepare 5.8.2 release (#168)
1 parent 6e388d0 commit 199213e

File tree

9 files changed

+66
-53
lines changed

9 files changed

+66
-53
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/.yardoc
33
/_yardoc/
44
/coverage/
5-
/doc/
5+
/docs/build
66
/pkg/
77
/spec/reports/
88
/tmp/

.ldrelease/build-docs.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 *

.ldrelease/config.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ publications:
88
- url: https://www.rubydoc.info/gems/launchdarkly-server-sdk
99
description: documentation
1010

11-
template:
12-
name: ruby
13-
env:
14-
LD_SKIP_DATABASE_TESTS: 1 # Don't run Redis/Consul/DynamoDB tests in release; they are run in CI
11+
circleci:
12+
linux:
13+
image: circleci/ruby:2.6.2-stretch
14+
context: org-global
15+
env:
16+
LD_SKIP_DATABASE_TESTS: "1" # Don't run Redis/Consul/DynamoDB tests in release; they are run in CI
17+
18+
documentation:
19+
githubPages: true
1520

1621
sdk:
1722
displayName: "Ruby"

.yardopts

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ LaunchDarkly Server-side SDK for Ruby
55

66
[![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)
77
[![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)
810

911
LaunchDarkly overview
1012
-------------------------
@@ -27,7 +29,7 @@ Learn more
2729

2830
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).
2931

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).
3133

3234
Testing
3335
-------

docs/Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

docs/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

scripts/gendocs.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/release.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)