copy_tuner_incompatible_search 2.0.0 → 2.0.1

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: bc4286519e2113ead29b31af8cf83dfd670a7c6f6f9c6bdc64a04521761449c8
4
- data.tar.gz: b3d299b35e57cab0718788e1835b5d9c962af93bce74949fe178b235406472d1
3
+ metadata.gz: d6bc7cc595b9aadee9cb773da993462cdf51b49fabef310a31cfa636f124a4b7
4
+ data.tar.gz: 5b99d147e99c605f039f73f6eb16d6880c0a36742752437614125fcc65e4636f
5
5
  SHA512:
6
- metadata.gz: d444bc38349d99fecda3dd7f5bf6380809291f8f33b086a258ce7a32b86e454606028743763ef1f28b02cb1f822a831820e304ea3e26b928ab7a5f87aa3c4362
7
- data.tar.gz: e251abc409a2d201075202ded4a7f1659664aa9ed37b3b9557cc79c83c891f92a0c23b2f77bae137db3150fa65348963aafab9e0be4b2c86222ee7de1fe81da8
6
+ metadata.gz: 2842cc0a5cda03c79082740fa3076a58e0d66a7cedaf6c142a115d7949bccc4aa90ec51f8f7238486e2f73039924b6c83599982e12d490aa0ccb173ab9403710
7
+ data.tar.gz: '06394d4db928e189feef79991fd5ae626e9bfe925248d62fdc8069baf5ad8cc0c73b45956f6aeef96fae4f4adc5323546db0155c7f62d3ee46b40b3413dd5fac'
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  ## [Unreleased]
2
+ ## [2.0.1] - 2024-05-04
3
+ - Fix false positive git grep result
2
4
  ## [2.0.0] - 2024-05-03
3
5
 
4
6
  - 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
@@ -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.1'
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Junichi Ito