Added OpenFeature::Provider#status reader that returns an OpenFeature::ProviderStatus.
Added OpenFeature::Provider#init as an overridable method on Providers that can perform any initialization work for the given provider. This method accepts the global EvaluationContext and has a void return type. The default implementation is a no-op.
Added OpenFeature::Provider#shutdown as an overridable method on Providers that can perform any cleanup work for the given provider. This method has a void return type and the default implementation is a no-op.
Added OpenFeature.shutdown to invoke the current provider's shutdown method.
Changed
Breaking Changed minimum supported Ruby version to 3.1.
BreakingOpenFeature::Provider changed from a module interface to an abstract class to support default method implementations.
BreakingOpenFeature::Provider.initialize now must accept an OpenFeature::ProviderStatus. Any providers may pass this in during initialization. If you need to do additional setup in Provider.init, we recommend you pass OpenFeature::ProviderStatus::NotReady here.
[0.3.0] - 2024-01-24
Added
OpenFeature::Provider#status
reader that returns anOpenFeature::ProviderStatus
.OpenFeature::Provider#init
as an overridable method onProvider
s that can perform any initialization work for the given provider. This method accepts the globalEvaluationContext
and has avoid
return type. The default implementation is a no-op.OpenFeature::Provider#shutdown
as an overridable method onProvider
s that can perform any cleanup work for the given provider. This method has avoid
return type and the default implementation is a no-op.OpenFeature.shutdown
to invoke the current provider'sshutdown
method.Changed
OpenFeature::Provider
changed from a module interface to an abstract class to support default method implementations.OpenFeature::Provider.initialize
now must accept anOpenFeature::ProviderStatus
. Any providers may pass this in during initialization. If you need to do additional setup inProvider.init
, we recommend you passOpenFeature::ProviderStatus::NotReady
here.