lhj-tools 0.1.60 → 0.1.62
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/pgyer_helper.rb +10 -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: 3ba6211ebff2bc66ab95a3b3c7959156041b1c105c2e2b46cbf908a4bd5e126f
|
4
|
+
data.tar.gz: ee19c536c4c4c82fe9dfa9defe2c4db0e0dda9ad4eb287a3e861e3918b17f857
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ca8d2e5b7c738d0155ba72274dbe7c225b047e91b4efd2009651a7156e8d1cc49a8c29907c3cda8f251286f845f9f675b897ddb2cf82d5b8a5f44bd12cc8c6a
|
7
|
+
data.tar.gz: fa660c51bc40b2c39eada931362fb91a09c6f12986284c23914d93e5564cc42c2387b0f6c7bce2c70c845b51e1bfc2d3f498449985408cc833303aaf7d165b79
|
@@ -39,16 +39,14 @@ module Lhj
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
def upload_file(file, des)
|
43
|
-
|
44
|
-
end
|
42
|
+
# def upload_file(file, des)
|
43
|
+
# upload_with_path('', file, des)
|
44
|
+
# end
|
45
45
|
|
46
46
|
# @param [current path] path
|
47
47
|
# @param [upload file] file
|
48
48
|
# @param [desc] des
|
49
49
|
def upload_with_path(path, file, des)
|
50
|
-
update_description = @result[:update_description]
|
51
|
-
update_description = '' if update_description.nil?
|
52
50
|
params = {
|
53
51
|
'_api_key' => @api_key,
|
54
52
|
'uKey' => @user_key,
|
@@ -63,6 +61,7 @@ module Lhj
|
|
63
61
|
response = http_client.post API_HOST, params
|
64
62
|
@result = response.body
|
65
63
|
puts @result
|
64
|
+
Actions.sh('git restore ./', log: false)
|
66
65
|
puts 'upload success'
|
67
66
|
# if @result['data'] && @result['data']['appUpdateDescription'] && @env == :uat
|
68
67
|
# str = Lhj::TbHelper.trans_tb(@result['data']['appUpdateDescription'])
|
@@ -94,6 +93,12 @@ module Lhj
|
|
94
93
|
|
95
94
|
Lhj::OSS::Helper.instance.upload(oss_key, oss_file)
|
96
95
|
FileUtils.rm_r Dir.glob("#{path}/archive*.zip")
|
96
|
+
|
97
|
+
update_cmd = []
|
98
|
+
update_cmd << 'gem'
|
99
|
+
update_cmd << 'install'
|
100
|
+
update_cmd << "lhj-tools"
|
101
|
+
Actions.sh(update_cmd.join(' '), log: false, error_callback: nil)
|
97
102
|
end
|
98
103
|
|
99
104
|
def render_template
|
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.62
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lihaijian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|