lhj-tools 0.1.19 → 0.1.20
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/log_helper.rb +3 -1
- data/lib/lhj/tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acfdd1c9835fbe98c0fb04ff0e7568fc8092afbb22561e80c8e7f4098be4a335
|
4
|
+
data.tar.gz: cd973dbfdc90b223f5b281ef3e5979c83b7955b05c85414dc2fa6e68a5e83aab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a265f292ec0d52c699c53f5be1a3c757a3beeb5b827fd98ea102d2c80941cfbdef005e5fd04080130deca32ee6010d402f5b23f5042c8223079ce86cea132b7c
|
7
|
+
data.tar.gz: d6a3dc3da4e9f486cc3c587938313dfdb0ead5cee8655c58ea142e8e021338dbb167803734373856617519ab3d88ad4e899c36190b5971757c24f13cbf27ecef
|
@@ -36,7 +36,9 @@ module Lhj
|
|
36
36
|
changelog = Lhj::Actions.git_log_between(' %an, %ar - %s;', from, to, :exclude_merges, 'short', false)
|
37
37
|
changelog ||= ''
|
38
38
|
changelog&.gsub("\n\n", "\n")
|
39
|
-
changelog.gsub('seconds ', '秒').gsub('minutes ', '分钟').gsub('hours ', '小时').gsub('days ', '天').gsub('ago ', '前')
|
39
|
+
changelog = changelog.gsub('seconds ', '秒').gsub('minutes ', '分钟').gsub('hours ', '小时').gsub('days ', '天').gsub('ago ', '前')
|
40
|
+
changelog = '此次打包没代码更新' if changelog.empty?
|
41
|
+
changelog
|
40
42
|
end
|
41
43
|
|
42
44
|
def save_last_commit_hash
|
data/lib/lhj/tools/version.rb
CHANGED