README.md in format_parser-0.13.6 vs README.md in format_parser-0.14.0
- old
+ new
@@ -28,16 +28,17 @@
* MOV
* MP4
* M4A
* ZIP
* DOCX, PPTX, XLSX
+* OGG
...with [more](https://github.com/WeTransfer/format_parser/issues?q=is%3Aissue+is%3Aopen+label%3Aformats) on the way!
## Basic usage
-Pass an IO object that responds to `read` and `seek` to `FormatParser.parse` and the first confirmed match will be returned.
+Pass an IO object that responds to `read`, `seek` and `size` to `FormatParser.parse` and the first confirmed match will be returned.
```ruby
match = FormatParser.parse(File.open("myimage.jpg", "rb"))
match.nature #=> :image
match.format #=> :jpg
@@ -105,10 +106,15 @@
* Where possible, use small subsets of full-feature format parsers since we only care about a small subset of the data.
* When a choice arises between using a dependency or writing a small parser, write the small parser since less code
is easier to verify and test, and we likely don't care about all the metadata anyway
* Avoid using C libraries which are likely to contain buffer overflows/underflows - we stay memory safe
+## Acknowledgements
+
+We are incredibly grateful to Remco van't Veer for [exifr](https://github.com/remvee/exifr) and to
+Krists Ozols for [id3tag](https://github.com/krists/id3tag) that we are using for crucial tasks.
+
## Fixture Sources
Unless specified otherwise in this section the fixture files are MIT licensed and from the FastImage and Dimensions projects.
### JPEG
@@ -142,9 +148,12 @@
- CR2 examples are downloaded from http://www.rawsamples.ch/ and are Creative Common Licensed.
### FLAC
- atc_fixture_vbr.flac is a converted version of the MP3 with the same name
- c_11k16btipcm.flac is a converted version of the WAV with the same name
+
+### OGG
+- `hi.ogg`, `vorbis.ogg`, `with_confusing_magic_string.ogg`, `with_garbage_at_the_end.ogg` have been generated by the project contributors
### M4A
- fixture.m4a was created by one of the project maintainers and is MIT licensed
### TIFF