lib/bencode.rb in bencode-0.6.0 vs lib/bencode.rb in bencode-0.7.0
- old
+ new
@@ -1,9 +1,15 @@
-# TODO: Write some documentation here.
+# Support for loading and dumping bencoded data.
+#
+# See {BEncode.load} and {BEncode.dump}.
module BEncode
- VERSION = '0.5.0'
+ class DecodeError < StandardError
+ end
+
+ class EncodeError < StandardError
+ end
end
glob = File.join(File.dirname(__FILE__), 'bencode/**/*.rb')
-Dir[glob].sort.each{|file| require file }
+Dir[glob].sort.each {|file| require file }