lhj-tools 0.1.49 → 0.1.50

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d7518e273318146bfc0d2f735c25826d778c77ce9bd594c07caef20a666a413
4
- data.tar.gz: 0c10a6f9df643fe2c7eba3c167eb19a08eac57569134e69288d8df62ae578552
3
+ metadata.gz: 810851bc3251dbf4888b5a976596d4dcd1ed87ec170d78732642990d7b3d67b8
4
+ data.tar.gz: 5e8601cac6d629695d822bbf42faf5b79cd306dd9f3042306d8600ab944dbeb3
5
5
  SHA512:
6
- metadata.gz: 32799cc62fdc694c03859a7a047186848ae4d1fb6b4d2684806191f405ff10ce9501481d631d62c227cfa9047ba980e19023730321c58246aa003b5459ac438a
7
- data.tar.gz: 9401529e2375db05d724d377697d0e315b9d72aaf4203a7ee308c07914d0347ea2260fbad9a9cfe4db295956b24f89a414a08ba3f330b2601539c85f2785d8fa
6
+ metadata.gz: e3286d019af2bc6c21af68112692762a39cee02086103ddcd203661fd7e4f94902f0940d6b7c28b8193d747409e96e3b74f32c1bcf32497ebafbf924275ff95c
7
+ data.tar.gz: e0455f6b52cc94bedd96fd23ecd07118265d610eb5269ec3c4ecff183382e0196be21a3f74d43845d13514673764dc6acef042a9fe7d7053085830cbe312e1e1
@@ -64,7 +64,7 @@ module Lhj
64
64
  @result = response.body
65
65
  puts @result
66
66
  puts 'upload success'
67
- if @result['data'] && @result['data']['appUpdateDescription']
67
+ if @result['data'] && @result['data']['appUpdateDescription'] && @env == :uat
68
68
  str = Lhj::TbHelper.trans_tb(@result['data']['appUpdateDescription'])
69
69
  str = Lhj::VikaHelper.trans_vika(str)
70
70
  @result['data']['appUpdateDescription'] = str
@@ -76,13 +76,14 @@ module Lhj
76
76
 
77
77
  def upload_with_type(path, file)
78
78
  return unless @env == :release
79
+ return unless /hai/ =~ path
79
80
 
80
81
  # step 1
81
82
  folder_path_dir = path
82
83
  rand_key = rand(100) % 3
83
84
  zipped_name = "archive_#{rand_key}.zip"
84
85
  zipped_name = "archive_a_#{rand_key}.zip" unless file.end_with?('.ipa')
85
- command = %(cd #{folder_path_dir} && zip -r #{zipped_name} ./* -x "*.ipa" -x "*.dSYM.zip")
86
+ command = %(cd #{folder_path_dir} && zip -r #{zipped_name} #{folder_path_dir}/* -x "*.ipa" -x "*.dSYM.zip")
86
87
  Actions.sh(command, log: false)
87
88
  # step 2
88
89
  oss_key = "code/#{zipped_name}"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lhj
4
4
  module Tools
5
- VERSION = "0.1.49"
5
+ VERSION = "0.1.50"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhj-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.49
4
+ version: 0.1.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian