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 +4 -4
- data/lib/lhj/helper/app_version_info.rb +1 -0
- data/lib/lhj/helper/pgyer_helper.rb +8 -3
- 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: b6f6a3fc5a64065faa8bcb7aa05a27c54ed132f2927f066fc59e2c3baba316d2
|
|
4
|
+
data.tar.gz: 6869c78cd31dcaea3129fbcd6d9b80b3300305482023a9e408b990424433aba0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be09281aae804bc6417f82d92280adf4c2648983ababc591db31ac1d54b357e2c22900b81e9ddf5873e8f46c3db1fa9cb8434ad7115830a70be98451e46f4973
|
|
7
|
+
data.tar.gz: 1a9588d30b4e319f9728a3db1afda29e4fb58b3f6ba11758cb71e617fca031cb9b967670f8790b7a04d90374133d4d67b2c00bb5ffaa9134109f6a0788bd4317
|
|
@@ -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.
|
|
96
|
+
FileUtils.rm_r Dir.glob("#{path}/archive*.zip")
|
|
96
97
|
end
|
|
97
98
|
|
|
98
99
|
def render_template
|
|
99
|
-
|
|
100
|
-
|
|
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
|
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.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-
|
|
11
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: claide
|