Sha256: 2dc228f8b3d9dfc17f6f3b00620bd5172abd2d5bf9d4e9318fb60161522e0590
Contents?: true
Size: 832 Bytes
Versions: 4
Compression:
Stored size: 832 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'yardview' require 'fileutils' port_num ||= 8808 opt = OptionParser.new opt.program_name = 'YardView' opt.version = YardView::VERSION opt.on('-p', '--port VAL', Integer) { |v| port_num = v } opt.parse!(ARGV) resource_xml = File.expand_path('../resources/gresources.xml', __dir__) resource_bin = File.expand_path('../gresource.bin', __dir__) system('glib-compile-resources', '--target', resource_bin, '--sourcedir', File.dirname(resource_xml), resource_xml) at_exit do FileUtils.rm_f(resource_bin) end app = YardView.application resource = Gio::Resource.load(resource_bin) Gio::Resources.register(resource) app.signal_connect :activate do |application| window = YardView::ApplicationWindow.new application, port: port_num window.present end app.run
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yardview_gtk3-0.5.0 | exe/yardview |
yardview_gtk3-0.4.4 | exe/yardview |
yardview_gtk3-0.4.3 | exe/yardview |
yardview_gtk3-0.4.2 | exe/yardview |