{"id":17020008,"url":"https://github.com/ljcooke/nodaire","last_synced_at":"2025-04-12T10:11:11.019Z","repository":{"id":56885653,"uuid":"202342431","full_name":"ljcooke/nodaire","owner":"ljcooke","description":"Ruby parsers for text file formats.","archived":false,"fork":false,"pushed_at":"2021-07-18T12:00:39.000Z","size":242,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T15:47:59.404Z","etag":null,"topics":["parsers","ruby-library"],"latest_commit_sha":null,"homepage":"https://ljcooke.github.io/nodaire/","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/ljcooke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-08-14T12:05:40.000Z","updated_at":"2021-12-25T22:21:56.000Z","dependencies_parsed_at":"2022-08-21T00:20:35.334Z","dependency_job_id":null,"html_url":"https://github.com/ljcooke/nodaire","commit_stats":null,"previous_names":["slisne/nodaire"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljcooke%2Fnodaire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljcooke%2Fnodaire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljcooke%2Fnodaire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljcooke%2Fnodaire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljcooke","download_url":"https://codeload.github.com/ljcooke/nodaire/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550633,"owners_count":21122933,"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":["parsers","ruby-library"],"created_at":"2024-10-14T06:50:38.963Z","updated_at":"2025-04-12T10:11:10.997Z","avatar_url":"https://github.com/ljcooke.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nodaire\n\n[![Gem Version](https://badge.fury.io/rb/nodaire.svg)](https://rubygems.org/gems/nodaire)\n\nNodaire is a collection of text file parsers.\nIt supports Ruby 2.5.0 or greater.\n\n__Note__: This is a new gem, and the interface is not yet stable.\nExpect breaking API changes before v1.0.0 is released.\n\n## File formats\n\nNodaire supports the following text file formats:\n\n| File format | Documentation and examples | Origin |\n|---|---|---|\n| __Indental__ | [`Nodaire::Indental`](https://www.rubydoc.info/gems/nodaire/Nodaire/Indental) | https://wiki.xxiivv.com/#indental |\n| __Tablatal__ | [`Nodaire::Tablatal`](https://www.rubydoc.info/gems/nodaire/Nodaire/Tablatal) | https://wiki.xxiivv.com/#tablatal |\n\n## Install\n\nInstall `nodaire` from [RubyGems](https://rubygems.org/gems/nodaire):\n\n```sh\ngem install nodaire\n```\n\n## Documentation\n\n[Code documentation](https://www.rubydoc.info/gems/nodaire) is available.\n\nKeep reading below for examples of how to use Nodaire.\n\n## Usage example\n\n```ruby\nrequire 'nodaire/indental'\n\nsource = \u003c\u003c~NDTL\n  NAME\n    KEY : VALUE\n    LIST\n      ITEM1\n      ITEM2\nNDTL\n\ndoc = Nodaire::Indental.parse(source)\n\ndoc.valid?\n#=\u003e true\n\ndoc.categories\n#=\u003e [\"NAME\"]\n\ndoc['NAME']['KEY']\n#=\u003e \"VALUE\"\n\ndoc.to_h\n#=\u003e {\"NAME\" =\u003e {\"KEY\"=\u003e\"VALUE\", \"LIST\"=\u003e[\"ITEM1\", \"ITEM2\"]}}\n\ndoc.to_json\n#=\u003e '{\"NAME\":{\"KEY\":\"VALUE\",\"LIST\":[\"ITEM1\",\"ITEM2\"]}}'\n```\n\n## Development\n\nTo run the latest source code, check out the Git repository:\n\n```sh\ngit clone https://github.com/ljcooke/nodaire.git\n```\n\nInstall the dependencies using Bundler:\n\n```sh\ngem install bundler\nbundle install\n```\n\nAnalyse the code and run unit tests using Bundler:\n\n```sh\nbundle exec rake rubocop\nbundle exec rake spec\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljcooke%2Fnodaire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljcooke%2Fnodaire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljcooke%2Fnodaire/lists"}