Develop BitBar plugins faster with Ruby

in #ruby8 years ago (edited)

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!

Coin Marketplace

STEEM 0.21
TRX 0.20
JST 0.034
BTC 99163.21
ETH 3283.22
USDT 1.00
SBD 3.05