{"id":25003785,"url":"https://github.com/lpogic/white_gold","last_synced_at":"2025-03-29T22:12:42.149Z","repository":{"id":195405066,"uuid":"674273325","full_name":"lpogic/white_gold","owner":"lpogic","description":"TGUI based Ruby gem for quick native application developing","archived":false,"fork":false,"pushed_at":"2024-05-30T20:47:56.000Z","size":29606,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T23:06:15.652Z","etag":null,"topics":["dsl","gui","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lpogic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-03T14:37:03.000Z","updated_at":"2024-05-30T20:47:59.000Z","dependencies_parsed_at":"2023-10-14T22:00:09.367Z","dependency_job_id":"1d310a58-388a-4a42-ba2f-e8cd63b59874","html_url":"https://github.com/lpogic/white_gold","commit_stats":{"total_commits":55,"total_committers":2,"mean_commits":27.5,"dds":0.09090909090909094,"last_synced_commit":"43554e73ddb2b06332c709833fcee91640633746"},"previous_names":["lpogic/white_gold"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Fwhite_gold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Fwhite_gold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Fwhite_gold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Fwhite_gold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpogic","download_url":"https://codeload.github.com/lpogic/white_gold/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249221,"owners_count":20747168,"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":["dsl","gui","ruby"],"created_at":"2025-02-04T22:39:02.818Z","updated_at":"2025-03-29T22:12:41.830Z","avatar_url":"https://github.com/lpogic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"white_gold - TGUI based Ruby gem for quick native application developing\n===\n\nRuby gem for building pure ruby graphical user interface.\u003cbr\u003e\nUses [TGUI](https://tgui.eu/) \u0026 [SFML](https://www.sfml-dev.org/) as a backend.\u003cbr\u003e\nDedicated to creating simple applications and learning programming.\n\n### 1. Taste\n```RUBY\nrequire 'white_gold'\n\ntitle! \"Greeting app\"\ntext_size! 30\n\nlabel! text: \"Enter your name:\", position: [100, 150], size: [340, 44]\n@name = editbox! position: [375, 146], size: [280, 44]\nbutton! text: \"Then press the button\", position: [200, 250] do\n  on_press! do\n    text = @name.text\n    text = \"world\" if text.strip.empty?\n    gui.messagebox! text: \"Hello #{text}!\", position: :center do\n      button! text: \"Close\", on_press: proc{ window.close }\n    end\n  end\nend\n```\n\n### Output:\u003cbr\u003e\n\u003cimg src=\"./.github/img/screen_1.PNG\" width=\"30%\"\u003e   \u003cimg src=\"./.github/img/screen_2.PNG\" width=\"30%\"\u003e\n\n\n\nCheck out [sample](https://github.com/lpogic/white_gold/tree/master/sample) for more.\n\nRequirements\n---\n- Ruby \u003e= 3.2.2\n- Fiddle \u003e= 1.1.1\n\nBinaries for Windows and Linux are bundled with the gem.\n\nInstallation\n---\n1) From official\n```\ngem install white_gold\n```\n2) From source\n```\ngit clone https://github.com/lpogic/white_gold\ncd white_gold\ngem build white_gold.gemspec\ngem install white_gold-0.1.0.gem\n```\n\n### 2. Basic usage\n```RUBY\nrequire 'white_gold'\n\nbutton! text: \"Exit\", position: :center, on_press: proc.exit\n\ndef exit\n  window.close\nend\n```\n\n### 3. Advanced usage\n```RUBY\nrequire 'white_gold/master'\n\nclass FirstPage \u003c Page\n  def build\n    button! text: \"Second Page\", position: :center, on_press: proc{ go SecondPage }\n  end\n\nend\n\nclass SecondPage \u003c Page\n  def build\n    button! text: \"Exit\", position: :center, on_press: proc.exit\n  end\n\n  def exit\n    window.close\n  end\nend\n\nWhiteGold.new.run FirstPage\n```\n\n\nCheck out [documentation](https://github.com/lpogic/white_gold/tree/master/doc/wiki) for more info.\n\nStatus\n---\nA hobby project.\n\nAuthors\n---\n- Łukasz Pomietło (oficjalnyadreslukasza@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpogic%2Fwhite_gold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpogic%2Fwhite_gold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpogic%2Fwhite_gold/lists"}