{"id":28194339,"url":"https://github.com/humansinput/dialogbind","last_synced_at":"2025-06-11T16:07:57.212Z","repository":{"id":62557133,"uuid":"198077028","full_name":"humansinput/dialogbind","owner":"humansinput","description":"DialogBind provides a Ruby API that wraps around Linux, macOS and Windows message box-generating tools.","archived":false,"fork":false,"pushed_at":"2019-08-15T14:18:25.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-09T11:39:29.536Z","etag":null,"topics":["gui","linux","macos","ruby","ruby-application","rubygem","windows"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/humansinput.png","metadata":{"files":{"readme":"README.asciidoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-21T16:00:36.000Z","updated_at":"2022-08-22T02:37:19.000Z","dependencies_parsed_at":"2022-11-03T06:30:19.756Z","dependency_job_id":null,"html_url":"https://github.com/humansinput/dialogbind","commit_stats":null,"previous_names":["timkoi/dialogbind"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/humansinput/dialogbind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fdialogbind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fdialogbind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fdialogbind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fdialogbind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/humansinput","download_url":"https://codeload.github.com/humansinput/dialogbind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fdialogbind/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259293400,"owners_count":22835604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gui","linux","macos","ruby","ruby-application","rubygem","windows"],"created_at":"2025-05-16T13:11:53.800Z","updated_at":"2025-06-11T16:07:57.193Z","avatar_url":"https://github.com/humansinput.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= DialogBind\n\n_Copyright (C) Tim K 2018-2019 timprogrammer@rambler.ru. Licensed under MIT License._\nhttps://rubygems.org/gems/dialogbind\n\n*DialogBind* is a library wrapping around message box displaying tools (zenity and xmessage) on Linux, macOS and Windows written in Ruby.\n\n== A simple example\n\n[source,ruby]\n----\nrequire 'dialogbind'\n\nif guiyesno('Would you like me to show you a random number?', 'Message') == false then\n\tguierror('You have selected no.')\nelse\n\tguiputs(rand(20).to_s, 'Your random number')\nend\n----\nThis tiny program in Ruby will show a question dialog with yes and no buttons, with title \"Message\" and text \"Would you like me to show you a random number?\". That dialog will return either true if yes was clicked, otherwise, it returns false. If false is returned, an error with text \"You have selected no.\" pops up. Otherwise, a random number from 0 to 19 is generated and is displayed in an information message box with title \"Your random number\".\n\n== Installing\n\nInstall RubyGem:\n\n[source,bash]\n----\nsudo gem install dialogbind\n----\n\nAnd then include it in your Ruby code the following way:\n\n[source,ruby]\n----\nrequire 'dialogbind'\n----\n\nThat's it! You can use it from your code, but it will only work on Linux, macOS, Windows and FreeBSD. Other platforms are not supported right now.\n\n== Docs\n\nDocs are available on RubyDoc: http://www.rubydoc.info/gems/dialogbind/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumansinput%2Fdialogbind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumansinput%2Fdialogbind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumansinput%2Fdialogbind/lists"}