README.md in bencodr-3.0.0 vs README.md in bencodr-3.0.1
- old
+ new
@@ -2,16 +2,15 @@
* **Author** Allen Madsen (blatyo)
* **My Site** http://www.allenmadsen.com
* **Gem** http://gemcutter.org/gems/bencodr
* **Source** http://github.com/blatyo/bencodr
* **Issue Tracker** http://github.com/blatyo/bencodr/issues
+* **Build Status** [![Build Status](http://travis-ci.org/blatyo/bencodr.png)](http://travis-ci.org/blatyo/bencodr)
## Synopsis
This gem provides a way to encode and parse bencodings used by the Bit Torrent protocol.
-_Note: If using ruby 1.8.x, use bencodr version 2.1.0. 3.0.0 is 1.9.x only, because it uses the 1.9.x encoding features._
-
## Installation
Install the gem:
``` bash
@@ -163,11 +162,11 @@
$stdin.bdecode #=> "string"
# read from file
File.bdecode("a.bencode") #=> "string"
- file = File.open("a.bencode", "wb")
+ file = File.open("a.bencode", "rb")
file.bdecode #=> "string"
```
### Make Your Own Objects Compatible
When using bencodings it may be useful to translate your own objects into bencoded strings.
@@ -194,9 +193,12 @@
end
end
MyClass.new.bencode #=> "d1:a1:a1:b1:be"
```
+
+## Contributors
+* [Andrew Nikolaev](https://github.com/quaternion) - Fixed encoding issue
## Note on Reporting Issues
* Try to make a failing test case
* Tell me which version of ruby you're using