pnote_client 2.3.0 → 2.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f55161957eb41b02e736937e17854bb20f353f5d67296aac4c3d71ba720462b
4
- data.tar.gz: '05397c7bfa6567dbde1ba88d5cb086143be08a590a9f79f8bf0dc4410d9089d4'
3
+ metadata.gz: aef39a459b8d9476395f19ca49d5c57fb4310c9abb254cc080f29c4d7ffc4bf2
4
+ data.tar.gz: 4f6612801890837e093d951fdd80d0d7f61c675469aa83f424525bdb75f88bfd
5
5
  SHA512:
6
- metadata.gz: c714b9c5cf37cd7dd00a75c97154a8ba1ccfdc46d1bba1e85e7f651abe3f329910ff07bcc9d2dab5abe0b7dc39996b2cf48137dfa55c41f1d71cd4a6e28b8f78
7
- data.tar.gz: 18198bc923ee330a8289ba21a79f238ac6b844ecb695f540fc666f0b03c517f5705d25b28dfa323769b8cf96971366a22ac09654440d1a7c9668b223c88c36d2
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 >= 20
82
+ if problem.answer.length >= 15
83
83
  return {
84
84
  valid: false,
85
85
  type: :warning,
86
- message: "문제 정답의 길이가 20자 이상입니다.",
86
+ message: "문제 정답의 길이가 15자 이상입니다.",
87
87
  detail: "문제 질문: #{problem.question}\n문제 정답: #{problem.answer}"
88
88
  }
89
89
  end
@@ -1,3 +1,3 @@
1
1
  module PnoteClient
2
- VERSION = "2.3.0"
2
+ VERSION = "2.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pnote_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bluesh55