{"id":15048261,"url":"https://github.com/github/bert","last_synced_at":"2025-10-04T08:31:08.082Z","repository":{"id":65974825,"uuid":"56352205","full_name":"github/bert","owner":"github","description":"BERT (Binary ERlang Term) serialization library for Ruby.","archived":false,"fork":true,"pushed_at":"2024-09-05T15:04:54.000Z","size":140,"stargazers_count":15,"open_issues_count":1,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-09-30T00:20:39.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mojombo/bert","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":"History.txt","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":"2016-04-15T21:59:42.000Z","updated_at":"2024-09-05T15:04:55.000Z","dependencies_parsed_at":"2023-02-19T18:01:15.803Z","dependency_job_id":null,"html_url":"https://github.com/github/bert","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fbert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fbert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fbert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fbert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/bert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235232440,"owners_count":18957057,"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":"2024-09-24T21:09:54.232Z","updated_at":"2025-10-04T08:31:02.756Z","avatar_url":"https://github.com/github.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"BERT\n====\n\nA BERT (Binary ERlang Term) serialization library for Ruby. It can\nencode Ruby objects into BERT format and decode BERT binaries into Ruby\nobjects.\n\nSee the BERT specification at [bert-rpc.org](http://bert-rpc.org).\n\nInstances of the following Ruby classes will be automatically converted to the\nproper simple BERT type:\n\n* Integer\n* Float\n* Symbol\n* Array\n* String\n\nInstances of the following Ruby classes will be automatically converted to the\nproper complex BERT type:\n\n* NilClass\n* TrueClass\n* FalseClass\n* Hash\n* Time\n* Regexp\n\nTo designate tuples, simply prefix an Array literal with a `t` or use the\nBERT::Tuple class:\n\n    t[:foo, [1, 2, 3]]\n    BERT::Tuple[:foo, [1, 2, 3]]\n\nBoth of these will be converted to (in Erlang syntax):\n\n    {foo, [1, 2, 3]}\n\n\nInstallation\n------------\n\n    gem install bert -s http://gemcutter.org\n\n\nUsage\n-----\n\n    require 'bert'\n\n    bert = BERT.encode(t[:user, {:name =\u003e 'TPW', :nick =\u003e 'mojombo'}])\n    # =\u003e \"\\203h\\002d\\000\\004userh\\003d\\000\\004bertd\\000\\004dictl\\000\\000\\\n          000\\002h\\002d\\000\\004namem\\000\\000\\000\\003TPWh\\002d\\000\\004nickm\\\n          000\\000\\000\\amojomboj\"\n\n    BERT.decode(bert)\n    # =\u003e t[:user, {:name=\u003e\"TPW\", :nick=\u003e\"mojombo\"}]\n\n\n\nNote on Patches/Pull Requests\n-----------------------------\n\n* Fork the project.\n* Make your feature addition or bug fix.\n* Add tests for it. This is important so I don't break it in a\n  future version unintentionally.\n* Commit, do not mess with rakefile, version, or history.\n  (if you want to have your own version, that is fine but\n   bump version in a commit by itself I can ignore when I pull)\n* Send me a pull request. Bonus points for topic branches.\n\n\nCopyright\n---------\n\nCopyright (c) 2009 Tom Preston-Werner. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fbert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fbert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fbert/lists"}