ruby_marks 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -142,7 +142,7 @@ module RubyMarks
142
142
  mark_height >= group.mark_height_with_down_tolerance
143
143
 
144
144
  group.marks.each_pair do |key, marks_array|
145
- mark_positions = mark[:y1]-10..mark[:y1]+10
145
+ mark_positions = mark[:y1]-group.mark_width_with_down_tolerance..mark[:y1]+group.mark_width_with_down_tolerance
146
146
 
147
147
  marks_array.each do |m|
148
148
  if mark_positions.include?(m.coordinates[:y1])
@@ -1,3 +1,3 @@
1
1
  module RubyMarks
2
- VERSION = "0.2.5".freeze
2
+ VERSION = "0.2.6".freeze
3
3
  end
data/lib/ruby_marks.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'RMagick'
3
- require 'sane_timeout'
3
+ require 'timeout'
4
4
  require 'ruby_marks/version'
5
5
  require 'ruby_marks/support'
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_marks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -28,22 +28,6 @@ dependencies:
28
28
  - - ! '>='
29
29
  - !ruby/object:Gem::Version
30
30
  version: '0'
31
- - !ruby/object:Gem::Dependency
32
- name: sane_timeout
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
39
- type: :runtime
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
31
  description: A simple OMR tool
48
32
  email:
49
33
  - andrerpbts@gmail.com