lhj-tools 0.2.76 → 0.2.78

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: 0ff453988d6ea9c2bb877d84e1ecf252763a5255cd40f037f11fccc343fb29b7
4
- data.tar.gz: ff065515c59fd2b7fd2bbc1dd9d6797b095b7568f74d16c67466e495b398585e
3
+ metadata.gz: 6ff59987d90ae304429c431a1fe94d2fddb3160bcc9f50510556e90d65222800
4
+ data.tar.gz: 513c1543f8dda30567bfd083261aa0d0f6ab6e1c91c2a482c0dc31ff546c40f3
5
5
  SHA512:
6
- metadata.gz: 7c57ef0fa0e8efe87101e22717836e7da3bb61c7b2e05bc731f09989042f65f03d5d16229fa03f7dde3439ae77db3ec170c0aa442ccc116d437b83029a215e7c
7
- data.tar.gz: 99009572f8b1a2880fd5f85458b360edc625f84fd32a40c6a8ed28b93df971a1428a066a0d3180f6bfbc0293f9493e99b0fff78e73a5211b2ca940593d23c6ba
6
+ metadata.gz: 5d836dfa4b88b0469ee79039e7a00c75787d29dd37ce75f8eaa63f9847f4b8223799049d3972c158b2d345b95a850eceb01b0dae2e7d316c245f8a79b202a42e
7
+ data.tar.gz: 106935c89c4b2d32f0fa72fd5e02e7ec0cb2351f1b2d1cc149d89bde47b4a8ae43ca72c69e2a55e18aa09e4a4cf0f2120935f802b1eef98f9d694b94f814fba9
@@ -14,6 +14,7 @@ module Lhj
14
14
  file_name = File.basename(f)
15
15
  wrapper_map = find_available_wrapper(f)
16
16
  # block循环引用提醒
17
+ # wrapper_map[:blocks].each { |l| puts l[:line] }
17
18
  handle_block_notify(file_name, wrapper_map[:blocks]) if wrapper_map[:blocks].length.positive?
18
19
  # 处理高版本api提示
19
20
  infos = handle_available_file(f, wrapper_map[:avails])
@@ -49,7 +50,7 @@ module Lhj
49
50
  end
50
51
 
51
52
  next if multi_comment
52
- next if line =~ %r{\s*//}
53
+ next if line =~ %r{\s*//} && line =~ %r{[^\S]+//}
53
54
 
54
55
  if line =~ API_AVAILABLE_KEY_BEGIN_REGEX || available_idx.positive?
55
56
  available_idx += 1 if line =~ /\{/
@@ -71,10 +72,11 @@ module Lhj
71
72
  def self.handle_block_notify(file_name, wrapper_lines)
72
73
  arr = wrapper_lines.filter { |l| l[:position] != :start }
73
74
  arr.filter! { |l| l[:position] != :end }
74
- arr.filter! { |l| l[:line] =~ /self/ || l[:line] =~ /\s+_/ }
75
+ arr.filter! { |l| l[:line] =~ /self/ || l[:line] =~ /\W+_/ }
75
76
  arr.filter! { |l| l[:line] !~ /\^/ }
76
77
  arr.filter! { |l| l[:line] !~ /weak/ }
77
78
  arr.filter! { |l| l[:line] !~ /strong/ }
79
+ arr.filter! { |l| l[:line] !~ /mas/ }
78
80
  return if arr.empty?
79
81
 
80
82
  puts "源文件:#{file_name}"
data/lib/lhj/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lhj
4
- VERSION = '0.2.76'
4
+ VERSION = '0.2.78'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhj-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.76
4
+ version: 0.2.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-11 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj