Releases: igorkasyanchuk/active_storage_validations
Releases · igorkasyanchuk/active_storage_validations
3.0.3
What's Changed
- Make PDF analyzer handle decimal dimensions by @tekin in #400
- Delete lib/tasks directory by @wwahammy in #402
- fix: correct typo in UK locale content type error messages by @miry in #403
New Contributors
- @tekin made their first contribution in #400
- @wwahammy made their first contribution in #402
- @miry made their first contribution in #403
Full Changelog: 3.0.2...3.0.03
3.0.2
What's Changed
- pluralize pixel in english locale files by @dobiedad in #395
- check in test changes from #395 by @dobiedad in #396
- 361 validations run on activestorageattachedone when they should not by @Mth0158 in #397
- [Rubocop] Upgrade dependency and target ruby version by @Mth0158 in #398
New Contributors
Full Changelog: 3.0.1...3.0.2
3.0.1
What's Changed
- Fix translation issues for German keys for pdf pages validator (
pages_not_greater_than_or_equal_to/pages_not_equal_to) - Fix translation issues for many of the Japanese keys (#392)
New Contributors
- @roolrool made their first contribution in #388
- @Dome-GER made their first contribution in #393
- @sei40kr made their first contribution in #394
Full Changelog: 3.0.0...3.0.1
3.0.0
- Allow to perform
dimension/aspect_ratiovalidations on single page pdf (#374) - Added
pagesvalidator to validate pdf number of pages. - Added
equal_tooption toduration,sizeandtotal_sizevalidators.
Version 3 comes with the ability to support single page pdf dimension / aspect_ratio analysis, we had to make a breaking change:
- To analyze PDFs, you must install the
popplerPDF processing dependency- It's a Rails-supported PDF processing dependency (https://guides.rubyonrails.org/active_storage_overview.html#requirements)
- To install it, check their documentation at this link.
- To check if it's installed, execute
pdftoppm -h. - To install this tool in your CI / production environments, you can check how we do it in our own CI (https://github.com/igorkasyanchuk/active_storage_validations/blob/master/.github/workflows/main.yml)
Note that, if you do not perform dimension / aspect_ratio validations on pdf, the gem will work the same as in version 2 without any breaking change.
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
What's Changed
We are happy to release the active_storage_validations version 2! This major version add several features such as:
- Add support for video & audio files
dimensionvalidator now supports video filesaspect_ratiovalidator now supports video filesprocessable_imagevalidator is nowprocessable_filevalidator and supports image/video/audio
- New validator added:
durationvalidator has been added for audio / video files
- Major performance improvement have been added: we now only perform the expensive io analysis operation on the newly attached files
- All error messages have been given an upgrade and new variables that you can use
- Complete rewrite of gem README
- To upgrade from version 1.x to 2.x, please read the upgrade guide in the readme
- Find the associated PRs here:
Full Changelog: 1.4.0...2.0.0
1.4.0
What's Changed
- Fixed typo in README in test matcher section. by @D4uS1 in #300
- [CI] Upgrade from checkout@v2 to checkout@v4 (#305) by @Mth0158 in #306
- [Validator] Detect attachable content_type like Rails, plus rewind the io after using it (#321) by @Mth0158 in #322
- [Analyzer] Refacto our image analyzers to further expand the gem (#254) by @Mth0158 in #299
- Chore/rails 61 by @tagliala in #324
- Require marcel by @ngan in #326
- [Validator] Optimise content_type validator check when not using spoofing protection (#331) by @Mth0158 in #332
- Refactor require-ing for supported analyzers by @ngan in #327
- 323 validations not locating file uploaded using fixture file upload using vips by @Mth0158 in #325
- Allow multiple aspect ratios by @mohammednasser-32 in #294
- [Sponsors] Add @Mth0158 as possible sponsored by @Mth0158 in #329
New Contributors
- @D4uS1 made their first contribution in #300
- @ngan made their first contribution in #326
- @mohammednasser-32 made their first contribution in #294
Full Changelog: 1.3.4...1.4.0