sam-b / HashData

A command line Hash Identifying tool.
https://rubygems.org/gems/hashdata
MIT License
100 stars 22 forks source link

Use TOML files for regexes and tests #12

Closed twe4ked closed 2 years ago

twe4ked commented 5 years ago

Hi. I've written a port (kind of) of this library and one of the things I did was add a bunch of specs and moved the regexes into TOML files. This makes them language agnostic so people can easily create versions of this library using the same regexes and tests.

This PR introduces those specs then in a separate commit makes use of the regexes. There are some slight differences in ordering and minor changes to the regexes to get everything working as expected.