| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 22 Dec 2025 18:57:30 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100107004950
location: https://web.archive.org/web/20100107004950/https://github.com/mojombo/bert
server-timing: captures_list;dur=0.514983, exclusion.robots;dur=0.036595, exclusion.robots.policy;dur=0.026472, esindex;dur=0.008736, cdx.remote;dur=14.945274, LoadShardBlock;dur=218.985454, PetaboxLoader3.datanode;dur=117.680024, PetaboxLoader3.resolve;dur=42.100191
x-app-server: wwwb-app213-dc8
x-ts: 302
x-tr: 255
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app213; 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: Mon, 22 Dec 2025 18:57:30 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Thu, 07 Jan 2010 00:49:49 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "58334e3e4342e56c3fcf52015622ec0f"
x-archive-orig-x-runtime: 146ms
x-archive-orig-content-length: 26685
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: Thu, 07 Jan 2010 00:49:50 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: 51_13_20100106224428_crawl101-c/51_13_20100107004437_crawl101.arc.gz
server-timing: captures_list;dur=0.530658, exclusion.robots;dur=0.018707, exclusion.robots.policy;dur=0.008032, esindex;dur=0.009718, cdx.remote;dur=37.672315, LoadShardBlock;dur=185.883197, PetaboxLoader3.datanode;dur=148.346081, PetaboxLoader3.resolve;dur=258.604167, load_resource;dur=289.073923
x-app-server: wwwb-app213-dc8
x-ts: 200
x-tr: 592
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
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
mojombo / bert
- Source
- Commits
- Network (6)
- Issues (1)
- Downloads (4)
- Wiki (1)
- Graphs
-
Branch:
master
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!
