README.md in xxhash-0.4.0 vs README.md in xxhash-0.5.0

- old
+ new

@@ -23,24 +23,30 @@ ```ruby XXhash.xxh32_stream(StringIO.new('test'), 123) # => 2758658570 ``` +You can use it with file path directly, avoiding costly ruby-related operations. + +```ruby +XXhash.xxh32_file(__FILE__) +``` + Note that you can also pass a chunk size as third param (it's 32 bytes by default) -XXH64 is also supported: you can use `xxh64` and `xxh64_stream`. +XXH64 is also supported: you can use `xxh64`, `xxh64_stream`, `.xxh64_file`. ### Supported Ruby versions -- MRI 1.9.3, 2.0, 2.1, 2.2. +- MRI 2.3+ - rbx-19mode Note: It doesn't work on JRuby as it uses C extension. ### Versioning -Version 0.4.0 is equal to [0.6.2](https://github.com/Cyan4973/xxHash/tree/v0.6.2) +Version 0.5.0 is equal to [0.6.2](https://github.com/Cyan4973/xxHash/tree/v0.6.2) ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) @@ -48,7 +54,7 @@ 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request ### Copyright -Copyright (c) 2013 Vasiliy Ermolovich. See LICENSE.txt for +Copyright (c) 2022 Vasiliy Ermolovich. See LICENSE.txt for further details.