Skip to content

Releases: igorkasyanchuk/active_storage_validations

3.0.3

13 Dec 22:22

Choose a tag to compare

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

Full Changelog: 3.0.2...3.0.03

3.0.2

13 Sep 20:36

Choose a tag to compare

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

11 Jul 06:45

Choose a tag to compare

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

Full Changelog: 3.0.0...3.0.1

3.0.0

28 May 18:31

Choose a tag to compare

  • Allow to perform dimension / aspect_ratio validations on single page pdf (#374)
  • Added pages validator to validate pdf number of pages.
  • Added equal_to option to duration, size and total_size validators.

Version 3 comes with the ability to support single page pdf dimension / aspect_ratio analysis, we had to make a breaking change:

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

26 May 07:23

Choose a tag to compare

  • Fix issue when updating a child record through a parent (like: parent_model.update(child_attributes: { image: file })) for Rails >= 8.0.2 (#378)
  • Fix issue causing a stack error too deep edge case (not reproductible) because of the after: :load_config_initializers option (#382)

2.0.3

13 Apr 14:59
8c79aec

Choose a tag to compare

  • Allow to pass an Array, a splatted Array, or a single string for allowing / rejecting content_type matcher methods (#372)
  • Fix issue when an attachment was missing on a blob (#373)

2.0.2

02 Feb 17:16

Choose a tag to compare

  • Fix undesirable mutation of Marcel::TYPE_EXTS (#356)
  • Fix gem loading issue with Marcel custom initialisers (#355)

2.0.1

29 Jan 09:47

Choose a tag to compare

  • Fix for invalid content type validation (#347)
  • Fix issue with custom_metadata not working with external services such as S3 (#349)
  • Fix issue when using several matchers using different metadata keys (#351)

2.0.0

27 Jan 07:12

Choose a tag to compare

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
    • dimension validator now supports video files
    • aspect_ratio validator now supports video files
    • processable_image validator is now processable_file validator and supports image/video/audio
  • New validator added:
    • duration validator 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

21 Dec 15:43

Choose a tag to compare

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

Full Changelog: 1.3.4...1.4.0