copy_tuner_incompatible_search 2.0.0 → 2.0.2

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: bc4286519e2113ead29b31af8cf83dfd670a7c6f6f9c6bdc64a04521761449c8
4
- data.tar.gz: b3d299b35e57cab0718788e1835b5d9c962af93bce74949fe178b235406472d1
3
+ metadata.gz: 1d8e36a8c2fe00fe286e5c1ddead546acc1f5b697798c8c62474f01905e95358
4
+ data.tar.gz: bbd8ecb9ca27bad1a3270653d2a2288c58235a00644262e57cce53faea3c799d
5
5
  SHA512:
6
- metadata.gz: d444bc38349d99fecda3dd7f5bf6380809291f8f33b086a258ce7a32b86e454606028743763ef1f28b02cb1f822a831820e304ea3e26b928ab7a5f87aa3c4362
7
- data.tar.gz: e251abc409a2d201075202ded4a7f1659664aa9ed37b3b9557cc79c83c891f92a0c23b2f77bae137db3150fa65348963aafab9e0be4b2c86222ee7de1fe81da8
6
+ metadata.gz: f065e961d42ecc2ada50b12700a0511ec81259b943e76a33891beead260f1daa2e54c5bc67f930c5af383c2a02b5334554c577b3114340b91301aa1ce5022693
7
+ data.tar.gz: e9fa13e7a77be62c0a9a04ec55cc0ecebfc6696f618e638659ab7386689e78adc687c266ecd86a7a7cba8c8faab153fb49b9413f36582f7f355f6b39bf1349ec
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  ## [Unreleased]
2
+ ## [2.0.2] - 2024-05-04
3
+ - Consider BOM in blurbs.csv
4
+ ## [2.0.1] - 2024-05-04
5
+ - Fix false positive git grep result
2
6
  ## [2.0.0] - 2024-05-03
3
7
 
4
8
  - Add command copy_tuner_incompatible_replace
@@ -142,7 +142,7 @@ module CopyTunerIncompatibleSearch
142
142
  end
143
143
 
144
144
  def grep_usage(key)
145
- `git grep -n "#{Regexp.escape(key)}"`
145
+ `git grep -n "['\\"]#{Regexp.escape(key)}['\\"]"`
146
146
  end
147
147
 
148
148
  def ignored_keys_text
@@ -137,7 +137,7 @@ module CopyTunerIncompatibleSearch
137
137
  end
138
138
 
139
139
  def blurbs_csv_text
140
- File.read(blurbs_path)
140
+ File.read(blurbs_path, encoding: 'bom|utf-8')
141
141
  end
142
142
 
143
143
  def search_ignored_keys
@@ -152,9 +152,7 @@ module CopyTunerIncompatibleSearch
152
152
  keys_with_special_chars = []
153
153
  all_blurb_keys = []
154
154
  CSV.parse(blurbs_csv_text, headers: true, quote_char: '"').each do |row|
155
- # FIXME: なぜか文字列で指定すると取得できない
156
- # row['key']
157
- key = row[0]
155
+ key = row['key']
158
156
  all_blurb_keys << key
159
157
  translation = row[1]
160
158
  if translation.match?(/&#\d+;|&\w+;/) && !key.match?(/[_.]html$/)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CopyTunerIncompatibleSearch
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copy_tuner_incompatible_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Junichi Ito