clamav 0.3.1 → 0.3.2
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.
- data/ChangeLog +5 -0
- data/VERSION +1 -1
- data/clamav.gemspec +7 -6
- data/ext/clamav/clamav.c +2 -2
- metadata +2 -2
data/ChangeLog
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.2
|
data/clamav.gemspec
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
|
-
# DO NOT EDIT THIS FILE
|
|
3
|
-
# Instead, edit Jeweler::Tasks in
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{clamav}
|
|
8
|
-
s.version = "0.3.
|
|
8
|
+
s.version = "0.3.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Alexander Oryol"]
|
|
12
|
-
s.date = %q{
|
|
12
|
+
s.date = %q{2010-02-25}
|
|
13
13
|
s.description = %q{ClamAV Ruby bindings}
|
|
14
14
|
s.email = %q{eagle.alex@gmail.com}
|
|
15
15
|
s.extensions = ["ext/clamav/extconf.rb"]
|
|
@@ -55,8 +55,8 @@ Gem::Specification.new do |s|
|
|
|
55
55
|
s.rubygems_version = %q{1.3.5}
|
|
56
56
|
s.summary = %q{ClamAV Ruby bindings}
|
|
57
57
|
s.test_files = [
|
|
58
|
-
"spec/
|
|
59
|
-
"spec/
|
|
58
|
+
"spec/unit/clamav_spec.rb",
|
|
59
|
+
"spec/spec_helper.rb"
|
|
60
60
|
]
|
|
61
61
|
|
|
62
62
|
if s.respond_to? :specification_version then
|
|
@@ -69,3 +69,4 @@ Gem::Specification.new do |s|
|
|
|
69
69
|
else
|
|
70
70
|
end
|
|
71
71
|
end
|
|
72
|
+
|
data/ext/clamav/clamav.c
CHANGED
|
@@ -113,7 +113,7 @@ static VALUE clamavr_setstring(VALUE self, VALUE v_param, VALUE v_value) {
|
|
|
113
113
|
Data_Get_Struct(self, struct ClamAV_R, ptr);
|
|
114
114
|
|
|
115
115
|
int ret;
|
|
116
|
-
ret = cl_engine_set_str(ptr->root, FIX2INT(v_param),
|
|
116
|
+
ret = cl_engine_set_str(ptr->root, FIX2INT(v_param), RSTRING_PTR(v_value));
|
|
117
117
|
if(ret != CL_SUCCESS) {
|
|
118
118
|
rb_raise(rb_eRuntimeError, "cl_engine_set_str() error: %s\n", cl_strerror(ret));
|
|
119
119
|
}
|
|
@@ -163,7 +163,7 @@ static VALUE clamavr_scanfile(argc, argv, klass)
|
|
|
163
163
|
int ret;
|
|
164
164
|
const char *virname;
|
|
165
165
|
|
|
166
|
-
ret = cl_scanfile(
|
|
166
|
+
ret = cl_scanfile(RSTRING_PTR(v_fname), &virname, NULL, ptr->root, FIX2INT(v_options));
|
|
167
167
|
if (ret == CL_VIRUS) {
|
|
168
168
|
return rb_str_new2(virname);
|
|
169
169
|
} else {
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: clamav
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Oryol
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2010-02-25 00:00:00 +03:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|