{"id":26667084,"url":"https://github.com/code-lever/ms-binary-resources","last_synced_at":"2025-03-25T19:36:11.137Z","repository":{"id":19489640,"uuid":"22735602","full_name":"code-lever/ms-binary-resources","owner":"code-lever","description":"A Ruby implementation of a reader for Microsoft's binary resource file format.","archived":false,"fork":false,"pushed_at":"2018-07-24T14:37:35.000Z","size":36,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T03:26:08.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/code-lever.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-07T20:31:10.000Z","updated_at":"2018-07-24T14:37:36.000Z","dependencies_parsed_at":"2022-08-20T13:00:15.221Z","dependency_job_id":null,"html_url":"https://github.com/code-lever/ms-binary-resources","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lever%2Fms-binary-resources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lever%2Fms-binary-resources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lever%2Fms-binary-resources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lever%2Fms-binary-resources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-lever","download_url":"https://codeload.github.com/code-lever/ms-binary-resources/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245532623,"owners_count":20630959,"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":[],"created_at":"2025-03-25T19:36:10.563Z","updated_at":"2025-03-25T19:36:11.128Z","avatar_url":"https://github.com/code-lever.png","language":"Ruby","readme":"# Ms::BinaryResources [![Build Status](https://travis-ci.org/code-lever/ms-binary-resources.png)](https://travis-ci.org/code-lever/ms-binary-resources) [![Code Climate](https://codeclimate.com/github/code-lever/ms-binary-resources.png)](https://codeclimate.com/github/code-lever/ms-binary-resources)\n\nA way to read Microsoft's binary resource files in Ruby.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ms-binary-resources'\n```\n\nAnd then execute:\n\n```\n$ bundle\n```\n\nOr install it yourself as:\n\n```\n$ gem install ms-binary-resources\n```\n\n## Usage\n\n```ruby\nreader = Ms::BinaryResources::Reader.new('/path/to/File.resources')\nreader.keys\n=\u003e ['key1', 'key2', ...]\nreader.key? 'key1'\n=\u003e true\nreader.key? 'keyxx'\n=\u003e false\nreader['key1']\n=\u003e 'some value'\nreader.type_of 'key2'\n=\u003e :int32\nreader['key2']\n=\u003e 8675309\n```\n\n## Caveats\n\nCurrently only string, uint and int value types are supported.  Pull requests with additional types are great, include tests!\n\n## Thanks\n\nThis is largely cribbed off of the [Mono Project's](https://github.com/mono/mono) class library implementation of ResourceReader and friends.\n\n## Contributing\n\n1. Fork it ( https://github.com/code-lever/ms-binary-resources/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-lever%2Fms-binary-resources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-lever%2Fms-binary-resources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-lever%2Fms-binary-resources/lists"}