mini_defender 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fbf3b803c35e010240900c164e70d6ec251484671528bba2e7d58321c148ec0
4
- data.tar.gz: 3e65db3a9d3a2b6c91d18bcf7eff25d3c7d4b9f9ef8156e2fcbad69bdd6afe20
3
+ metadata.gz: 12e38770ec94ea06cf7c9a6f40af0cc37fc2017deb30161c2804c9e3024d7ad4
4
+ data.tar.gz: 36738ff2ca0ad2316dbb0f68fee90ad921690fab463cf4050103789edb975212
5
5
  SHA512:
6
- metadata.gz: 6aed1ac84487557a85a8374b578e8286baf2510e059d0a393c1da6014d89cfd21f33b2d94153e6e376be36ff8b0b45f6b5c10f1e9da4853e0366787179405b84
7
- data.tar.gz: f6db95690153ba8ca3f5a2a142ee07349608bb0d2d060944760f1544f5d6d8eb47b7ec36b6eb0b09ebb83baa6a3548b230a0f47c438a9c796738a87e739de94d
6
+ metadata.gz: 94d2291d0f17296b246ae67f96685f20dd7c7316d7ed329d89fc2141d76af57c538ca3909b52be177b9d08663448c2941669668861ba0408d40bdb10f75ad462
7
+ data.tar.gz: d5f5aab2a675b44ce991573938eea9ca9782e954971365d71102ba6e8081b802d76cffa4f3382354bbf04695028e88cede5686146c28003ef1c1ee4f8f33e30a
@@ -26,7 +26,7 @@ class MiniDefender::Rules::MimeTypes < MiniDefender::Rule
26
26
 
27
27
  def passes?(attribute, value, validator)
28
28
  @file = value.is_a?(ActionDispatch::Http::UploadedFile)
29
- @file && @types.include?(@file.content_type)
29
+ @file && @types.include?(value.content_type)
30
30
  end
31
31
 
32
32
  def message(attribute, value, validator)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniDefender
4
- VERSION = "0.6.4"
4
+ VERSION = "0.6.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_defender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Alhoshaiyan