lhj-tools 0.2.41 → 0.2.42
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 +4 -4
- data/lib/lhj/command/jenkins/jenkins_build.rb +14 -11
- data/lib/lhj/helper/traditional_check_helper.rb +4 -3
- data/lib/lhj/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8adac878842cba0d2dc3c229403edc348ef61456a76d9c40221e713295f1e5f9
|
|
4
|
+
data.tar.gz: 17ec2c41a23fd88447c15df81abdf33fade4f1539097497a44cc0749573ac70e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f43f25425a8d1c27a1e3ea0549a353a26ec8e43681570f1e241fb8325b0b1767f623d902b5d26c92871413a46de7533585867d3859e18b11e785ece8a16e8c0
|
|
7
|
+
data.tar.gz: 6a67cf5b7cd839292d7de118b764ae3126dc3ac62d1fa140e0aedb1ee36bb490d5494a23268def58d25c09672064ae98217e52dcf00dcd8344a42ddcd3e47d99
|
|
@@ -46,17 +46,20 @@ module Lhj
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def handle
|
|
49
|
-
file = File.join(Lhj::Config.instance.home_dir, 'all_device.txt')
|
|
50
|
-
File.open(file, 'r+') do |f|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
end
|
|
59
|
-
|
|
49
|
+
# file = File.join(Lhj::Config.instance.home_dir, 'all_device.txt')
|
|
50
|
+
# File.open(file, 'r+') do |f|
|
|
51
|
+
# f.each_line do |line|
|
|
52
|
+
# ma = line.match(/(?<device>[^\s]*)(\s*)(?<name>.*)/)
|
|
53
|
+
# device = ma[:device]
|
|
54
|
+
# name = ma[:name].gsub(/(\S*)\s(\S*)\s(.*)/, '\\1-\\2-\\3')
|
|
55
|
+
# name = name.gsub(/\s/, '')
|
|
56
|
+
# add_device(device, name)
|
|
57
|
+
# end
|
|
58
|
+
# end
|
|
59
|
+
|
|
60
|
+
path = '/xxxx'
|
|
61
|
+
Lhj::TraditionalCheckHelper.check_ignore(path)
|
|
62
|
+
|
|
60
63
|
# api = Lhj::YapiHelper.new(project_id: 694, interface_id: 70595, model_name: 'Order', model_pre: 'AA')
|
|
61
64
|
# api.process
|
|
62
65
|
# file_list = api.save_to_file
|
|
@@ -48,10 +48,11 @@ module Lhj
|
|
|
48
48
|
next if line =~ %r{/\*.*\*/}
|
|
49
49
|
next if line =~ %r{//} && line.gsub(%r{//.*}, '') !~ /[\u4e00-\u9fa5]/
|
|
50
50
|
next if line =~ /#pragma/
|
|
51
|
-
next if line =~ /log|Log|LOG/
|
|
51
|
+
next if line =~ /log|Log|LOG|NSCAssert/
|
|
52
52
|
next unless line =~ /[\u4e00-\u9fa5]/
|
|
53
|
-
next unless Lhj::Trans::Helper.instance.contain_zh_hk(line)
|
|
54
|
-
next if line =~ /\[param setObject
|
|
53
|
+
next unless Lhj::Trans::Helper.instance.contain_zh_hk(line.gsub(%r{//.*}, ''))
|
|
54
|
+
next if line =~ /\[param setObject:.*forKey:@".*"\];/
|
|
55
|
+
next if line =~ %r{//.*ignore}
|
|
55
56
|
|
|
56
57
|
result << { idx: idx + 1, cn: line.strip, hk: Lhj::Trans::Helper.instance.trans_zh_hk_str(line).strip }
|
|
57
58
|
end
|
data/lib/lhj/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.2.42
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- lihaijian
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-05-
|
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: xcodeproj
|