{"id":22970851,"url":"https://github.com/fbernier/tomlrb","last_synced_at":"2025-05-15T11:09:03.762Z","repository":{"id":30091105,"uuid":"33640768","full_name":"fbernier/tomlrb","owner":"fbernier","description":"A Racc based TOML parser","archived":false,"fork":false,"pushed_at":"2025-04-24T02:23:16.000Z","size":247,"stargazers_count":68,"open_issues_count":1,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-29T06:32:57.087Z","etag":null,"topics":["lalr1","parser","racc","ruby","toml"],"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/fbernier.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2015-04-09T01:03:13.000Z","updated_at":"2025-04-24T02:23:20.000Z","dependencies_parsed_at":"2024-06-18T13:58:08.051Z","dependency_job_id":"083cd2eb-c05b-40f4-8d02-131827d3a01c","html_url":"https://github.com/fbernier/tomlrb","commit_stats":{"total_commits":230,"total_committers":14,"mean_commits":"16.428571428571427","dds":0.4304347826086956,"last_synced_commit":"4edc50c931c1791f9d264e041e71a87b9bbeb65f"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbernier%2Ftomlrb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbernier%2Ftomlrb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbernier%2Ftomlrb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbernier%2Ftomlrb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbernier","download_url":"https://codeload.github.com/fbernier/tomlrb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251658202,"owners_count":21622819,"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":["lalr1","parser","racc","ruby","toml"],"created_at":"2024-12-14T22:14:48.489Z","updated_at":"2025-05-15T11:09:03.755Z","avatar_url":"https://github.com/fbernier.png","language":"Ruby","readme":"# Tomlrb\n\n[![Code Climate](https://codeclimate.com/github/fbernier/tomlrb/badges/gpa.svg)](https://codeclimate.com/github/fbernier/tomlrb)\n[![Gem Version](https://badge.fury.io/rb/tomlrb.svg)](http://badge.fury.io/rb/tomlrb)\n[![Build status](https://github.com/fbernier/tomlrb/workflows/ci/badge.svg)](https://github.com/fbernier/tomlrb/actions)\n\nA Racc based [TOML](https://github.com/toml-lang/toml) Ruby parser supporting the 1.0.0 version of the spec.\n\n## TODO\n\n* Dumper\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'tomlrb'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install tomlrb\n\n## Usage\n\n```ruby\nTomlrb.parse(\"[toml]\\na = [\\\"array\\\", 123]\")\n```\n\nor\n\n```ruby\nTomlrb.load_file('my_file', symbolize_keys: true)\n```\n\n## Benchmark\n\nYou can run the benchmark against the only other v0.5.0 compliant parser to my knowledge with `ruby benchmarks/bench.rb`.\n\nHere are the results on my machine:\n\n```\nWarming up --------------------------------------\n      emancu/toml-rb     1.000  i/100ms\n     fbernier/tomlrb    33.000  i/100ms\nCalculating -------------------------------------\n      emancu/toml-rb     15.597  (± 6.4%) i/s -     78.000  in   5.020321s\n     fbernier/tomlrb    348.307  (± 5.2%) i/s -      1.749k in   5.034878s\n\nComparison:\n     fbernier/tomlrb:      348.3 i/s\n      emancu/toml-rb:       15.6 i/s - 22.33x  (± 0.00) slower\n\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.\n\nDo not forget to regenerate the parser when you modify rules in the `parser.y` file using `rake compile`.\n\nRun the tests using `rake test`.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/tomlrb/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\n## Thanks\n\nThanks to [@jpbougie](https://github.com/jpbougie) for the crash course on  the Chomsky hierarchy and general tips.\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbernier%2Ftomlrb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbernier%2Ftomlrb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbernier%2Ftomlrb/lists"}