Pickaxe 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pickaxe.rb +1 -1
- data/lib/pickaxe/main.rb +3 -1
- metadata +3 -3
data/lib/pickaxe.rb
CHANGED
data/lib/pickaxe/main.rb
CHANGED
@@ -21,7 +21,7 @@ END_OF_TEST
|
|
21
21
|
return if options[:syntax_check]
|
22
22
|
|
23
23
|
@logger = Logger.new(File.open('answers.log',
|
24
|
-
File::WRONLY|File::
|
24
|
+
File::WRONLY|File::APPEND|File::CREAT))
|
25
25
|
@logger.formatter = lambda { |s, t, p, msg| msg.to_s + "\n" }
|
26
26
|
|
27
27
|
@questions = @test.shuffled_questions
|
@@ -123,8 +123,10 @@ END_OF_HELP
|
|
123
123
|
@stats = @test.statistics!(@answers)
|
124
124
|
|
125
125
|
@answers.each do |question, answers|
|
126
|
+
@logger << "!" unless question.correct?(answers)
|
126
127
|
@logger << ("#{question.index}: #{answers.join(" ")}\n")
|
127
128
|
end
|
129
|
+
@logger << "\n"
|
128
130
|
|
129
131
|
puts
|
130
132
|
puts "Time: #{spent?}"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Pickaxe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dawid Fatyga
|