ruby_marks 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -97,8 +97,8 @@ module RubyMarks
97
97
  multiple_marked_found = true if marks[line].size > 1
98
98
  unmarked_group_found = true if marks[line].empty?
99
99
  end
100
- marks.delete_if { |line, value| value.empty? }
101
- result[group.label.to_sym] = marks if marks.any?
100
+
101
+ result[group.label.to_sym] = marks
102
102
  end
103
103
 
104
104
  raise_watcher :scan_unmarked_watcher, result if unmarked_group_found
@@ -1,3 +1,3 @@
1
1
  module RubyMarks
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  end
@@ -130,7 +130,12 @@ class RubyMarks::RecognizerTest < Test::Unit::TestCase
130
130
  4 => ['D']
131
131
  }
132
132
  }
133
- assert_equal expected_hash, @recognizer.scan
133
+ result = @recognizer.scan
134
+ result.each_pair do |group, lines|
135
+ lines.delete_if { |line, value| value.empty? }
136
+ end
137
+ result.delete_if { |group, lines| lines.empty? }
138
+ assert_equal expected_hash, result
134
139
  end
135
140
 
136
141
 
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.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: