lhj-tools 0.2.41 → 0.2.43
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe9fe8c855ed2aa1664478588cc786b1412ef8137988a88344628106dcb566fd
|
4
|
+
data.tar.gz: 599f730a8c0621fbe937d39340716646d517f0da3286fdc7527bde81fc110104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17b08baf6bf14830e07e8c92528634c94545c589af9d0ce95765e7424bac1d80dcbc66666cdc74dff139cf3a8ecf36c4944c38eded13543826a9f1efe949b740
|
7
|
+
data.tar.gz: 81c6a336439fb70d38a25b70b16e12ba967dbcc1c8a72af03a735861ecb061589018ca9d410dad1bfeb256a2c175a7b3e27b519338b434f4f1427ef5e4bed9a4
|
@@ -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.43
|
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
|