knoopx avatar

Develop BitBar plugins faster with Ruby

knoopx

Published: 20 Jul 2016 › Updated: 20 Jul 2016Develop BitBar plugins faster with Ruby

Develop BitBar plugins faster with Ruby

I just published bitbar-ruby, a ruby gem for faster BitBar plugin development.
This library will be used as the foundation for the next versions of my two STEEM plugins:

https://steemit.com/steem/@knoopx/get-your-steeem-wallet-details-in-your-os-x-menu-bar-bitbar-plugin
https://steemit.com/steem/@knoopx/get-the-current-steem-value-in-your-os-x-menu-bar-bitbar-plugin

Source code is available at github:

https://github.com/knoopx/bitbar-ruby

To use it just just install the gem:
gem install bitbar

And write some plugin:

#!/usr/bin/env ruby
require 'bitbar'
require 'open-uri'
require 'base64'

BitBar::Menu.new do
  item "One", size: 18
  item "Two"
  separator
  item "Dropdown" do
    item "Three"
    item "Four"
  end
  separator
  item image: Base64.strict_encode64(open("https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png").read)
end

Happy BitBar hacking!

Leave Develop BitBar plugins faster with Ruby to:

Written by

Read more #ruby posts


Best Posts From knoopx

We have not curated any of knoopx's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From knoopx