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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efc14d484efb97bd6e33f5a48a91f6a44eeb6162
4
- data.tar.gz: 5c92aff679720df52e4d1c56f657c3780da900b3
3
+ metadata.gz: 0e09e6bc593db830915157ce7ed38e9c05702ec8
4
+ data.tar.gz: 66f916b33a1e8e336d5b3172a145007eeba312dd
5
5
  SHA512:
6
- metadata.gz: 8eb6bff2f990d90d76a0e5bbc88cd5244dc493f20803428647e8a43b57dd28d242344d9cf7ac3e387ca6ccd54fa0bf9845e611fa0f3d7dc782d98bc9928e2a7e
7
- data.tar.gz: 9f716e898edd7973768eb2122e4bde72876af2ff2ee7724d87cdd9532d9c0ef1447373c740fe52a50da1673e942ad8d2c6f5bc4660f846af62b21fc75900dac3
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
- # ClamAV is supposed to reload the database if changed (1 = successful, 0 = unnecessary)
16
- # but operation only succeeds when unneccesary and raises RuntimeError when the db needs
17
- # to be reloaded, in which case, loaddb must be called.
18
- engine.loaddb unless engine.reload == 0
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
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Antivirus
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  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.1
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-30 00:00:00.000000000 Z
11
+ date: 2014-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport