README.md in file_validators-3.0.0.beta2 vs README.md in file_validators-3.0.0
- old
+ new
@@ -1,21 +1,20 @@
# File Validators
[![Gem Version](https://badge.fury.io/rb/file_validators.svg)](http://badge.fury.io/rb/file_validators)
[![Build Status](https://travis-ci.org/musaffa/file_validators.svg)](https://travis-ci.org/musaffa/file_validators)
-[![Dependency Status](https://gemnasium.com/musaffa/file_validators.svg)](https://gemnasium.com/musaffa/file_validators)
[![Coverage Status](https://coveralls.io/repos/musaffa/file_validators/badge.png)](https://coveralls.io/r/musaffa/file_validators)
[![Code Climate](https://codeclimate.com/github/musaffa/file_validators/badges/gpa.svg)](https://codeclimate.com/github/musaffa/file_validators)
[![Inline docs](http://inch-ci.org/github/musaffa/file_validators.svg)](http://inch-ci.org/github/musaffa/file_validators)
File Validators gem adds file size and content type validations to ActiveModel.
Any module that uses ActiveModel, for example ActiveRecord, can use these file validators.
## Support
-* ActiveModel versions: 3.2, 4 and 5.
-* Rails versions: 3.2, 4 and 5.
+* ActiveModel versions: 3.2, 4, 5 and 6.
+* Rails versions: 3.2, 4, 5 and 6.
As of version `2.2`, activemodel 3.0 and 3.1 will no longer be supported.
For activemodel 3.0 and 3.1, please use file_validators version `<= 2.1`.
It has been tested to work with Carrierwave, Paperclip, Dragonfly, Refile etc file uploading solutions.
@@ -140,10 +139,10 @@
```
* `exclude`: Forbidden content types. Can be a single content type or an array. Each type
can be a String or a Regexp. It also accepts `proc`. See `:allow` options examples.
* `mode`: `:strict` or `:relaxed`. `:strict` mode can detect content type based on the contents
of the files. It also detects media type spoofing (see more in [security](#security)).
-`:file` analyzer is used in `:strict` model. `:relaxed` mode uses file name to detect
+`:file` analyzer is used in `:strict` mode. `:relaxed` mode uses file name to detect
the content type. `mime_types` analyzer is used in `relaxed` mode. If mode option is not
set then the validator uses form supplied content type.
* `tool`: `:file`, `:fastimage`, `:filemagic`, `:mimemagic`, `:marcel`, `:mime_types`, `:mini_mime`.
You can choose one of these built-in MIME type analyzers. You have to install the analyzer gem you choose.
By default supplied content type is used to determine the MIME type. This option takes precedence