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

Register plugin into registry #838

Merged
merged 4 commits into from
Mar 10, 2016
Merged

Conversation

tagomoris
Copy link
Member

To make straightforward dependencies from kinds of plugins to plugin.rb, and reduce duplicated implementation between plugin.rb and registry.rb.

* remove original plugin dictionaries and replace them with registry
* move registries for parser/formatter to plugin.rb
case
when obj.is_a?(Class)
obj.new
when obj.respond_to?(:call)
Copy link
Member

Choose a reason for hiding this comment

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

The number of arity check is needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct. Better to have.

@tagomoris
Copy link
Member Author

@repeatedly Can I merge after fixes of your points?
This change is basis for following many changes.

@repeatedly
Copy link
Member

Yes.

@sonots Could you also check this?

@sonots
Copy link
Member

sonots commented Mar 10, 2016

LGTM

@tagomoris
Copy link
Member Author

OK. I'll merge this after green (Travis is already ok. Waiting appveyor).

@tagomoris
Copy link
Member Author

An Appveyor task in a job is failing weird error and there's no way to rebuild it... I'll merge this :P

tagomoris added a commit that referenced this pull request Mar 10, 2016
@tagomoris tagomoris merged commit c10ae6e into master Mar 10, 2016
@tagomoris tagomoris deleted the register-plugin-into-registry branch May 17, 2016 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants