Skip to content
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,13 @@ on:
- "**.md"

jobs:
build-linux-oldest:
build-linux:
uses: ./.github/workflows/build-gem.yml
strategy:
matrix:
version: ["3.2", "jruby-9.4"]
with:
version: "3.2"

build-linux-latest:
uses: ./.github/workflows/build-gem.yml
with:
version: "3.2"

build-linux-jruby:
uses: ./.github/workflows/build-gem.yml
with:
version: "jruby-9.4"
version: ${{ matrix.version }}

build-docs:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions lib/ldclient-rb/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Config
# @option opts [String] :payload_filter_key See {#payload_filter_key}
# @option opts [Boolean] :omit_anonymous_contexts See {#omit_anonymous_contexts}
# @option hooks [Array<Interfaces::Hooks::Hook]
# @option plugins [Array<Interfaces::Plugins::Plugin]
#
def initialize(opts = {})
@base_uri = (opts[:base_uri] || Config.default_base_uri).chomp("/")
Expand Down Expand Up @@ -79,6 +80,7 @@ def initialize(opts = {})
@application = LaunchDarkly::Impl::Util.validate_application_info(opts[:application] || {}, @logger)
@payload_filter_key = LaunchDarkly::Impl::Util.validate_payload_filter_key(opts[:payload_filter_key] , @logger)
@hooks = (opts[:hooks] || []).keep_if { |hook| hook.is_a? Interfaces::Hooks::Hook }
@plugins = (opts[:plugins] || []).keep_if { |plugin| plugin.is_a? Interfaces::Plugins::Plugin }
@omit_anonymous_contexts = opts.has_key?(:omit_anonymous_contexts) && opts[:omit_anonymous_contexts]
@data_source_update_sink = nil
@instance_id = nil
Expand Down Expand Up @@ -412,6 +414,14 @@ def diagnostic_opt_out?
#
attr_reader :hooks

#
# Initial set of plugins for the client.
#
# Plugins provide an interface which allows for initialization, access to credentials, and hook registration
# in a single interface.
#
attr_reader :plugins

#
# Sets whether anonymous contexts should be omitted from index and identify events.
#
Expand Down
Loading