Corrected min_ver, max_ver bug. Fixes issue 489. Fixes issue 525.

git-svn-id: https://beef.googlecode.com/svn/trunk@1379 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
passbe
2011-10-24 07:00:29 +00:00
parent cb4df367af
commit d1201e70a2
3 changed files with 16 additions and 16 deletions

View File

@@ -214,14 +214,14 @@ module Module
#version check
if opts.key?('ver')
if subv.key?('min_ver')
if subv['min_ver'].kind_of? Fixnum and opts['ver'] >= subv['min_ver']
if subv['min_ver'].kind_of? Fixnum and opts['ver'].to_i >= subv['min_ver']
rating += 1
else
break
end
end
if subv.key?('max_ver')
if subv['max_ver'].kind_of? Fixnum and opts['ver'] <= subv['max_ver']
if subv['max_ver'].kind_of? Fixnum and opts['ver'].to_i <= subv['max_ver']
rating += 1
else
break

View File

@@ -24,18 +24,18 @@ beef:
target:
working:
IE:
min_ver: "6"
max_ver: "7"
min_ver: 6
max_ver: 7
FF:
min_ver: "3"
max_ver: "3"
min_ver: 3
max_ver: 3
C:
min_ver: "1"
max_ver: "5"
min_ver: 1
max_ver: 5
S:
min_ver: "3"
max_ver: "3"
min_ver: 3
max_ver: 3
O:
min_ver: "1"
max_ver: "10"
min_ver: 1
max_ver: 10
not_working: ["All"]

View File

@@ -24,11 +24,11 @@ beef:
target:
working:
IE:
min_ver: "6"
max_ver: "6"
min_ver: 6
max_ver: 6
user_notify:
IE:
min_ver: "7"
max_ver: "7"
min_ver: 7
max_ver: 7
not_working: ["All"]