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
Refactor to keep feature simple #36
Conversation
…ture under Halite and some method changes. Feature: - `Halite::Features::Logger` to `Halite::Logger` - `Halite::Features.register` to `Halite.register_feature` - `Halite::Features[]/[]?` to `Halite.features/features?` - `Halite::Features.avaiables` to `Halite.has_feature?` - `Halite::Feature::Interceptor::Chain` to `Halite::Feature::Chain`
d06f394
to
1ec66b8
Compare
…d merge Halite::MimeTypes.register_adapter/register_alias into Halite::MimeType.register
918e07e
to
e46f84d
Compare
I found the name The main concern for me was the extensive use of class variables, particularly in modules. What do you think, is it the desired behavior? |
Also a thought, what do you think of defining features and behaviors in properties in a |
I tried use feaure class as argument, but it will be complex, eg:
|
This only apply in monitoring case, if some feature changed value of request, we can not apply it to the other featues when spawning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It Seems ready to merge.
So sorry to refactor, i hope you are not use unstable master branch.
Feature:
Halite::Features::Logger
toHalite::Logger
Halite::Features.register
toHalite.register_feature
Halite::Features[]/[]?
toHalite.features/features?
Halite::Features.avaiables
toHalite.has_feature?
Halite::Feature::Interceptor::Chain
toHalite::Feature::Chain
Logger
Halite::Logger
toHalite::Logging
to better understandThis changes was not impact the usage with
.logger
method in Chainable module.MimeType
Halite::MimeTypes
toHalite::MimeType
Halite::MimeTypes.register_adapter/register_alias
intoHalite::MimeType.register