clamby 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +3 -3
- data/lib/clamby.rb +1 -1
- data/lib/clamby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0f8672d1e481408177605c4a020b61cb2ba2b04
|
|
4
|
+
data.tar.gz: af740ac229c5d94f45fc373974ff0037cd83f02d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c21b02bcaba49ba3697ef7c341e9f96aca534173af89bc1d36e0caa161c0e08fb3c708ea6f9d785db933bde9df85aa2e523d10809d6ca1bde1a9d9a27a4d8af
|
|
7
|
+
data.tar.gz: f8a5a9b28257286b459ecda30c31966d4233e75b9e526cb389b3c061675fc295248c37cd84d7664341f586adc37a6f4841b5887f633dc85189cf54410c9da5b1
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/clamby.png)
|
|
4
|
-
[](https://travis-ci.org/kobaltz/clamby)
|
|
5
|
-
|
|
6
4
|
|
|
7
5
|
This gem depends on the [clamscan](http://www.clamav.net/) and `freshclam` daemons to be installed already.
|
|
8
6
|
|
|
@@ -10,6 +8,8 @@ If you have a file upload on your site and you do not scan the files for viruses
|
|
|
10
8
|
|
|
11
9
|
#Usage
|
|
12
10
|
|
|
11
|
+
[Drifting Ruby Screencast](https://www.driftingruby.com/episodes/antivirus-uploads-with-clamby?utm_source=github&utm_medium=social&utm_campaign=github)
|
|
12
|
+
|
|
13
13
|
Be sure to check the CHANGELOG as recent changes may affect functionality.
|
|
14
14
|
|
|
15
15
|
Just add `gem 'clamby'` to your `Gemfile` and run `bundle install`.
|
|
@@ -52,7 +52,7 @@ It's good to note that Clamby will not by default delete files which had a virus
|
|
|
52
52
|
private
|
|
53
53
|
|
|
54
54
|
def scan_for_viruses
|
|
55
|
-
path = self.attribute.
|
|
55
|
+
path = self.attribute.path
|
|
56
56
|
scan_result = Clamby.safe?(path)
|
|
57
57
|
if scan_result
|
|
58
58
|
return true
|
data/lib/clamby.rb
CHANGED
|
@@ -38,7 +38,7 @@ module Clamby
|
|
|
38
38
|
scanner = system(clamd_executable_name, '-V')
|
|
39
39
|
|
|
40
40
|
return true if scanner
|
|
41
|
-
return false unless @config[:
|
|
41
|
+
return false unless @config[:error_clamscan_missing]
|
|
42
42
|
|
|
43
43
|
raise Exceptions::clamdscanMissing.new("#{clamd_executable_name} application not found. Check your installation and path.")
|
|
44
44
|
end
|
data/lib/clamby/version.rb
CHANGED
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.2.
|
|
4
|
+
version: 1.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kobaltz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
97
97
|
version: '0'
|
|
98
98
|
requirements: []
|
|
99
99
|
rubyforge_project:
|
|
100
|
-
rubygems_version: 2.
|
|
100
|
+
rubygems_version: 2.6.8
|
|
101
101
|
signing_key:
|
|
102
102
|
specification_version: 4
|
|
103
103
|
summary: Scan file uploads with ClamAV
|