lhj-tools 0.1.54 → 0.1.55
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lhj/helper/app_version_info.rb +9 -0
- data/lib/lhj/helper/pgyer_helper.rb +5 -5
- data/lib/lhj/tools/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: b66a2c394691aa23ab4da26a83f5f9623e68c4355cb7f782916568f969a17b6d
|
4
|
+
data.tar.gz: 9b41f62a7770b26363f9db7b434f1e56b3fb3d72de4e5c78cd10f3f9478d5018
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f1fcb3e75bf22881735c6e768d3c95cc0d506f89641edf52695565b700b7e7e92cebecaa7bef7a000f19279d487389597a1581b8e82e9146f5eb1e9ded789ee
|
7
|
+
data.tar.gz: 8b3900e23599f314e11205b488b0804e31e90f7080527c1f3635da9258ee1f13c8ee45b19e62657a7d9701edff2dc19b0fa2e657dbf137d9897a3c0d9cf01cb3
|
@@ -9,6 +9,15 @@ module Lhj
|
|
9
9
|
@env = env
|
10
10
|
@build_number = build_number
|
11
11
|
@work_path = work_path
|
12
|
+
setup_config
|
13
|
+
end
|
14
|
+
|
15
|
+
def setup_config
|
16
|
+
number = build_app_version_no
|
17
|
+
Dir.chdir(@work_path) do
|
18
|
+
command = %(xcrun agvtool new-version -all #{number})
|
19
|
+
Actions.sh(command, log: false)
|
20
|
+
end
|
12
21
|
end
|
13
22
|
|
14
23
|
# build_app_version (build_app_version_no) (build: build_version)
|
@@ -64,11 +64,11 @@ module Lhj
|
|
64
64
|
@result = response.body
|
65
65
|
puts @result
|
66
66
|
puts 'upload success'
|
67
|
-
if @result['data'] && @result['data']['appUpdateDescription'] && @env == :uat
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
end
|
67
|
+
# if @result['data'] && @result['data']['appUpdateDescription'] && @env == :uat
|
68
|
+
# str = Lhj::TbHelper.trans_tb(@result['data']['appUpdateDescription'])
|
69
|
+
# str = Lhj::VikaHelper.trans_vika(str)
|
70
|
+
# @result['data']['appUpdateDescription'] = str
|
71
|
+
# end
|
72
72
|
rescue Faraday::TimeoutError
|
73
73
|
puts 'upload fail'
|
74
74
|
end
|
data/lib/lhj/tools/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.1.
|
4
|
+
version: 0.1.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lihaijian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|