carrierwave-vs 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/carrierwave-vs/version.rb +1 -1
- data/lib/carrierwave-vs/virus_scanner.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4df4a553a3341a6e4367f769c4d5ad86a413dcb5
|
4
|
+
data.tar.gz: 2849ecd733c071e7698f37f16b1da29c0d411924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f64f7995d94d59d51a9e386fd6147e98edd81a52facc49402e10a13eb9cbb1a921ffb9cdb39590498771135e888bc348350cc795ad0accf85273dee218feebb7
|
7
|
+
data.tar.gz: 05d9001486fe13fd65e11d5097eaaf75d3a36b937d96a5ece1b0f7174aec3ded55aa4ab4e1c08357e789dd19938ced8780841bb84c9a969945034100cc69e7ee
|
@@ -3,7 +3,8 @@ require "active_support/concern"
|
|
3
3
|
module Carrierwave
|
4
4
|
module VirusScanner
|
5
5
|
extend ActiveSupport::Concern
|
6
|
-
|
6
|
+
|
7
|
+
class_methods do
|
7
8
|
def virus_scan
|
8
9
|
process :virus_scan
|
9
10
|
end
|
@@ -13,7 +14,6 @@ module Carrierwave
|
|
13
14
|
response = ::VirusScanner::File.scan_url(url)
|
14
15
|
|
15
16
|
return true unless response.fetch("status") == "OK"
|
16
|
-
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|