Sha256: e76c9d2c14127076ad5ff384d32fe1261a5d9856966a2afc2336af035847ff52

Contents?: true

Size: 833 Bytes

Versions: 6

Compression:

Stored size: 833 Bytes

Contents

add_pane do |pane|
  pane.height = 0.5
  pane.width = 0.4
  pane.top = 0
  pane.left = 0

  pane.highlight = false
  pane.title = "Current Time"

  pane.interval = 1
  pane.content do |content|
    date = `date`

    content.add_row(date)
  end
end

add_pane do |pane|
  pane.height = 0.5
  pane.width = 0.6
  pane.top = 0
  pane.left = 0.4

  pane.highlight = false
  pane.title = "Open PRs - fastlane/fastlane"

  pane.interval = 60 * 5
  pane.content do |content|
		require 'uri'
		require 'net/http'
		require 'json'

		uri = URI('https://api.github.com/repos/fastlane/fastlane/pulls')
		res = Net::HTTP.get_response(uri)

		JSON.parse(res.body).each do |pr|
			display = "[fg=cyan]##{pr['number']} - [fg=white]#{pr['title']}"
    	content.add_row(display)
		end
  end
	pane.selection do |pr|
		`open #{pr['html_url']}`
	end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wassup-0.4.1 examples/starter/Supfile
wassup-0.4.0 examples/starter/Supfile
wassup-0.3.2 examples/starter/Supfile
wassup-0.3.1 examples/starter/Supfile
wassup-0.3.0 examples/starter/Supfile
wassup-0.2.1 examples/starter/Supfile