Pickaxe 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/pickaxe.rb +1 -1
  2. data/lib/pickaxe/main.rb +3 -1
  3. metadata +3 -3
data/lib/pickaxe.rb CHANGED
@@ -5,7 +5,7 @@ require "active_support/all"
5
5
  $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
6
6
 
7
7
  module Pickaxe
8
- VERSION = "0.5.2"
8
+ VERSION = "0.5.3"
9
9
 
10
10
  class PickaxeError < StandardError; end
11
11
 
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::TRUNC|File::CREAT))
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
9
+ - 3
10
+ version: 0.5.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dawid Fatyga