lhj-tools 0.1.57 → 0.1.59

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: bf0d16f649032902e604fa473c87bb216331af98a1b2ac6bc5789f4d071d2e06
4
- data.tar.gz: 29092ea4c0149f8444745c4d739bf4ed14b2109252c575a2b297ed26e5af66dc
3
+ metadata.gz: b6f6a3fc5a64065faa8bcb7aa05a27c54ed132f2927f066fc59e2c3baba316d2
4
+ data.tar.gz: 6869c78cd31dcaea3129fbcd6d9b80b3300305482023a9e408b990424433aba0
5
5
  SHA512:
6
- metadata.gz: a7a1b7631c050c2c06f250476db7126dbac04da145b8463f1790e1f94d08ead4128f238979c39fba0376467da02346c7dcd5f1488bd90e12514d5957f5d2322c
7
- data.tar.gz: 46dbc87040a631fb6b2a031ded28bcb3a4826159f07162637ba1408a538465a20b127b000eae42592438df2d85a0e309fab7890c35e68b29aa14965a77cf141d
6
+ metadata.gz: be09281aae804bc6417f82d92280adf4c2648983ababc591db31ac1d54b357e2c22900b81e9ddf5873e8f46c3db1fa9cb8434ad7115830a70be98451e46f4973
7
+ data.tar.gz: 1a9588d30b4e319f9728a3db1afda29e4fb58b3f6ba11758cb71e617fca031cb9b967670f8790b7a04d90374133d4d67b2c00bb5ffaa9134109f6a0788bd4317
@@ -22,6 +22,7 @@ module Lhj
22
22
  command = %(xcrun agvtool new-version -all #{number})
23
23
  Actions.sh(command, log: false)
24
24
  end
25
+ FileUtils.rm_r Dir.glob("#{@work_path}/archive*.zip")
25
26
  end
26
27
 
27
28
  # build_app_version (build_app_version_no) (build: build_version)
@@ -71,6 +71,7 @@ module Lhj
71
71
  # end
72
72
  rescue Faraday::TimeoutError
73
73
  puts 'upload fail'
74
+ FileUtils.rm_r Dir.glob("#{path}/archive*.zip")
74
75
  end
75
76
  end
76
77
 
@@ -92,12 +93,16 @@ module Lhj
92
93
  return unless file_exists
93
94
 
94
95
  Lhj::OSS::Helper.instance.upload(oss_key, oss_file)
95
- FileUtils.rm(oss_file) if file_exists
96
+ FileUtils.rm_r Dir.glob("#{path}/archive*.zip")
96
97
  end
97
98
 
98
99
  def render_template
99
- temp_str = File.read(File.join(Lhj::Config.instance.home_dir, 'pgyer.erb'))
100
- Lhj::ErbFormatter::Service.new(self).render_template(temp_str)
100
+ if @result.is_a? Hash
101
+ temp_str = File.read(File.join(Lhj::Config.instance.home_dir, 'pgyer.erb'))
102
+ Lhj::ErbFormatter::Service.new(self).render_template(temp_str)
103
+ else
104
+ @result
105
+ end
101
106
  end
102
107
  end
103
108
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lhj
4
4
  module Tools
5
- VERSION = "0.1.57"
5
+ VERSION = "0.1.59"
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.57
4
+ version: 0.1.59
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-22 00:00:00.000000000 Z
11
+ date: 2022-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide