lhj-tools 0.2.52 → 0.2.53

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: 9d0195a376b281aa8638cfda14b9f42101ff923ae4d6b8c995cb8b6e9f8fc0b7
4
+ data.tar.gz: bf0fd19bd2cffcccc3ebc212877f5e370bb9ddc76642ea97257cfc8885e487d1
5
5
  SHA512:
6
- metadata.gz: abdc44a994236647616b5528610daafc931fda00c2df304ddace8cc3e12e9789c836c7cbe73dc6b078f9ab3d676ccf6b687fef826c974f7ee8119ac329802b8e
7
- data.tar.gz: bef0c5dc805e7828e32dd15ac7efefd946141da0d268a8df345de36467a4b0a939c053f565da2d1241a7d41c87120a6d995a9d055945cc3faf08ba8188950628
6
+ metadata.gz: f1c5a1ad3cab7d0342bac67005beb0ad8248337f93dde1c23fbd835521606b133d1b027a4edf0359ddc1bbe0f24c9cb7ab43a22867dcb8cc9dae89d5bce25a37
7
+ data.tar.gz: fc0c013ba68b122ff9e7a1a7430909470a2eb2227411d17605c5a3188fc5b859eedee6482d847cf576c59a10a8a36e8af129fb61da361f09ea560d736547979c
@@ -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.53'
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.53
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