lhj-tools 0.2.58 → 0.2.60
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: 3a0d582db4ef32f2a5a672b4d00f12f6f22d431dacba91600acc4ff86928bd1b
|
4
|
+
data.tar.gz: 24e872bb4b90c5df2594375a0870a82e3743fdda818663f1ca3d7e5769e9f2ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eaeb8b7329646a485d38ed3c9cc9a38f02b4797a8adbbf8e9132ef7c767ca8202ccc7a6256397410a41e91408cfbf7fe7f8afb160b506d85d1a1bbd566e5ea2
|
7
|
+
data.tar.gz: f12e98e6d1d9eae53e82847cf90746094dd0a940a3a3954da5279e8256f093950f70983520cbaf4f3a3c09e6f36d67b0416a5d7a6bc4767cedd7604aaa37a088
|
@@ -3,7 +3,7 @@ module Lhj
|
|
3
3
|
|
4
4
|
OSS_PATH_REGEX = /(?<var>[a-zA-Z0-9_]+)\W*=.*ml_addOssPathIgnoreGif:.*/.freeze
|
5
5
|
|
6
|
-
SD_IMAGE_OSS_REGEX = /sd_setImageWithURL:\s*\[NSURL\s*URLWithString:(?<url>[^\]]
|
6
|
+
SD_IMAGE_OSS_REGEX = /sd_setImageWithURL:\s*\[NSURL\s*URLWithString:(?<url>([^\[\]])*(\[[^\]]+\])*)\]/.freeze
|
7
7
|
|
8
8
|
def self.check(path, type = 'm')
|
9
9
|
all_files = Dir.glob("#{path}/**/*.{#{type}}").reject do |p|
|
@@ -14,7 +14,8 @@ module Lhj
|
|
14
14
|
infos = handle_file(f)
|
15
15
|
result[File.basename(f)] = infos if infos.length.positive?
|
16
16
|
end
|
17
|
-
|
17
|
+
result
|
18
|
+
# show_result(result)
|
18
19
|
end
|
19
20
|
|
20
21
|
def self.show_result(result)
|
@@ -22,6 +23,7 @@ module Lhj
|
|
22
23
|
puts k
|
23
24
|
v.each do |o|
|
24
25
|
puts "第#{o[:idx]}行:"
|
26
|
+
puts o[:var]
|
25
27
|
puts o[:line]
|
26
28
|
end
|
27
29
|
end
|
@@ -66,7 +68,7 @@ module Lhj
|
|
66
68
|
return nil if oss_url =~ /ml_addOssPathIgnoreGif/
|
67
69
|
return nil if oss_url =~ /x-oss-process=style/
|
68
70
|
|
69
|
-
{ idx: idx + 1, line: line.strip }
|
71
|
+
{ idx: idx + 1, line: line.strip, var: oss_url }
|
70
72
|
end
|
71
73
|
|
72
74
|
end
|
@@ -10,7 +10,7 @@ require_relative 'tb_config'
|
|
10
10
|
module Lhj
|
11
11
|
# pgyer upload
|
12
12
|
class Pgyer
|
13
|
-
API_HOST = 'https://upload.
|
13
|
+
API_HOST = 'https://upload.xcxwo.com/apiv1/app/upload'
|
14
14
|
|
15
15
|
attr_reader :api_key, :user_key, :password, :result
|
16
16
|
|
@@ -111,7 +111,7 @@ module Lhj
|
|
111
111
|
end
|
112
112
|
|
113
113
|
def app_download_url
|
114
|
-
"https://www.
|
114
|
+
"https://www.xcxwo.com/#{@result['data']['appKey']}"
|
115
115
|
end
|
116
116
|
end
|
117
117
|
end
|
@@ -7,7 +7,7 @@ require 'lhj/helper/pgyer_config'
|
|
7
7
|
module Lhj
|
8
8
|
# pgyer upload
|
9
9
|
class PgyerShortcut
|
10
|
-
API_SHORTCUT_HOST = 'https://www.
|
10
|
+
API_SHORTCUT_HOST = 'https://www.xcxwo.com/apiv2/app/getByShortcut'
|
11
11
|
|
12
12
|
attr_reader :api_key, :user_key, :password, :shortcut_url
|
13
13
|
|
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.60
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lihaijian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|