
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Add this line to your application's Gemfile:
gem 'drink-menu'
And then execute:
$ bundle
Or install it yourself as:
$ gem install drink-menu
Drink Menu separates menu layout from menu definition. Menu definition looks like:
class MainMenu
extend DrinkMenu::MenuBuilder
menuItem :progress do |item|
end
menu :sites_list, itemsFromCollection: Staticly.sitesList, titleProperty: :name
menuItem :open_site, title: 'Open Site', submenu: :sites_list
menuItem :create_site, title: 'Create Site'
menuItem :export, title: 'Export to Folder...'
menuItem :import, title: 'Import Folder as Site...'
menuItem :force_rebuild, title: 'Force Rebuild'
menuItem :about, title: 'About Staticly'
menuItem :quit, title: 'Quit'
iconImage = NSImage.imageNamed "status-icon-off"
iconImage.template = true
end
and then layout is as simple as:
class MainMenu
extend DrinkMenu::MenuBuilder
statusBarMenu :main_menu, icon: iconImage, statusItemViewClass: StatusItemView do
open_site
create_site
___
export
import
force_rebuild
___
about
quit
end
end
See the example for basic usage. More detailed documentation & examples coming soon.
See my recent blog post for a bit more information.
To run our example apps:
platform=osx example=basic_main_menu rake
You can replace the value of example
with any folder under the examples
directory to run that example.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.