lhj-tools 0.1.92 → 0.1.93

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e913a3b6a37362f81e34bae34ca1ccb2b03c830cf825ecc3af3d76482b34de3a
4
- data.tar.gz: a294ea2f480cf906f80180ea3dfc351097c69f5a2f25725c858f0380b13f52a3
3
+ metadata.gz: 115aebfec75b2f30347ce7250775845cdddf564c39ad2962f826562f499002cf
4
+ data.tar.gz: 81c289943888655414990f2d434ccdf6faceddceeaed04e48114f8fa61765a6b
5
5
  SHA512:
6
- metadata.gz: b4785975e8288571beccccee257c98f12d6ea88803c328c7df625d0bf0499ae2d7c6832d999553e39db9f82bbfe00238f732af749c1e1889af0ac53f58846517
7
- data.tar.gz: 43834bc4842e447c6badab7de4ae9bb1854213be4041d0a2d38c240faad13bb4ae50c504b68538beb39afea1e2674e5cc81f94917964420c71b8e8dcee2386f6
6
+ metadata.gz: d94dbc557c3e4ed53186da719aab95a644488f4d1ad3c58c5159480d9afc4800bd415c1d67e8b9a250b12b11b02564019dc50f55cffd85f3b99e446e0cbb8f51
7
+ data.tar.gz: 0da665c6a9eb3184c37495a20e2f42fecbdb2e16961d4a2ae4b84ea4df46f28cc481fe8f56a3f5253c60efaf3c07cb06991e8f11c51232a234c964fb00ed777a
@@ -12,6 +12,12 @@ module Lhj
12
12
  post_branch_message(http_body)
13
13
  end
14
14
 
15
+ def self.post_card_message(title, message, btns)
16
+ robot_url = Lhj::DingTalkConfig.dingtalk_robot
17
+ http_body = action_card_body_message(title, message, btns, :vertical)
18
+ http_post(robot_url, http_body)
19
+ end
20
+
15
21
  def self.post_branch_message(http_body)
16
22
  branch_name = fetch_branch
17
23
  branch_map = Lhj::DingTalkConfig.git_branch
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lhj
4
4
  module Tools
5
- VERSION = "0.1.92"
5
+ VERSION = "0.1.93"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhj-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.92
4
+ version: 0.1.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian