Notifications of updates is something that works quite well already with desktop and mobile applications, specially in the Apple environment. I always wondered if we could have something similar for Gems.
After seeing a tweet from a friend raising the same question, and while having some spare time to hack on it, I decided to tackle and make something.
I just wish I could get ruby gems security notices without me having to check twitter accts, follow blogs or join and follow mailing lists
— Marcos Toledo (@mtoledo) February 15, 2013
So I came up with Gem Attack!, a Sinatra application that allows developers to create Gem update notifications.
The workflow simplest as possible:
- Go to Gem Attack!
- Sign up with your GitHub account
- Create a project hold the notifications
- Create the notifications
- Add the 5 lines snippet to your Gem
And that’s it, you’re done. Now users will get notifications whenever they require your gem.
The snippet doesn’t add any new dependency to your gem.
By the way, although I’ve come up only with a Ruby snippet, it can be used in any project using any language. If you came up with a snippet for any other language, let me know in the comments or anywhere else and I’ll add it to to the application.
The Sinatra code is open-source and lives in Gem Attack! GitHub repository.





