| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 24 Dec 2025 03:38:57 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091127183506
location: https://web.archive.org/web/20091127183506/https://github.com/mojombo/bert
server-timing: captures_list;dur=0.660780, exclusion.robots;dur=0.046391, exclusion.robots.policy;dur=0.034779, esindex;dur=0.010809, cdx.remote;dur=4.710199, LoadShardBlock;dur=254.616810, PetaboxLoader3.datanode;dur=88.271905, PetaboxLoader3.resolve;dur=86.525117
x-app-server: wwwb-app54-dc6
x-ts: 302
x-tr: 295
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app54; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 24 Dec 2025 03:38:58 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Fri, 27 Nov 2009 18:35:04 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "20275cc77a05b4b1789e2ca6201ad1e8"
x-archive-orig-x-runtime: 131ms
x-archive-orig-content-length: 28829
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 27 Nov 2009 18:35:06 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_13_20091127172930_crawl101_IndexOnly-c/52_13_20091127183413_crawl101.arc.gz
server-timing: captures_list;dur=0.753111, exclusion.robots;dur=0.034017, exclusion.robots.policy;dur=0.011924, esindex;dur=0.012851, cdx.remote;dur=7.539935, LoadShardBlock;dur=187.365328, PetaboxLoader3.datanode;dur=111.455228, PetaboxLoader3.resolve;dur=332.818148, load_resource;dur=343.774103
x-app-server: wwwb-app54-dc6
x-ts: 200
x-tr: 621
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
mojombo's bert at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| Description: | BERT (Binary ERlang Term) serialization library for Ruby. edit |
| Homepage: | edit |
| Public Clone URL: |
git://github.com/mojombo/bert.git
Give this clone URL to anyone.
git clone git://github.com/mojombo/bert.git
|
| Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:mojombo/bert.git
|
bert /
| name | age | message | |
|---|---|---|---|
| |
.document | Wed Oct 07 19:18:16 -0700 2009 | Initial commit to bert. [mojombo] |
| |
.gitignore | Sat Oct 24 00:42:12 -0700 2009 | remove reliance on erlectricity [mojombo] |
| |
History.txt | Mon Nov 23 11:14:31 -0800 2009 | require stringio [mojombo] |
| |
LICENSE | Wed Oct 07 19:18:16 -0700 2009 | Initial commit to bert. [mojombo] |
| |
README.md | Sat Oct 24 00:57:40 -0700 2009 | readme tweaks [mojombo] |
| |
Rakefile | Mon Oct 26 08:16:57 -0700 2009 | make decoder bench test C ext and Ruby version [mojombo] |
| |
VERSION | Wed Oct 28 11:58:06 -0700 2009 | Version bump to 1.1.0 [mojombo] |
| |
bench/ | Mon Oct 26 08:16:57 -0700 2009 | make decoder bench test C ext and Ruby version [mojombo] |
| |
bert.gemspec | Wed Oct 28 11:58:15 -0700 2009 | Regenerated gemspec for version 1.1.0 [mojombo] |
| |
ext/ | Tue Oct 27 21:56:17 -0700 2009 | create binary string directly from pData [mojombo] |
| |
lib/ | Mon Nov 23 11:14:31 -0800 2009 | require stringio [mojombo] |
| |
test/ | Wed Oct 28 11:53:35 -0700 2009 | fix bignum encoding. closes gh-1. [mojombo] |
README.md
BERT
A BERT (Binary ERlang Term) serialization library for Ruby. It can encode Ruby objects into BERT format and decode BERT binaries into Ruby objects.
See the BERT specification at bert-rpc.org.
Instances of the following Ruby classes will be automatically converted to the proper simple BERT type:
- Fixnum
- Float
- Symbol
- Array
- String
Instances of the following Ruby classes will be automatically converted to the proper complex BERT type:
- NilClass
- TrueClass
- FalseClass
- Hash
- Time
- Regexp
To designate tuples, simply prefix an Array literal with a t or use the
BERT::Tuple class:
t[:foo, [1, 2, 3]]
BERT::Tuple[:foo, [1, 2, 3]]
Both of these will be converted to (in Erlang syntax):
{foo, [1, 2, 3]}
Installation
gem install bert -s https://gemcutter.org
Usage
require 'bert'
bert = BERT.encode(t[:user, {:name => 'TPW', :nick => 'mojombo'}])
# => "\203h\002d\000\004userh\002d\000\004dictl\000\000\000\002h\002d
\000\004namem\000\000\000\003TPWh\002d\000\004nickm\000\000\000
\amojomboj"
BERT.decode(bert)
# => t[:user, {:name=>"TPW", :nick=>"mojombo"}]
Note on Patches/Pull Requests
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don't break it in a future version unintentionally.
- Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
Copyright
Copyright (c) 2009 Tom Preston-Werner. See LICENSE for details.
This feature is coming soon. Sit tight!







