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

Warn when activating a gem with known avisories #8

Open
nogweii opened this issue Mar 28, 2013 · 3 comments
Open

Warn when activating a gem with known avisories #8

nogweii opened this issue Mar 28, 2013 · 3 comments

Comments

@nogweii
Copy link

nogweii commented Mar 28, 2013

With this plugin installed, Rubygems should issue a warning whenever it activates a gem with known advisories.

@postmodern
Copy link
Member

Last I heard, RubyGems only enables plugins when running the gem command.

@nogweii
Copy link
Author

nogweii commented Mar 28, 2013

I was thinking more along the lines of hooking into RubyGems's overriden Kernel#require. Reading the source, the best place would be to include the logic into Gem::Specification#activate, but I don't know if there is a hook of sorts for that.

@postmodern
Copy link
Member

Ah that's an interesting idea. I might make a separate library that checks your installed gems and provides such a monkey-patch.

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

No branches or pull requests

2 participants