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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86000f5dcd64fbabdb92a6b83c1db4d5edfd852aebe96faa318c5b9444844027
4
- data.tar.gz: 78d79c790f374888cb601c3647d4dd1853d6c4da9075db539b6f8bf82a6dc7fe
3
+ metadata.gz: 5c66e827342a78b13c1b2164a76a28622b9c20b8d3970ae68cf89a03c32099f5
4
+ data.tar.gz: 8daad6f1e59e9bcd0e4bbe7d363d7d5dab23279f09ac54305f149ca34b18314d
5
5
  SHA512:
6
- metadata.gz: abdc44a994236647616b5528610daafc931fda00c2df304ddace8cc3e12e9789c836c7cbe73dc6b078f9ab3d676ccf6b687fef826c974f7ee8119ac329802b8e
7
- data.tar.gz: bef0c5dc805e7828e32dd15ac7efefd946141da0d268a8df345de36467a4b0a939c053f565da2d1241a7d41c87120a6d995a9d055945cc3faf08ba8188950628
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lhj
4
- VERSION = '0.2.52'
4
+ VERSION = '0.2.54'
5
5
  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.2.52
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-08 00:00:00.000000000 Z
11
+ date: 2023-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj