README.md in bindata-2.4.15 vs README.md in bindata-2.5.0

- old
+ new

@@ -1,10 +1,11 @@ # What is BinData? -[![Version ](https://img.shields.io/gem/v/bindata.svg) ](https://rubygems.org/gems/bindata) -[![Github CI ](https://github.com/dmendel/bindata/actions/workflows/ci.yml/badge.svg) ](https://github.com/dmendel/bindata/actions/workflows/ci.yml) -[![Coverage ](https://img.shields.io/coveralls/dmendel/bindata.svg) ](https://coveralls.io/r/dmendel/bindata) +[![Github CI](https://github.com/dmendel/bindata/actions/workflows/ci.yml/badge.svg)](https://github.com/dmendel/bindata/actions/workflows/ci.yml) +[![Version](https://img.shields.io/gem/v/bindata.svg)](https://rubygems.org/gems/bindata) +[![Downloads](https://img.shields.io/gem/dt/bindata.svg)](https://rubygems.org/gems/bindata) +[![Coverage](https://img.shields.io/coveralls/dmendel/bindata.svg)](https://coveralls.io/r/dmendel/bindata) Do you ever find yourself writing code like this? ```ruby io = File.open(...) @@ -12,11 +13,11 @@ name = io.read(len) width, height = io.read(8).unpack("VV") puts "Rectangle #{name} is #{width} x #{height}" ``` -It’s ugly, violates DRY and feels like you’re writing Perl, not Ruby. +It’s ugly, violates DRY and doesn't feel like Ruby. There is a better way. Here’s how you’d write the above using BinData. ```ruby class Rectangle < BinData::Record @@ -45,16 +46,12 @@ # Installation $ gem install bindata -or if running ruby 1.8 - - $ gem install bindata -v '~> 1.8.0' - # Documentation -[Read the wiki](http://github.com/dmendel/bindata/wiki). +[BinData manual](http://github.com/dmendel/bindata/wiki). # Contact If you have any queries / bug reports / suggestions, please contact me (Dion Mendel) via email at bindata@dm9.info