clamby 1.2.2 → 1.2.3

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: 7d45e76216b8af229b23a32724859ebc87fdc287
4
- data.tar.gz: de0b1c950d815d68259d7644f44ec6fd67abebe5
3
+ metadata.gz: a0f8672d1e481408177605c4a020b61cb2ba2b04
4
+ data.tar.gz: af740ac229c5d94f45fc373974ff0037cd83f02d
5
5
  SHA512:
6
- metadata.gz: ffbc18671aeee3f99fb5b28b6f1b26af16a1c551a6ff0ca8cfbbd3c97b575e11ef8f1463acdcea888a55cf75b6d6c58e10f26bfebe9a3771b73c8bb7d56c4a8a
7
- data.tar.gz: 4b478297a7833b47bc29358554dfd8314e17cd2db42cfe75354471b8944058b109fb7fde9ce1446401e84a6864233a3f14acb1bb82084e7b89b97264dc22b7d4
6
+ metadata.gz: 8c21b02bcaba49ba3697ef7c341e9f96aca534173af89bc1d36e0caa161c0e08fb3c708ea6f9d785db933bde9df85aa2e523d10809d6ca1bde1a9d9a27a4d8af
7
+ data.tar.gz: f8a5a9b28257286b459ecda30c31966d4233e75b9e526cb389b3c061675fc295248c37cd84d7664341f586adc37a6f4841b5887f633dc85189cf54410c9da5b1
@@ -1,3 +1,6 @@
1
+ #v1.2.3
2
+ - Fixed typo in config check `error_clamscan_missing` instead of `error_clamdscan_missing`
3
+
1
4
  #v1.1.1
2
5
  - Daemonize option added
3
6
  - Refactor of logic
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  ![Clamby Logo](https://raw.github.com/kobaltz/clamby/master/clamby_logo.png)
2
2
 
3
3
  [![GemVersion](https://badge.fury.io/rb/clamby.png)](https://badge.fury.io/rb/clamby.png)
4
- [![Build Status](https://travis-ci.org/kobaltz/clamby.png?branch=master)](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.url
55
+ path = self.attribute.path
56
56
  scan_result = Clamby.safe?(path)
57
57
  if scan_result
58
58
  return true
@@ -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[:error_clamdscan_missing]
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
@@ -1,3 +1,3 @@
1
1
  module Clamby
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
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.2.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: 2016-02-17 00:00:00.000000000 Z
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.5.2
100
+ rubygems_version: 2.6.8
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Scan file uploads with ClamAV