{"id":17569030,"url":"https://github.com/riywo/traildb-ruby","last_synced_at":"2026-07-21T09:33:19.098Z","repository":{"id":59157923,"uuid":"105636630","full_name":"riywo/traildb-ruby","owner":"riywo","description":"Ruby bindings for TrailDB","archived":false,"fork":false,"pushed_at":"2017-11-16T13:44:33.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-07-04T23:08:05.510Z","etag":null,"topics":["traildb"],"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/riywo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-10-03T09:55:48.000Z","updated_at":"2017-11-16T14:10:10.000Z","dependencies_parsed_at":"2022-09-13T20:03:29.065Z","dependency_job_id":null,"html_url":"https://github.com/riywo/traildb-ruby","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/riywo/traildb-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Ftraildb-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Ftraildb-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Ftraildb-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Ftraildb-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riywo","download_url":"https://codeload.github.com/riywo/traildb-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Ftraildb-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35719682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-21T02:00:06.728Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["traildb"],"created_at":"2024-10-21T17:08:42.783Z","updated_at":"2026-07-21T09:33:19.069Z","avatar_url":"https://github.com/riywo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Traildb\n\nOperate TrailDB from Ruby code using this gem.\n\nhttp://traildb.io/\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'traildb'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install traildb\n\n## Usage\n\n```ruby\nrequire 'traildb'\n\ncookie = '12345678-1234-5678-1234-567812345678'\ncons = Traildb::TrailDBConstructor.new('foo.tdb', ['field1', 'field2'])\ncons.add(cookie, 123, ['a'])\ncons.add(cookie, 124, ['b', 'c'])\ntdb = cons.finalize\n\ntdb.trails.each do |cookie, trail|\n  trail.each do |event|\n    puts \"#{cookie} #{event}\"\n  end\nend\n\n#=\u003e 12345678-1234-5678-1234-567812345678 #\u003cstruct time=123, field1=\"a\", field2=\"\"\u003e\n#=\u003e 12345678-1234-5678-1234-567812345678 #\u003cstruct time=124, field1=\"b\", field2=\"c\"\u003e\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\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`, which will 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\nBug reports and pull requests are welcome on GitHub at https://github.com/riywo/traildb.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friywo%2Ftraildb-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friywo%2Ftraildb-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friywo%2Ftraildb-ruby/lists"}