dingding-notifier 0.0.1 → 0.0.1.1

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: 1ceb6e487d1209fc40bc09dcbd636a17e72ee747c26723ecee803b8a6d65e57b
4
- data.tar.gz: 79608035fc7d82173176a9ada5420493974003a676fc73cf1805f50966ec9384
3
+ metadata.gz: 0a769e23483e403a7f65b410ca3e7de2c86b15e2b51ee28d4cc962a56b093566
4
+ data.tar.gz: c65baf0757db6b0481a362b53919aa90642246663c9c29e05b3e67df00d4dbff
5
5
  SHA512:
6
- metadata.gz: fc956b87f5e006fc3be07c893dccf4aff33f4d573b2e2b13bb924d782e95befd2a498435434bfec61b50f80bb2f03b733c73d4752a66af53c4e541a86194ddc3
7
- data.tar.gz: f80d13798823c654bead04a8d9e0a52ca584d9991af210c1d19765a0933a79414d5966d20195c3772b9a14846dfcb487c4c895116a38fb0fd7a18dfdbd0fcb7c
6
+ metadata.gz: afed2b4b7e24c4c0e21312a9aca4721198d0c858354c455bf1dfdbee7a79c2ad9b9741a5f3599aaec31ff10eae5f1e2551d4bd6d33372be474a316be208e7041
7
+ data.tar.gz: b3d033020312b13f12cc08c87b29deba7d324efe322cd800104abc6fd30261e14ac9e248250f46183399e2714266a055e71c3f93d7e7fb2f55a0c5939331e988
data/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
- ## [Unreleased]
1
+ ## [released]
2
2
 
3
- ## [0.1.0] - 2021-08-30
3
+ ## [0.0.1.1] - 2021-08-30
4
+ - 更正gem的信息
5
+ ## [0.0.1] - 2021-08-30
4
6
 
5
7
  - Initial release
data/README.md CHANGED
@@ -11,7 +11,7 @@ Add this line to your application's Gemfile:
11
11
  ```ruby
12
12
  gem 'dingding-notifier'
13
13
  ```
14
- a = Dingding::Notifier.new("https://oapi.dingtalk.com/robot/send?access_token=8b8d91229b22facb61f0166be307fdd9ed67c1725c2ab20a2e1bbaffdd3ed740")
14
+
15
15
  And then execute:
16
16
 
17
17
  $ bundle install
@@ -21,8 +21,24 @@ Or install it yourself as:
21
21
  $ gem install dingding-notifier
22
22
 
23
23
  ## Usage
24
+ - options
25
+ - middleware
26
+ - format_text(default)
27
+ - format_link
28
+ - format_markdown
29
+ - format_action_card
30
+ - format_feed_card
31
+ - atMobiles
32
+ - user_phone
33
+ - isAtAll
34
+ - true
35
+ - @all people
36
+ - false
24
37
 
25
- TODO: Write usage instructions here
38
+ ```
39
+ notifier = Dingding::Notifier.new(webhook_url,{middleware: :format_text, atMobiles: ["177xxxxxxxx"]})
40
+ notifier.call("message")
41
+ ```
26
42
 
27
43
  ## Development
28
44
 
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["bineanshi"]
9
9
  spec.email = ["bineanshi@sina.com"]
10
10
 
11
- spec.summary = "Write a short summary, because RubyGems requires one."
12
- spec.description = "Write a longer description or delete this line."
13
- spec.homepage = "https://gitee.com/gems/ntshibin/dingding-notifier"
11
+ spec.summary = "钉钉机器人webhook"
12
+ spec.description = "钉钉机器人webhook"
13
+ spec.homepage = "https://gitee.com/ntshibin/dingding-notifier"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = ">= 2.3.0"
16
16
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dingding
4
4
  class Notifier
5
- VERSION = "0.0.1".freeze # rubocop:disable Style/RedundantFreeze
5
+ VERSION = "0.0.1.1".freeze # rubocop:disable Style/RedundantFreeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dingding-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bineanshi
@@ -138,7 +138,7 @@ dependencies:
138
138
  - - "~>"
139
139
  - !ruby/object:Gem::Version
140
140
  version: '1.15'
141
- description: Write a longer description or delete this line.
141
+ description: 钉钉机器人webhook
142
142
  email:
143
143
  - bineanshi@sina.com
144
144
  executables: []
@@ -167,11 +167,11 @@ files:
167
167
  - lib/dingding-notifier/payload_middleware/stack.rb
168
168
  - lib/dingding-notifier/util/http_client.rb
169
169
  - lib/dingding-notifier/version.rb
170
- homepage: https://gitee.com/gems/ntshibin/dingding-notifier
170
+ homepage: https://gitee.com/ntshibin/dingding-notifier
171
171
  licenses:
172
172
  - MIT
173
173
  metadata:
174
- homepage_uri: https://gitee.com/gems/ntshibin/dingding-notifier
174
+ homepage_uri: https://gitee.com/ntshibin/dingding-notifier
175
175
  source_code_uri: https://gitee.com/ntshibin/dingding-notifier
176
176
  changelog_uri: https://gitee.com/ntshibin/dingding-notifier/CHANGELOG.md
177
177
  post_install_message:
@@ -192,5 +192,5 @@ requirements: []
192
192
  rubygems_version: 3.0.9
193
193
  signing_key:
194
194
  specification_version: 4
195
- summary: Write a short summary, because RubyGems requires one.
195
+ summary: 钉钉机器人webhook
196
196
  test_files: []