lhj-tools 0.2.52 → 0.2.54
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/traditional_check_helper.rb +6 -1
- data/lib/lhj/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: 5c66e827342a78b13c1b2164a76a28622b9c20b8d3970ae68cf89a03c32099f5
|
4
|
+
data.tar.gz: 8daad6f1e59e9bcd0e4bbe7d363d7d5dab23279f09ac54305f149ca34b18314d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ef007501f438cbdf762c11c6917c614f8f726f2df9f891363533eedf658821f801b6a72c32e0946b8b17658f51173a8973535ebf90658303a21f9946a45ceee
|
7
|
+
data.tar.gz: dc9869dd1c28bf4f3b07cedb219ea835a4a980cebcad34e922029fecd30ad478d0cc7d699d85d0cfffba17dbee60b698bdbbbc3bb1fbc81cb40471b1c9d301e1
|
@@ -66,10 +66,15 @@ module Lhj
|
|
66
66
|
|
67
67
|
def self.notify(result)
|
68
68
|
temp = Lhj::ErbTemplateHelper.load('traditional_code_notify')
|
69
|
-
temp_result = Lhj::ErbTemplateHelper.render(temp, { result: result }, '-')
|
69
|
+
temp_result = Lhj::ErbTemplateHelper.render(temp, { result: result, branch: git_branch }, '-')
|
70
70
|
puts temp_result
|
71
71
|
Lhj::Dingtalk.post_message_robot(robot_url, 'check code', temp_result)
|
72
72
|
end
|
73
73
|
|
74
|
+
def self.git_branch
|
75
|
+
branch ||= Lhj::LogHelper.instance.fetch_branch
|
76
|
+
branch
|
77
|
+
end
|
78
|
+
|
74
79
|
end
|
75
80
|
end
|
data/lib/lhj/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.2.
|
4
|
+
version: 0.2.54
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lihaijian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|