clamav 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,5 +1,10 @@
1
1
  ChangeLog
2
2
 
3
+ Thu Feb 25 20:1:00 MSK 2010
4
+ ----------------------------
5
+ V 0.3.2
6
+ * Fix to compile on ruby-1.9
7
+
3
8
  Wed Nov 11 20:33:00 MSK 2009
4
9
  ----------------------------
5
10
  V 0.3.1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
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.1"
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{2009-10-16}
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/spec_helper.rb",
59
- "spec/unit/clamav_spec.rb"
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
+
@@ -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), RSTRING(v_value)->ptr);
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(RSTRING(v_fname)->ptr, &virname, NULL, ptr->root, FIX2INT(v_options));
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.1
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: 2009-11-11 00:00:00 +03:00
12
+ date: 2010-02-25 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies: []
15
15