This gem provides a way to encode and decode bencode used by the Bit Torrent protocol. Normal ruby objects can be marshalled as bencode and demarshalled back to ruby.
Allen Madsen
gem "bencodr", "~> 3.0.2"