Sha256: e87f3185329b65f92cc56499ad849c28288a58f8240e40bf214cd36612b7e737
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
bencoder ======== [![Build Status](https://travis-ci.org/kholbekj/bencoder.svg?branch=master)](https://travis-ci.org/kholbekj/bencoder) [![Coverage Status](https://coveralls.io/repos/kholbekj/bencoder/badge.png?branch=master)](https://coveralls.io/r/kholbekj/bencoder?branch=master) [![Code Climate](https://codeclimate.com/github/kholbekj/bencoder/badges/gpa.svg)](https://codeclimate.com/github/kholbekj/bencoder) [![Gem Version](https://badge.fury.io/rb/bencoder.svg)](http://badge.fury.io/rb/bencoder) Bittorrent encoding in ruby BEncoder will encode the 4 data types in the specification: - Strings - Integers - Arrays - Hashes Additionally, it will pass symbols as strings, to allow for easier hash convertion. install with gem install bencoder Usage is easy: ```ruby BEncoder.encode "herp" => "4:herp" BEncoder.decode "4:herp" => "herp" BEncoder.encode ['what', 'strange', { data: 'I', have: 'here' }, 666] => "l4:what7:stranged4:data1:I4:have4:hereei666ee" BEncoder.decode 'l4:what7:stranged4:data1:I4:have4:hereei666ee' => ['what', 'strange', { 'data' => 'I', 'have' => 'here' }, 666] ``` Intentionally minimalistic.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bencoder-0.0.4 | README.md |