lhj-tools 0.1.48 → 0.1.49

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: 98c79bee846ee40347cbf2c34c2315574cc66d9f7745e0f9668be75cb2cbe6bb
4
- data.tar.gz: e86ccbb315e7d6e8e9b0b07e468bc25fc3efa9fcd688deb0ec903e411de1ba60
3
+ metadata.gz: 7d7518e273318146bfc0d2f735c25826d778c77ce9bd594c07caef20a666a413
4
+ data.tar.gz: 0c10a6f9df643fe2c7eba3c167eb19a08eac57569134e69288d8df62ae578552
5
5
  SHA512:
6
- metadata.gz: f6f529d7ccc9a3e3999e9cceca6b4b92b779249bffe537807ebf313e5e74c3063231db450a0b88737144a80babd6f69b079d70ce7fe7f4bbc15a3fff5dbbf621
7
- data.tar.gz: f32d8f5ec2800d52352aa78e6a729032a62484e8e8306a53f2dd22cd37a4765b41f17588c16ce07d0e8f5402ef8a4ec9f0f3419c83780071b12f838809cc352f
6
+ metadata.gz: 32799cc62fdc694c03859a7a047186848ae4d1fb6b4d2684806191f405ff10ce9501481d631d62c227cfa9047ba980e19023730321c58246aa003b5459ac438a
7
+ data.tar.gz: 9401529e2375db05d724d377697d0e315b9d72aaf4203a7ee308c07914d0347ea2260fbad9a9cfe4db295956b24f89a414a08ba3f330b2601539c85f2785d8fa
@@ -39,7 +39,7 @@ module Lhj
39
39
  end
40
40
 
41
41
  def pod_folder_name
42
- File.join(@current_path, 'MacauLife', 'CustomPods')
42
+ File.join(@current_path, 'CustomPods')
43
43
  end
44
44
 
45
45
  def child_dir
@@ -80,14 +80,13 @@ module Lhj
80
80
  # step 1
81
81
  folder_path_dir = path
82
82
  rand_key = rand(100) % 3
83
- zipped_path = "Life_i_#{rand_key}.zip"
84
- zipped_path = "Life_a_#{rand_key}.zip" unless file.end_with?('.ipa')
85
- # Actions.sh(%(cd "#{folder_path_dir}" && zip -r "#{zipped_path}" "#{folder_path_dir}"/*), log: false)
86
- Actions.sh(%(cd "#{folder_path_dir}" && zip -r "#{zipped_path}" "#{folder_path_dir}"/* -x="#{folder_path_dir}"/Code/MacauLife.ipa), log: false)
87
-
83
+ zipped_name = "archive_#{rand_key}.zip"
84
+ 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
+ Actions.sh(command, log: false)
88
87
  # step 2
89
- oss_key = "code/#{zipped_path}"
90
- oss_file = File.join(folder_path_dir, zipped_path)
88
+ oss_key = "code/#{zipped_name}"
89
+ oss_file = File.join(folder_path_dir, zipped_name)
91
90
  file_exists = File.exist?(oss_file)
92
91
  return unless file_exists
93
92
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lhj
4
4
  module Tools
5
- VERSION = "0.1.48"
5
+ VERSION = "0.1.49"
6
6
  end
7
7
  end
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.48
4
+ version: 0.1.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide