Pickaxe 0.4.3 → 0.4.4
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/test.rb +3 -3
- metadata +3 -3
data/lib/pickaxe.rb
CHANGED
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:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 4
|
10
|
+
version: 0.4.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dawid Fatyga
|