Pickaxe 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/pickaxe.rb +1 -1
  2. data/lib/pickaxe/test.rb +3 -3
  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.4.3"
8
+ VERSION = "0.4.4"
9
9
 
10
10
  class PickaxeError < StandardError
11
11
  attr_reader :status_code
data/lib/pickaxe/test.rb CHANGED
@@ -110,7 +110,7 @@ module Pickaxe
110
110
  end
111
111
 
112
112
  class Question < Struct.new(:file, :index, :content, :answers)
113
- RE = /^\s*(\d+)\.?\s*(.+)$/
113
+ RE = /^\s*(\d+)\.?\s*(.+)$/u
114
114
 
115
115
  def self.parse(file, answers)
116
116
  content = []
@@ -175,8 +175,8 @@ module Pickaxe
175
175
  end
176
176
 
177
177
  class Answer < Struct.new(:content, :index, :correctness)
178
- RE = /^\s*(>+)?\s*(\?\?)?\s*\(?(\w+)\)\s*(.+)$/
179
- LINE_RE = /^\s*(\w+)/
178
+ RE = /^\s*(>+)?\s*(\?\?)?\s*\(?(\w+)\)\s*(.+)$/u
179
+ LINE_RE = /^\s*(\w+)/u
180
180
 
181
181
  def self.parse(file, lines)
182
182
  m = RE.match(lines.shift)
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: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dawid Fatyga