jkproof 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c4dd6088bbfae84cf3880b3e9bc0a0f9f3220d3f33a5385df216c9e9ce67198
4
- data.tar.gz: 9c350fd4c21848a1a8402e4dfca174779c3c754ee4c3f81fdb1a4a9525902943
3
+ metadata.gz: 2928cc7b5794c0a9204c9e1a18de9480d410c6fbd32f41560af28cf5a9184f86
4
+ data.tar.gz: a90fe135a4b9eaa3cc3d78d13b6ec0d5e27160c100b8f37afea9e92e252d04d6
5
5
  SHA512:
6
- metadata.gz: 1db6055e610a8a047c781e32e5f1b7c212c5d66e6a54cc6b92d6426016f8b5294acb57ef8faa7c2876d3ff5f7ebd0fe121e6778be57da36ba58c288507b25bb0
7
- data.tar.gz: 5b19c6b95040467d1499b085205139578810fe9362e22e56838212dcd2748570ed8cf1cba8987d1783def3779d9c6a68c5ddeff66f69095e1b51527119f8564b
6
+ metadata.gz: 96d4a39be90ab7d1a131c6f7663a031418d000fbe7e70ce835dc326856ea8b2f5f333799656b4d30b64c8cc912e2de89bb2350f99e1ed6706e201b87b368c7aa
7
+ data.tar.gz: da0d75018ca32cac561798766fc8f6764d242b89c39f061410f37c05f30185dc05f924a8147f41980007c0a2c3cede0c8626c6493ea056a4dae5810b8e7dbab1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ChangeLog
2
2
 
3
+ ## v1.1.3
4
+ - 表記揺らぎのある用語が複数個あった場合にすべて表示されないバグの修正
5
+ - 例:`"問合せ/問い合わせ/問い合せ" => [{wrong: "問い合わせ" correct: "お問い合わせ"}]`
6
+ - 戻り値に `type` ( `local` or `Yahoo` )を追加した
7
+ - どちらの辞書で誤りを検知したか特定しやすくするため
8
+
3
9
  ## v1.1.2
4
10
  - `gemspec` ファイルの微修正
5
11
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jkproof (1.1.0)
4
+ jkproof (1.1.3)
5
5
  activesupport
6
6
  dotenv
7
7
  highline
@@ -35,7 +35,7 @@ module Jkproof
35
35
  wrongs = fetch_wrong_words_than_long_correct_word(word['correct'], word['wrongs'])
36
36
  wrongs.each do |wrong|
37
37
  if excluded_correct_word.include?(wrong)
38
- wrong_words.push(correct: word['correct'], wrong: wrong)
38
+ wrong_words.push(type: 'local', correct: word['correct'], wrong: wrong)
39
39
  excluded_correct_word = excluded_correct_word.gsub(wrong, '####')
40
40
  end
41
41
  end
@@ -47,8 +47,8 @@ module Jkproof
47
47
  correct_word = word['correct']
48
48
  word['wrongs'].each do |wrong|
49
49
  if excluded_correct_word.include?(wrong)
50
- wrong_words.push(wrong: wrong, correct: correct_word)
51
- break
50
+ wrong_words.push(type: 'local', wrong: wrong, correct: correct_word)
51
+ excluded_correct_word = excluded_correct_word.gsub(wrong, '####')
52
52
  end
53
53
  end
54
54
  end
@@ -78,7 +78,7 @@ module Jkproof
78
78
  next unless r['Surface']
79
79
  next unless r['ShitekiWord']
80
80
 
81
- @yahoo_words.push(correct: r['ShitekiWord'], wrong: r['Surface'])
81
+ @yahoo_words.push(type: 'Yahoo', correct: r['ShitekiWord'], wrong: r['Surface'])
82
82
  end
83
83
  end
84
84
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jkproof
4
- VERSION = '1.1.2' # バージョンアップ
4
+ VERSION = '1.1.3' # バージョンアップ
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jkproof
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - tosite
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-04 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler