https://github.com/emancu/toml-rb
A parser for TOML using Citrus library.
https://github.com/emancu/toml-rb
Keywords from Contributors
sinatra grape rubygem ruby-gem activerecord static-code-analysis rubocop code-formatter oauth2-server oauth2-provider
Last synced: about 17 hours ago
JSON representation
Repository metadata
A parser for TOML using Citrus library.
- Host: GitHub
- URL: https://github.com/emancu/toml-rb
- Owner: emancu
- License: mit
- Created: 2013-02-24T16:56:27.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2026-04-28T09:39:14.000Z (25 days ago)
- Last Synced: 2026-04-29T09:06:54.967Z (25 days ago)
- Language: Ruby
- Size: 314 KB
- Stars: 118
- Watchers: 3
- Forks: 38
- Open Issues: 11
- Releases: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md

toml-rb
A TOML parser using Citrus library.
TOML specs supported: 1.0.0
Installation
$ gem install toml-rb
Parser Usage
require 'toml-rb'
# From a file!
path = File.join(File.dirname(__FILE__), 'path', 'to', 'file')
TomlRB.load_file(path)
# From a stream!
stream = <<-EOS
title = "wow!"
[awesome]
you = true
others = false
EOS
TomlRB.parse(stream)
# => {"title"=>"wow!", "awesome"=>{"you"=>true, "others"=>false}}
# You want symbols as your keys? No problem!
TomlRB.load_file(path, symbolize_keys: true)
# Works the same for TomlRB.parse
Dumper Usage
require 'toml-rb'
# Simple example
TomlRB.dump( simple: true)
# => "simple = true\n"
# Complex example
hash = {
"title"=>"wow!",
"awesome"=> {
"you"=>true,
"others"=>false
}
}
TomlRB.dump(hash)
# => "title = \"wow!\"\n[awesome]\nothers = false\nyou = true\n"
Conformance
toml-rb is exercised against the official
toml-test conformance suite for both
TOML 1.0.0 and TOML 1.1.0. The harness lives in:
tool/toml-test-decoder— toml-test decoder shim..github/workflows/conformance.yml— CI workflow (per-version matrix)..github/toml-test-skip-1.0.txtand.github/toml-test-skip-1.1.txt—
skip-lists of currently-failing tests.
The skip-lists are a living gap report: every entry is a known limitation in
the current parser. The goal for v5.0.0 is empty skip-lists — full
conformance against both spec versions.
Contributing
- Fork it
- Create your feature branch
git checkout -b my-new-feature - Add tests and commit your changes
git commit -am 'Add some feature' - Run tests
$ rake - Push the branch
git push origin my-new-feature - Create new Pull Request
License
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Owner metadata
- Name: Emiliano Mancuso
- Login: emancu
- Email:
- Kind: user
- Description:
- Website:
- Location: London
- Twitter: emancu
- Company: @surgeventures
- Icon url: https://avatars.githubusercontent.com/u/56375?v=4
- Repositories: 51
- Last ynced at: 2024-12-06T21:48:16.621Z
- Profile URL: https://github.com/emancu
GitHub Events
Total
- Release event: 1
- Delete event: 4
- Pull request event: 8
- Fork event: 1
- Issues event: 5
- Watch event: 8
- Issue comment event: 4
- Push event: 7
- Pull request review comment event: 1
- Create event: 7
Last Year
- Delete event: 2
- Pull request event: 4
- Fork event: 1
- Issues event: 3
- Watch event: 4
- Issue comment event: 2
- Push event: 3
- Pull request review comment event: 1
- Create event: 4
Committers metadata
Last synced: 1 day ago
Total Commits: 334
Total Committers: 30
Avg Commits per committer: 11.133
Development Distribution Score (DDS): 0.323
Commits in past year: 16
Committers in past year: 1
Avg Commits per committer in past year: 16.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Emiliano Mancuso | e****o@g****m | 226 |
| tonchis | l****y@g****m | 38 |
| timcolonel | t****n@o****m | 16 |
| Raimonds Simanovskis | r****s@g****m | 9 |
| yassun | y****v@o****m | 8 |
| Jānis Vanags | j****s@g****m | 5 |
| Grey Baker | g****l@g****m | 3 |
| James White | d****e@g****m | 3 |
| Artem Ignatyev | a****v@r****t | 2 |
| Bernard Lambeau | b****u@g****m | 2 |
| Shan-Yung Yang | s****g@r****m | 2 |
| Tim Smith | t****h@c****o | 2 |
| Alex Yang | a****9@g****m | 1 |
| Andrew Nesbitt | a****z@g****m | 1 |
| Edward Betts | e****d@4****m | 1 |
| Igor Drozdov | i****v@g****m | 1 |
| Igor Victor | g****a@y****u | 1 |
| Jānis Liepa | j****a@e****m | 1 |
| Katsuhiko YOSHIDA | c****d@g****m | 1 |
| Nagesh A T | 7****p | 1 |
| Nicolas Leger | n****r | 1 |
| Ole Reifschneider | m****l@o****e | 1 |
| ReadmeCritic | f****t@g****m | 1 |
| Rolands Bondars | r****s@e****m | 1 |
| Ryan Fortman | r****n@p****m | 1 |
| Sigurd Ljødal | s****d@l****o | 1 |
| Stefan Sundin | g****t@s****m | 1 |
| Tim Meusel | t****m@b****e | 1 |
| dreid | d****d@p****m | 1 |
| jakecoffman | j****e@j****m | 1 |
Committer domains:
- eazybi.com: 2
- jakecoffman.com: 1
- pilot.com: 1
- bastelfreak.de: 1
- stefansundin.com: 1
- ljodal.no: 1
- parchment.com: 1
- ole-reifschneider.de: 1
- yandex.ru: 1
- 4angle.com: 1
- chef.io: 1
- rayark.com: 1
- riskmethods.net: 1
Issue and Pull Request metadata
Last synced: 25 days ago
Total issues: 64
Total pull requests: 75
Average time to close issues: 2 months
Average time to close pull requests: 18 days
Total issue authors: 34
Total pull request authors: 28
Average comments per issue: 1.81
Average comments per pull request: 1.01
Merged pull request: 64
Bot issues: 0
Bot pull requests: 0
Past year issues: 14
Past year pull requests: 6
Past year average time to close issues: 3 days
Past year average time to close pull requests: about 7 hours
Past year issue authors: 4
Past year pull request authors: 2
Past year average comments per issue: 0.14
Past year average comments per pull request: 0.17
Past year merged pull request: 4
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- emancu (13)
- rsim (11)
- bararchy (5)
- AxelAtS (4)
- znz (2)
- kplimack (1)
- tsudoko (1)
- amon-sha (1)
- jakobs (1)
- funzoneq (1)
- markhallen (1)
- thavaahariharangit (1)
- dannystaple (1)
- Jefffrey (1)
- alvaromorales (1)
Top Pull Request Authors
- emancu (33)
- rsim (5)
- yassun4dev (4)
- jva (3)
- greysteil (2)
- timotheeguerin (2)
- ukalwa (2)
- timon (2)
- gogainda (2)
- shanyungyang (2)
- tatzyr (1)
- bastelfreak (1)
- rodzhers (1)
- jakecoffman (1)
- kyoshidajp (1)
Top Issue Labels
- enhancement (13)
- bug (3)
- wontfix (2)
Top Pull Request Labels
- hacktoberfest-accepted (1)
Package metadata
- Total packages: 12
-
Total downloads:
- rubygems: 147,424,603 total
- Total docker downloads: 875,560,538
- Total dependent packages: 63 (may contain duplicates)
- Total dependent repositories: 1,524 (may contain duplicates)
- Total versions: 86
- Total maintainers: 1
gem.coop: toml-rb
A Toml parser using Citrus parsing library.
- Homepage: https://github.com/emancu/toml-rb
- Documentation: http://www.rubydoc.info/gems/toml-rb/
- Licenses: MIT
- Latest release: 4.2.0 (published 27 days ago)
- Last Synced: 2026-05-22T14:00:45.729Z (1 day ago)
- Versions: 38
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 73,716,866 Total
- Docker Downloads: 437,780,269
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.17%
- Docker downloads count: 0.271%
- Downloads: 0.41%
- Maintainers (1)
rubygems.org: toml-rb
A Toml parser using Citrus parsing library.
- Homepage: https://github.com/emancu/toml-rb
- Documentation: http://www.rubydoc.info/gems/toml-rb/
- Licenses: MIT
- Latest release: 4.2.0 (published 27 days ago)
- Last Synced: 2026-05-21T22:35:50.353Z (2 days ago)
- Versions: 38
- Dependent Packages: 63
- Dependent Repositories: 1,524
- Downloads: 73,707,737 Total
- Docker Downloads: 437,780,269
-
Rankings:
- Docker downloads count: 0.335%
- Dependent packages count: 0.453%
- Downloads: 0.496%
- Dependent repos count: 0.792%
- Average: 1.947%
- Forks count: 4.188%
- Stargazers count: 5.42%
- Maintainers (1)
debian-10: ruby-toml-rb
- Homepage: http://github.com/emancu/toml-rb
- Documentation: https://packages.debian.org/buster/ruby-toml-rb
- Licenses:
- Latest release: 1.0.0-2 (published 3 months ago)
- Last Synced: 2026-03-14T03:02:25.666Z (2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-11: ruby-toml-rb
- Homepage: http://github.com/emancu/toml-rb
- Documentation: https://packages.debian.org/bullseye/ruby-toml-rb
- Licenses:
- Latest release: 1.0.0-2 (published 3 months ago)
- Last Synced: 2026-03-14T07:19:07.580Z (2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-toml-rb
- Homepage: https://github.com/emancu/toml-rb
- Documentation: https://packages.debian.org/bookworm/ruby-toml-rb
- Licenses:
- Latest release: 2.2.0-1 (published 3 months ago)
- Last Synced: 2026-03-13T23:47:39.208Z (2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-13: ruby-toml-rb
- Homepage: https://github.com/emancu/toml-rb
- Documentation: https://packages.debian.org/trixie/ruby-toml-rb
- Licenses:
- Latest release: 2.2.0-1 (published 3 months ago)
- Last Synced: 2026-03-14T18:11:57.035Z (2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- minitest ~> 5.7 development
- rake >= 0 development
- standard ~> 1.4 development
- citrus ~> 3.0, > 3.0
- actions/checkout v2 composite
- github/codeql-action/analyze v1 composite
- github/codeql-action/autobuild v1 composite
- github/codeql-action/init v1 composite
- actions/checkout v2 composite
- ruby/setup-ruby v1 composite
Score: 29.007002584934604