feishu_bot 0.1.1 → 0.1.2

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: 43b894eaaac4339c249d125218118d333b0b5926da78bb39da07c559be1c93ce
4
- data.tar.gz: b14d83e1c50d9eccd33f25fbd44248f8b2ccbee801dcfadacafd0cf6451a2bc6
3
+ metadata.gz: 75b485dde3b23ad803bf4991292c361c0baf5eeebb17acd8f14bd2fe92e1e962
4
+ data.tar.gz: 06be536501f9639ddcff4236371c39df55dbe7c5e2597b418bdb8913e5c13b3e
5
5
  SHA512:
6
- metadata.gz: 728aaa72792e7850332a6acdd7459c130ba18327f9175a36e7b16a02de73cc7971a94c691233aec32af541af85818fd8eb66b1f86596308c7a63323f5bd36b24
7
- data.tar.gz: 4b6a7fd0075d8890134b0ff991eae981f9954e9e0160db16d178af4d75e31bd75d9901b1739581fa8c6a9cd804549a08aaa438fb0ed66853186ec9a88c16c76b
6
+ metadata.gz: ddc4c2235f0abc51e59d187a388193e37152785e96bafa732aab5c8fca5e2a602480fd58ffe4c7db806ef121de3ddcfb084e2eab679a4dae45b3d97bdf610d6c
7
+ data.tar.gz: d6036d487dc3201c22df2ff000492c3fff78d3a042634f1633bd3519a2e762ddf4bd3e3a4b178e921ba2c7d1d149d93dca1fd9e9c51e3c16a1a799ddda6f4ecd
@@ -3,7 +3,8 @@ module FeishuBot
3
3
  enum clazz: {
4
4
  'text': 1,
5
5
  'image': 2,
6
- 'file': 3
6
+ 'file': 3,
7
+ 'media' 4
7
8
  }
8
9
  end
9
10
  end
@@ -44,17 +44,6 @@ module FeishuBot
44
44
  res.body.readpartial
45
45
  end
46
46
 
47
- def send_text(open_id, text)
48
- res = request.post('https://open.feishu.cn/open-apis/message/v4/send', json: {
49
- open_id: open_id,
50
- msg_type: 'text',
51
- content: {
52
- text: text
53
- }
54
- })
55
- end
56
-
57
-
58
47
  def send_text(open_id, text)
59
48
  send_msg = request.post("https://open.feishu.cn/open-apis/message/v4/send/", :json => { :open_id => open_id, :msg_type => 'text', :content => { :text=> text} })
60
49
  send_res = JSON.parse(send_msg.body.readpartial)
@@ -1,3 +1,3 @@
1
1
  module FeishuBot
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feishu_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - anke1460
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-31 00:00:00.000000000 Z
11
+ date: 2021-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails