danger-slack 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +5 -0
- data/.travis.yml +12 -0
- data/Gemfile +4 -0
- data/Guardfile +19 -0
- data/LICENSE.txt +22 -0
- data/README.md +39 -0
- data/Rakefile +23 -0
- data/danger-slack.gemspec +50 -0
- data/lib/danger_plugin.rb +1 -0
- data/lib/danger_slack.rb +1 -0
- data/lib/slack/gem_version.rb +3 -0
- data/lib/slack/plugin.rb +124 -0
- data/spec/slack_spec.rb +94 -0
- data/spec/spec_helper.rb +60 -0
- metadata +215 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c21388b8fcf8e76f761b13691501995e65a58878
|
4
|
+
data.tar.gz: 6f8c349065b734be1e7b1a2bbb22c1ef2577e528
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b8cf74c5b8fc746469475bd35031aee285734fbe2e8b0476cc08837f2ac6266cf5e4b2e16e624475f2af81a9fcaea2a94193f3394e3e4c96ecda9f961cded4d4
|
7
|
+
data.tar.gz: 0feafb8d7ea2274aac63ecfa83ad72086943ff631828c061b95d391a8a4d6e4636d79a9c7ae8914d386c5f85696cb3753c6bc1c6dbc93bac8bef02b32735f12f
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# A guardfile for making Danger Plugins
|
2
|
+
# For more info see https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
# To run, use `bundle exec guard`.
|
5
|
+
|
6
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
7
|
+
require 'guard/rspec/dsl'
|
8
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
9
|
+
|
10
|
+
# RSpec files
|
11
|
+
rspec = dsl.rspec
|
12
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
13
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
14
|
+
watch(rspec.spec_files)
|
15
|
+
|
16
|
+
# Ruby files
|
17
|
+
ruby = dsl.ruby
|
18
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
19
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2017 shunsuke maeda <duck8823@gmail.com>
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# danger-slack
|
2
|
+
|
3
|
+
Notify danger reports to slack.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
$ gem install danger-slack
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
### How to set your Slack API token
|
11
|
+
In Dangerfile,
|
12
|
+
```ruby
|
13
|
+
slack.api_token = 'SLACK_API_TOKEN'
|
14
|
+
```
|
15
|
+
|
16
|
+
or
|
17
|
+
|
18
|
+
Set Environment variable `SLACK_API_TOKEN`
|
19
|
+
|
20
|
+
### methods
|
21
|
+
Get channels
|
22
|
+
```ruby
|
23
|
+
slack.channels
|
24
|
+
```
|
25
|
+
|
26
|
+
Get members
|
27
|
+
```ruby
|
28
|
+
slack.members
|
29
|
+
```
|
30
|
+
|
31
|
+
Notify danger reports to slack
|
32
|
+
```ruby
|
33
|
+
slack.notify(channel: '#your_channel')
|
34
|
+
```
|
35
|
+
|
36
|
+
Post message to slack
|
37
|
+
```ruby
|
38
|
+
slack.notify(channel: '#your_channel', text: 'hello danger')
|
39
|
+
```
|
data/Rakefile
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
require 'rubocop/rake_task'
|
4
|
+
|
5
|
+
RSpec::Core::RakeTask.new(:specs)
|
6
|
+
|
7
|
+
task default: :specs
|
8
|
+
|
9
|
+
task :spec do
|
10
|
+
Rake::Task['specs'].invoke
|
11
|
+
Rake::Task['rubocop'].invoke
|
12
|
+
Rake::Task['spec_docs'].invoke
|
13
|
+
end
|
14
|
+
|
15
|
+
desc 'Run RuboCop on the lib/specs directory'
|
16
|
+
RuboCop::RakeTask.new(:rubocop) do |task|
|
17
|
+
task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
|
18
|
+
end
|
19
|
+
|
20
|
+
desc 'Ensure that the plugin passes `danger plugins lint`'
|
21
|
+
task :spec_docs do
|
22
|
+
sh 'bundle exec danger plugins lint'
|
23
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'slack/gem_version.rb'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'danger-slack'
|
8
|
+
spec.version = Slack::VERSION
|
9
|
+
spec.authors = ['shunsuke maeda']
|
10
|
+
spec.email = ['duck8823@gmail.com']
|
11
|
+
spec.description = 'Notify danger reports to slack.'
|
12
|
+
spec.summary = 'This is plugin for Danger that notify danger reports to slack.'
|
13
|
+
spec.homepage = 'https://github.com/duck8823/danger-slack'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_runtime_dependency 'danger-plugin-api', '~> 1.0'
|
22
|
+
|
23
|
+
# General ruby development
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
25
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
26
|
+
|
27
|
+
# Testing support
|
28
|
+
spec.add_development_dependency 'rspec', '~> 3.4'
|
29
|
+
spec.add_development_dependency 'webmock', '~> 2.3'
|
30
|
+
|
31
|
+
# Linting code and docs
|
32
|
+
spec.add_development_dependency 'rubocop', '~> 0.41'
|
33
|
+
spec.add_development_dependency 'yard', '~> 0.8'
|
34
|
+
|
35
|
+
# Makes testing easy via `bundle exec guard`
|
36
|
+
spec.add_development_dependency 'guard', '~> 2.14'
|
37
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
38
|
+
|
39
|
+
# If you want to work on older builds of ruby
|
40
|
+
spec.add_development_dependency 'listen', '3.0.7'
|
41
|
+
|
42
|
+
# This gives you the chance to run a REPL inside your tests
|
43
|
+
# via:
|
44
|
+
#
|
45
|
+
# require 'pry'
|
46
|
+
# binding.pry
|
47
|
+
#
|
48
|
+
# This will stop test execution and let you inspect the results
|
49
|
+
spec.add_development_dependency 'pry'
|
50
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'slack/plugin'
|
data/lib/danger_slack.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'slack/gem_version'
|
data/lib/slack/plugin.rb
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
module Danger
|
2
|
+
# Notify danger reports to slack.
|
3
|
+
#
|
4
|
+
# @example Configure credentials to access the Slack API
|
5
|
+
# slack.api_token = YOUR_API_TOKEN
|
6
|
+
#
|
7
|
+
# @example Get channels
|
8
|
+
# message slack.channels.map {|channel| channel['name']}.join "\n"
|
9
|
+
#
|
10
|
+
# @example Get members
|
11
|
+
# message slack.members.map {|member| member['name'] }.join "\n"
|
12
|
+
#
|
13
|
+
# @example Notify danger reports to slack
|
14
|
+
# slack.notify(channel: '#your_channel')
|
15
|
+
#
|
16
|
+
# @example Post message to slack
|
17
|
+
# slack.notify(channel: '#your_channel', text: 'hello danger')
|
18
|
+
#
|
19
|
+
# @see duck8823/danger-slack
|
20
|
+
# @tags slack
|
21
|
+
#
|
22
|
+
class DangerSlack < Plugin
|
23
|
+
# API token to authenticate with SLACK API
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
attr_accessor :api_token
|
27
|
+
|
28
|
+
def initialize(dangerfile)
|
29
|
+
super(dangerfile)
|
30
|
+
|
31
|
+
@api_token = ENV['SLACK_API_TOKEN']
|
32
|
+
|
33
|
+
@conn = Faraday.new(url: 'https://slack.com/api')
|
34
|
+
end
|
35
|
+
|
36
|
+
# get slack team members
|
37
|
+
#
|
38
|
+
# @return [[Hash]]
|
39
|
+
def members
|
40
|
+
res = @conn.get 'users.list', token: @api_token
|
41
|
+
Array(JSON.parse(res.body)['members'])
|
42
|
+
end
|
43
|
+
|
44
|
+
# get slack team members
|
45
|
+
#
|
46
|
+
# @return [[Hash]]
|
47
|
+
def channels
|
48
|
+
res = @conn.get 'channels.list', token: @api_token
|
49
|
+
Array(JSON.parse(res.body)['channels'])
|
50
|
+
end
|
51
|
+
|
52
|
+
# notify to Slack
|
53
|
+
# A method that you can call from your Dangerfile
|
54
|
+
# @return [void]
|
55
|
+
def notify(channel:, text: nil, **opts)
|
56
|
+
attachments = text.nil? ? report : []
|
57
|
+
text ||= '<http://danger.systems/|Danger> reports'
|
58
|
+
@conn.post do |req|
|
59
|
+
req.url 'chat.postMessage'
|
60
|
+
req.params = {
|
61
|
+
token: @api_token,
|
62
|
+
channel: channel,
|
63
|
+
text: text,
|
64
|
+
attachments: attachments.to_json,
|
65
|
+
link_names: 1,
|
66
|
+
**opts
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
# get status_report text
|
74
|
+
# @return [[Hash]]
|
75
|
+
def report
|
76
|
+
attachment = status_report
|
77
|
+
.select { |_, v| !v.empty? }
|
78
|
+
.map do |k, v|
|
79
|
+
case k.to_s
|
80
|
+
when 'errors' then
|
81
|
+
{
|
82
|
+
text: v.join("\n"),
|
83
|
+
color: 'danger'
|
84
|
+
}
|
85
|
+
when 'warnings' then
|
86
|
+
{
|
87
|
+
text: v.join("\n"),
|
88
|
+
color: 'warning'
|
89
|
+
}
|
90
|
+
when 'messages' then
|
91
|
+
{
|
92
|
+
text: v.join("\n"),
|
93
|
+
color: 'good'
|
94
|
+
}
|
95
|
+
when 'markdowns' then
|
96
|
+
v.map do |val|
|
97
|
+
{
|
98
|
+
text: val.message,
|
99
|
+
fields: fields(val)
|
100
|
+
}
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
attachment.flatten
|
105
|
+
end
|
106
|
+
|
107
|
+
# get markdown fields
|
108
|
+
# @return [[Hash]]
|
109
|
+
def fields(markdown)
|
110
|
+
fields = []
|
111
|
+
if markdown.file
|
112
|
+
fields.push(title: 'file',
|
113
|
+
value: markdown.file,
|
114
|
+
short: true)
|
115
|
+
end
|
116
|
+
if markdown.line
|
117
|
+
fields.push(title: 'line',
|
118
|
+
value: markdown.line,
|
119
|
+
short: true)
|
120
|
+
end
|
121
|
+
fields
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
data/spec/slack_spec.rb
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
require File.expand_path('../spec_helper', __FILE__)
|
2
|
+
|
3
|
+
module Danger
|
4
|
+
describe Danger::DangerSlack do
|
5
|
+
it 'should be a plugin' do
|
6
|
+
expect(Danger::DangerSlack.new(nil)).to be_a Danger::Plugin
|
7
|
+
end
|
8
|
+
|
9
|
+
#
|
10
|
+
# You should test your custom attributes and methods here
|
11
|
+
#
|
12
|
+
describe 'with Dangerfile' do
|
13
|
+
before do
|
14
|
+
@dangerfile = testing_dangerfile
|
15
|
+
@my_plugin = @dangerfile.slack
|
16
|
+
@my_plugin.api_token = 'hoge'
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'initialize' do
|
20
|
+
expect(@my_plugin.api_token).to eq 'hoge'
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'members' do
|
24
|
+
stub_request(:get, 'https://slack.com/api/users.list')
|
25
|
+
.with(query: { token: 'hoge' })
|
26
|
+
.to_return(
|
27
|
+
body: '{"members":[{"hoge":"fuga"}]}',
|
28
|
+
status: 200
|
29
|
+
)
|
30
|
+
expect(@my_plugin.members).to eq [{ 'hoge' => 'fuga' }]
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'channels' do
|
34
|
+
stub_request(:get, 'https://slack.com/api/channels.list')
|
35
|
+
.with(query: { token: 'hoge' })
|
36
|
+
.to_return(
|
37
|
+
body: '{"channels":[{"hoge":"fuga"}]}',
|
38
|
+
status: 200
|
39
|
+
)
|
40
|
+
expect(@my_plugin.channels).to eq [{ 'hoge' => 'fuga' }]
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'notify with text' do
|
44
|
+
stub_request(:post, 'https://slack.com/api/chat.postMessage')
|
45
|
+
.with(query: hash_including(token: 'hoge'))
|
46
|
+
.to_return(
|
47
|
+
body: '{"ok":true}',
|
48
|
+
status: 200
|
49
|
+
)
|
50
|
+
@my_plugin.notify(channel: '#general', text: 'fuga')
|
51
|
+
expect(WebMock).to have_requested(:post, 'https://slack.com/api/chat.postMessage')
|
52
|
+
.with(query: hash_including(token: 'hoge',
|
53
|
+
channel: '#general',
|
54
|
+
text: 'fuga'))
|
55
|
+
end
|
56
|
+
|
57
|
+
it 'notify' do
|
58
|
+
stub_request(:post, 'https://slack.com/api/chat.postMessage')
|
59
|
+
.with(query: hash_including(token: 'hoge'))
|
60
|
+
.to_return(
|
61
|
+
body: '{"ok":true}',
|
62
|
+
status: 200
|
63
|
+
)
|
64
|
+
@my_plugin.warn('foo')
|
65
|
+
@my_plugin.markdown('bar')
|
66
|
+
@my_plugin.markdown('hoge', file: 'foo', line: 1)
|
67
|
+
@my_plugin.notify(channel: '#general')
|
68
|
+
expect(WebMock).to have_requested(:post, 'https://slack.com/api/chat.postMessage')
|
69
|
+
.with(query: hash_including(token: 'hoge',
|
70
|
+
channel: '#general',
|
71
|
+
attachments: [{
|
72
|
+
text: 'foo',
|
73
|
+
color: 'warning'
|
74
|
+
}, {
|
75
|
+
text: 'bar',
|
76
|
+
fields: []
|
77
|
+
}, {
|
78
|
+
text: 'hoge',
|
79
|
+
fields: [
|
80
|
+
{
|
81
|
+
title: 'file',
|
82
|
+
value: 'foo',
|
83
|
+
short: true
|
84
|
+
}, {
|
85
|
+
title: 'line',
|
86
|
+
value: 1,
|
87
|
+
short: true
|
88
|
+
}
|
89
|
+
]
|
90
|
+
}].to_json))
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
|
3
|
+
$LOAD_PATH.unshift((ROOT + 'lib').to_s)
|
4
|
+
$LOAD_PATH.unshift((ROOT + 'spec').to_s)
|
5
|
+
|
6
|
+
require 'bundler/setup'
|
7
|
+
require 'pry'
|
8
|
+
|
9
|
+
require 'rspec'
|
10
|
+
require 'danger'
|
11
|
+
require 'webmock/rspec'
|
12
|
+
|
13
|
+
# Use coloured output, it's the best.
|
14
|
+
RSpec.configure do |config|
|
15
|
+
config.filter_gems_from_backtrace 'bundler'
|
16
|
+
config.color = true
|
17
|
+
config.tty = true
|
18
|
+
end
|
19
|
+
|
20
|
+
require 'danger_plugin'
|
21
|
+
|
22
|
+
# These functions are a subset of https://github.com/danger/danger/blob/master/spec/spec_helper.rb
|
23
|
+
# If you are expanding these files, see if it's already been done ^.
|
24
|
+
|
25
|
+
# A silent version of the user interface,
|
26
|
+
# it comes with an extra function `.string` which will
|
27
|
+
# strip all ANSI colours from the string.
|
28
|
+
|
29
|
+
# rubocop:disable Lint/NestedMethodDefinition
|
30
|
+
def testing_ui
|
31
|
+
@output = StringIO.new
|
32
|
+
def @output.winsize
|
33
|
+
[20, 9999]
|
34
|
+
end
|
35
|
+
|
36
|
+
cork = Cork::Board.new(out: @output)
|
37
|
+
def cork.string
|
38
|
+
out.string.gsub(/\e\[([;\d]+)?m/, '')
|
39
|
+
end
|
40
|
+
cork
|
41
|
+
end
|
42
|
+
# rubocop:enable Lint/NestedMethodDefinition
|
43
|
+
|
44
|
+
# Example environment (ENV) that would come from
|
45
|
+
# running a PR on TravisCI
|
46
|
+
def testing_env
|
47
|
+
{
|
48
|
+
'HAS_JOSH_K_SEAL_OF_APPROVAL' => 'true',
|
49
|
+
'TRAVIS_PULL_REQUEST' => '800',
|
50
|
+
'TRAVIS_REPO_SLUG' => 'artsy/eigen',
|
51
|
+
'TRAVIS_COMMIT_RANGE' => '759adcbd0d8f...13c4dc8bb61d',
|
52
|
+
'DANGER_GITHUB_API_TOKEN' => '123sbdq54erfsd3422gdfio'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# A stubbed out Dangerfile for use in tests
|
57
|
+
def testing_dangerfile
|
58
|
+
env = Danger::EnvironmentManager.new(testing_env)
|
59
|
+
Danger::Dangerfile.new(env, testing_ui)
|
60
|
+
end
|
metadata
ADDED
@@ -0,0 +1,215 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: danger-slack
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- shunsuke maeda
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: danger-plugin-api
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.3'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.41'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.41'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: yard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.8'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.8'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.14'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '2.14'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: guard-rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '4.7'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '4.7'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: listen
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 3.0.7
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 3.0.7
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: pry
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
description: Notify danger reports to slack.
|
168
|
+
email:
|
169
|
+
- duck8823@gmail.com
|
170
|
+
executables: []
|
171
|
+
extensions: []
|
172
|
+
extra_rdoc_files: []
|
173
|
+
files:
|
174
|
+
- ".gitignore"
|
175
|
+
- ".rubocop.yml"
|
176
|
+
- ".travis.yml"
|
177
|
+
- Gemfile
|
178
|
+
- Guardfile
|
179
|
+
- LICENSE.txt
|
180
|
+
- README.md
|
181
|
+
- Rakefile
|
182
|
+
- danger-slack.gemspec
|
183
|
+
- lib/danger_plugin.rb
|
184
|
+
- lib/danger_slack.rb
|
185
|
+
- lib/slack/gem_version.rb
|
186
|
+
- lib/slack/plugin.rb
|
187
|
+
- spec/slack_spec.rb
|
188
|
+
- spec/spec_helper.rb
|
189
|
+
homepage: https://github.com/duck8823/danger-slack
|
190
|
+
licenses:
|
191
|
+
- MIT
|
192
|
+
metadata: {}
|
193
|
+
post_install_message:
|
194
|
+
rdoc_options: []
|
195
|
+
require_paths:
|
196
|
+
- lib
|
197
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
requirements: []
|
208
|
+
rubyforge_project:
|
209
|
+
rubygems_version: 2.6.10
|
210
|
+
signing_key:
|
211
|
+
specification_version: 4
|
212
|
+
summary: This is plugin for Danger that notify danger reports to slack.
|
213
|
+
test_files:
|
214
|
+
- spec/slack_spec.rb
|
215
|
+
- spec/spec_helper.rb
|