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 +4 -4
- data/CHANGELOG.md +4 -2
- data/README.md +18 -2
- data/dingding-notifier.gemspec +3 -3
- data/lib/dingding-notifier/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a769e23483e403a7f65b410ca3e7de2c86b15e2b51ee28d4cc962a56b093566
|
4
|
+
data.tar.gz: c65baf0757db6b0481a362b53919aa90642246663c9c29e05b3e67df00d4dbff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afed2b4b7e24c4c0e21312a9aca4721198d0c858354c455bf1dfdbee7a79c2ad9b9741a5f3599aaec31ff10eae5f1e2551d4bd6d33372be474a316be208e7041
|
7
|
+
data.tar.gz: b3d033020312b13f12cc08c87b29deba7d324efe322cd800104abc6fd30261e14ac9e248250f46183399e2714266a055e71c3f93d7e7fb2f55a0c5939331e988
|
data/CHANGELOG.md
CHANGED
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
|
-
|
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
|
-
|
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
|
|
data/dingding-notifier.gemspec
CHANGED
@@ -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 = "
|
12
|
-
spec.description = "
|
13
|
-
spec.homepage = "https://gitee.com/
|
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
|
|
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:
|
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/
|
170
|
+
homepage: https://gitee.com/ntshibin/dingding-notifier
|
171
171
|
licenses:
|
172
172
|
- MIT
|
173
173
|
metadata:
|
174
|
-
homepage_uri: https://gitee.com/
|
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:
|
195
|
+
summary: 钉钉机器人webhook
|
196
196
|
test_files: []
|