ddr-antivirus 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/ddr/antivirus/adapters/clamav_scanner_adapter.rb +11 -4
- data/lib/ddr/antivirus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e09e6bc593db830915157ce7ed38e9c05702ec8
|
4
|
+
data.tar.gz: 66f916b33a1e8e336d5b3172a145007eeba312dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc8b5c988bb1e6f1b3b50e9439611a965b2291526586ea18670265f6ac4282a6556966b7ac4c1667f107007c8fee198a0fef745fe2fd5328f79413e2d71987d6
|
7
|
+
data.tar.gz: 91c7a1a590026094a67255a253939ec779a46689637adf813a28e0c728139b58fc1cfe85f881c73e4e8eb98cf3c05fb4c4e035b5f01f66b7313f5fca749003f7
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Ddr::Antivirus
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/ddr-antivirus.svg)](http://badge.fury.io/rb/ddr-antivirus)
|
4
|
+
[![Build Status](https://travis-ci.org/duke-libraries/ddr-antivirus.svg?branch=master)](https://travis-ci.org/duke-libraries/ddr-antivirus)
|
5
|
+
|
3
6
|
Antivirus scanner for Ruby applications.
|
4
7
|
|
5
8
|
## Installation
|
@@ -12,10 +12,17 @@ module Ddr
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def reload!
|
15
|
-
#
|
16
|
-
#
|
17
|
-
#
|
18
|
-
|
15
|
+
#
|
16
|
+
# ClamAV.instance.reload is supposed to reload the database if changed and return:
|
17
|
+
#
|
18
|
+
# 0 => unnecessary
|
19
|
+
# 1 => successful
|
20
|
+
# 2 => error (undocumented)
|
21
|
+
#
|
22
|
+
# However, reload raises a RuntimeError when the db needs to be reloaded,
|
23
|
+
# in which case, loaddb must be called.
|
24
|
+
#
|
25
|
+
engine.loaddb unless [0, 1].include?(engine.reload)
|
19
26
|
rescue RuntimeError
|
20
27
|
engine.loaddb
|
21
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddr-antivirus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chandek-Stark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|