lhj-tools 0.2.39 → 0.2.40

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: 01c752db0ff29bf322154480363a55c772e99e7b0239510a0b68abd39d9981f3
4
- data.tar.gz: 49691d4e19a4226fe95c639282a75b6f08d31cfd30d7e0071c9bf2bdb019a312
3
+ metadata.gz: d7464bda2e8947992a5c10f34701a2db7aedf74a8c1653c22f3ab9da742361b7
4
+ data.tar.gz: ff85cddfa50d5bfffbb283edccc55358662417191132929ac826c17025dd2385
5
5
  SHA512:
6
- metadata.gz: 359a0e2bbe0cd16d66300c6dd17ec92d7ca748a146f4d0f19c64ac6a93852ef1926d2e65d84b276d784bbff56728aded9a9b1ebfd452a3ccd6537a0378a866be
7
- data.tar.gz: 448259b5c7fbe90fc023c836d3b59a08844cadeeba8ccd0ebe1ac6062e6a4a480a78845ddfc500bb8ff7f30b25d5b39ebdf72c42cb89c97c5b666a62b4fa3078
6
+ metadata.gz: 2f08711878bb019829ca0d3a8c7eb69de2a0198216144f21fc72f88ad021754b60b0068be8c8e37af67c38d39781083f4a8eb6f6fa715aee566f9f4e8e6bb714
7
+ data.tar.gz: c7a2fd22a737567e7d414eda850bae6cd1ab1476348017d6dba0f33d1bdb0e155524d4deceba55e55ae87f87e522bc6dead82dc46a6295b7dc074b8cfaf6d365
@@ -18,6 +18,7 @@ module Lhj
18
18
 
19
19
  result[File.basename(f)] = infos
20
20
  end
21
+ # show_result(result)
21
22
  result.keys.each_slice(10) { |a| notify(result.slice(*a)) }
22
23
  end
23
24
 
@@ -38,9 +39,13 @@ module Lhj
38
39
  multi_comment = false
39
40
  f.readlines.each_with_index do |line, idx|
40
41
  multi_comment = true if line =~ %r{/\*} && line !~ %r{\*/} && !multi_comment
41
- multi_comment = false if line !~ %r{/\*} && line =~ %r{\*/} && multi_comment
42
+ if line !~ %r{/\*} && line =~ %r{\*/} && multi_comment
43
+ multi_comment = false
44
+ next
45
+ end
42
46
 
43
47
  next if multi_comment
48
+ next if line =~ %r{/\*.*\*/}
44
49
  next if line =~ %r{//} && line.gsub(%r{//.*}, '') !~ /[\u4e00-\u9fa5]/
45
50
  next if line =~ /#pragma/
46
51
  next if line =~ /log|Log|LOG/
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.39'
4
+ VERSION = '0.2.40'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhj-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.39
4
+ version: 0.2.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian