capistrano-dingtalk 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 2e7395106c59bc7d87e3b8dd8460d5a758dd9ccf
4
- data.tar.gz: 7bfc5f252e97152991c26fe79cfab99ff0e21a5b
3
+ metadata.gz: 4a8547f5446f13909ddcdf70f667862c52391cbc
4
+ data.tar.gz: 564dea76ba7266f7272d99bf05ab7917ce457447
5
5
  SHA512:
6
- metadata.gz: 5145836e12ac43075d6b5499cfddfe0f45ec004984e0586d22575074bf79fe7ec0b95116fa32ac49e814052743c023d3de577d29f8de79acc0683aaaecefd8ff
7
- data.tar.gz: 7d394b88541a8ba591e2a53ef7de4f86afacb51ac095c00a4bdd2590f20fde5c42de905efc9fb3bc680d7042a7800edfd0dd91c5179bfbaf8bf2c9be7993f146
6
+ metadata.gz: 639e1a49f189b4b4a92345469c227fe5925d70fa3df9336c2e3ee81cdcfe965d810bec5d512edc3998cb3b92e2ff72e4c8b98b747a7d03dc30208dd4ee14516d
7
+ data.tar.gz: 7b97dfe52c3dae798d185487c73a0ae99db2048f833c9581f3f154f21e57f3a1a929e5e8ee374dfd13d37a23ac5a707cd94aa0d6b6fcff25f391e12e139e3fef
data/README.md CHANGED
@@ -22,15 +22,15 @@ Require the library in your application's Capfile:
22
22
  require 'capistrano/dingtalk'
23
23
  ```
24
24
 
25
- ## configuration
25
+ ## Configuration
26
26
 
27
27
  1. get dingtalk webhook url.
28
28
  2. add config to `config/deploy.rb` or the stages files.
29
29
 
30
30
  ```ruby
31
31
  set :dingtalk_info, {
32
- category: "text" # option, selection: text, markdown, default is text
33
- url: 'https://oapi.dingtalk.com/robot/send?access_token=abcedf012345678' # change to your url
32
+ category: "text", # option, selection: text, markdown, default is text
33
+ url: 'https://oapi.dingtalk.com/robot/send?access_token=abcedf012345678', # change to your url
34
34
  at_mobiles: [], # option
35
35
  at_all: false # option
36
36
  }
data/README_CN.md ADDED
@@ -0,0 +1,58 @@
1
+ # Capistrano::Dingtalk
2
+
3
+ 使用capistrano 的时候向dingtalk 发消息
4
+
5
+ ## 依赖
6
+
7
+ - Capistrano >= 3.5.0
8
+ - Ruby >= 2.0
9
+
10
+
11
+ ## 安装
12
+
13
+ 在 Gemfile 中添加
14
+
15
+ ```ruby
16
+ gem 'capistrano-dingtalk'
17
+ ```
18
+
19
+ 在Capfile 中添加
20
+
21
+ ```ruby
22
+ require 'capistrano/dingtalk'
23
+ ```
24
+
25
+ ## 配置
26
+
27
+ 1. 去钉钉拿到webhook 机器人的地址
28
+ 2. 向 `config/deploy.rb` 或者具体的环境文件里加以下配置
29
+
30
+ ```ruby
31
+ set :dingtalk_info, {
32
+ category: "text", # 可选, 有 text markdown 两种模式 ps 钉钉的markdown 好像只对手机端有效(2017年05月05日)
33
+ url: 'https://oapi.dingtalk.com/robot/send?access_token=abcedf012345678', # 换成你的webhook 地址
34
+ at_mobiles: [], # 可选,填 你要 at 的人的手机号
35
+ at_all: false # 可选, 是否 at 所有人
36
+ }
37
+ ```
38
+
39
+ 如果有使用中的问题,欢迎提 issue 或者通过微信(atpking)与我取得联系
40
+
41
+ ## 感谢
42
+
43
+ `slackistrano` 项目。
44
+
45
+ ## Development
46
+
47
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
48
+
49
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
50
+
51
+ ## Contributing
52
+
53
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/capistrano-dingtalk. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
54
+
55
+
56
+ ## License
57
+
58
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "rspec", "~> 3.0"
28
28
 
29
29
  spec.add_dependency "capistrano", ">= 3.5.0"
30
- spec.add_dependency "rest-client", ">= 2.0"
30
+ spec.add_dependency "rest-client", ">= 1.5"
31
31
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  class Dingtalk
3
- VERSION = "0.1.0".freeze
3
+ VERSION = "0.1.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-dingtalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - atpking
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '2.0'
75
+ version: '1.5'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '2.0'
82
+ version: '1.5'
83
83
  description: ding talk capistrano plugin, sending message to ding talk custom webhook
84
84
  rebot
85
85
  email:
@@ -95,6 +95,7 @@ files:
95
95
  - Gemfile
96
96
  - LICENSE.txt
97
97
  - README.md
98
+ - README_CN.md
98
99
  - Rakefile
99
100
  - bin/console
100
101
  - bin/setup