Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split registry management DSL out into module #25

Merged
merged 2 commits into from
Mar 3, 2016

Conversation

drewdeponte
Copy link
Owner

Why you made the change:

Did this because we wanted to enable people to define additional toggle
registries within their applications.

How the change addresses the need:

This enables them doing so by simply including the new
Togls::ReleaseToggleRegistryManager module in a class that they define
which should represent their additional toggle registry. Example:

class MyApp::Togls
  include ::Togls::ReleaseToggleRegistrtyManager
end

MyApp::Togls.features do
  feature(:foo).on
  feature(:bar).off
end

if MyApp::Togls.feature(:foo).on?
...
end

Why you made the change:

Did this because we wanted to enable people to define additional toggle
registries within their applications.

How the change addresses the need:

This enables them doing so by simply including the new
Togls::ReleaseToggleRegistryManager module in a class that they define
which should represent their additional toggle registry. Example:

class MyApp::Togls
  include ::Togls::ReleaseToggleRegistrtyManager
end

MyApp::Togls.features do
  feature(:foo).on
  feature(:bar).off
end

if MyApp::Togls.feature(:foo).on?
...
end
@RyanHedges RyanHedges self-assigned this Mar 3, 2016
@@ -157,4 +157,25 @@
}).to_stdout
end
end

describe "creating additional toggle registries" do
describe "defining feature toggles in additional registry" do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can probably make this the wrapping describe and nuke the creating additional toggle registries

Why you made the change:

I did this to make it clearer as to what it is actually testing. This is
good all around because software is all about communication of intent,
:-)
@RyanHedges
Copy link
Contributor

:+1

drewdeponte added a commit that referenced this pull request Mar 3, 2016
Split registry management DSL out into module
@drewdeponte drewdeponte merged commit 27ce627 into master Mar 3, 2016
@drewdeponte drewdeponte deleted the switch_to_include_style_dsl branch March 3, 2016 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants