pnote_client 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/pnote_clean +1 -1
- data/lib/pnote_client/validators/pnote_validator.rb +2 -2
- data/lib/pnote_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aef39a459b8d9476395f19ca49d5c57fb4310c9abb254cc080f29c4d7ffc4bf2
|
4
|
+
data.tar.gz: 4f6612801890837e093d951fdd80d0d7f61c675469aa83f424525bdb75f88bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a5598fd95ab076a67427f3e180b966862410b8b7f3f1d55c8dc3aa87c7caee0080963f03fa7a8de4d07245fed95fd10bd90b6926433a751083cb5eca2b0d5b1
|
7
|
+
data.tar.gz: e28f1ffe582c2350efb09af2772cc44e554ff63043427d050e0bd38fa3a836214af095889d0b65c2e378e854017f116e2d02a610b44dab531d4379ab05464ea1
|
data/exe/pnote_clean
CHANGED
@@ -37,7 +37,7 @@ output_dirpath = File.join(input_dir_path, "pnote_clean", "#{filename}_output")
|
|
37
37
|
FileUtils.mkdir_p(output_dirpath)
|
38
38
|
output_filepath = File.join(output_dirpath, "#{filename}.hml")
|
39
39
|
|
40
|
-
junk_regex = %r(from\s
|
40
|
+
junk_regex = %r(from\s*=+\s*(?:족보닷컴[\s\S]*?)=+)
|
41
41
|
clean_content = hml_content.gsub(junk_regex, '')
|
42
42
|
write_file(clean_content, output_filepath)
|
43
43
|
|
@@ -79,11 +79,11 @@ module PnoteClient
|
|
79
79
|
}
|
80
80
|
end
|
81
81
|
|
82
|
-
if problem.answer.length >=
|
82
|
+
if problem.answer.length >= 15
|
83
83
|
return {
|
84
84
|
valid: false,
|
85
85
|
type: :warning,
|
86
|
-
message: "문제 정답의 길이가
|
86
|
+
message: "문제 정답의 길이가 15자 이상입니다.",
|
87
87
|
detail: "문제 질문: #{problem.question}\n문제 정답: #{problem.answer}"
|
88
88
|
}
|
89
89
|
end
|
data/lib/pnote_client/version.rb
CHANGED