clamby 1.6.1 → 1.6.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
  SHA256:
3
- metadata.gz: cc73965f059691dd46a23b5d0fd7ba7d6e5d1103859bfe68124780c12ca56639
4
- data.tar.gz: f666ead4b14e3dc024ed92ca6842928cc4256d424df0ff25299a7c5eb3c5762f
3
+ metadata.gz: 386be08fb41c318b1c32997c00f9df9ed3ee78796ceaded3927cb4672d45b370
4
+ data.tar.gz: b1ed8cbc7842eb3ee4699cb4759c7ccb707bde51d82efc5ce5ff467f1dd9730b
5
5
  SHA512:
6
- metadata.gz: dcdb2f76042a1cd6751095e30201d635adf0e847defeaeb4d61b174a52ea6c355e4afa567e4770df388b9a2ee79e8c5ef0826486adc46e9ea21d308b4ebc83c8
7
- data.tar.gz: 65beb709c82e4cce7804fe696bbc71d81b6951a2c38cf22ea6c1e2bd42536b55ede204c06a1b78cbba10fe778ef7db0d6b436ec02a80c0e6cafc0b0238bce8f7
6
+ metadata.gz: 5f0e78c730b651e66bce6710df83f13a5e250540dcfb7ba840584561e509666950513bd07221a46b6833ffab9356ade9e0cc1fe2250de622bb4a0f5a2378502f
7
+ data.tar.gz: 17069ecf45fd0d5b48cfef58ba45ef489c7468dd2a5a0bcf4388058ef2fa651e8c6bb0cf802ca2f382a0c6fc4fc1215ffdd046e677667d06d6e960311b134042
@@ -1,3 +1,6 @@
1
+ # v1.6.2
2
+ - [emilong](https://github.com/kobaltz/clamby/commits?author=emilong) - Handle nil exit status of clamav executable.
3
+
1
4
  # v1.6.1
2
5
  - [broder](https://github.com/kobaltz/clamby/commits?author=broder) - Fixed issue with detecting clamdscan version when using custom config file
3
6
 
@@ -25,10 +25,12 @@ module Clamby
25
25
 
26
26
  new.run scan_executable, *args
27
27
 
28
- case $CHILD_STATUS.exitstatus
28
+ # $CHILD_STATUS maybe nil if the execution itself (not the client process)
29
+ # fails
30
+ case $CHILD_STATUS && $CHILD_STATUS.exitstatus
29
31
  when 0
30
32
  return false
31
- when 2
33
+ when nil, 2
32
34
  # clamdscan returns 2 whenever error other than a detection happens
33
35
  if Clamby.config[:error_clamscan_client_error] && Clamby.config[:daemonize]
34
36
  raise Clamby::ClamscanClientError.new("Clamscan client error")
@@ -1,3 +1,3 @@
1
1
  module Clamby
2
- VERSION = "1.6.1"
2
+ VERSION = "1.6.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clamby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kobaltz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-10 00:00:00.000000000 Z
11
+ date: 2019-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.0.2
104
+ rubygems_version: 3.0.3
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Scan file uploads with ClamAV