danger-todoist 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 +6 -0
- data/.travis.yml +12 -0
- data/Gemfile +4 -0
- data/Guardfile +19 -0
- data/LICENSE.txt +22 -0
- data/README.md +53 -0
- data/Rakefile +23 -0
- data/danger-todoist.gemspec +49 -0
- data/lib/danger_plugin.rb +1 -0
- data/lib/danger_todoist.rb +1 -0
- data/lib/todoist/gem_version.rb +3 -0
- data/lib/todoist/plugin.rb +89 -0
- data/spec/spec_helper.rb +59 -0
- data/spec/todoist_spec.rb +122 -0
- metadata +202 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9022770aebb13f12db371446e3aa859e51ef8d17
|
4
|
+
data.tar.gz: f8ad38d6942f9e1eb80916aaa911f70e57ef5c73
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 111347e316c4c0f63307f85860afb35d49cba8914c3e738b250b95f35956608de3a4a00fba0fd4131fdc0b73cdf35e58cd4945c48783c76964cdeabe101f1050
|
7
|
+
data.tar.gz: e4a8a15ca112b13ec1e7ee8ed6e05d4f3919549281a8ff84970dadd83559a4bc87662f691f1410de36d38447570be889df1bf58108bc6e20774cc0c01fede202
|
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) 2016 Hannes Kaeufler <hannes.kaeufler@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,53 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/hanneskaeufler/danger-todoist.svg?branch=master)](https://travis-ci.org/hanneskaeufler/danger-todoist)
|
2
|
+
|
3
|
+
# danger-todoist
|
4
|
+
|
5
|
+
A description of danger-todoist.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
$ gem install danger-todoist
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
Methods and attributes from this plugin are available in
|
14
|
+
your `Dangerfile` under the `todoist` namespace.
|
15
|
+
|
16
|
+
### todoist
|
17
|
+
|
18
|
+
<blockquote>Ensure there are no TODOS left in the modified code
|
19
|
+
<pre>
|
20
|
+
todoist.warn_for_todos</pre>
|
21
|
+
</blockquote>
|
22
|
+
|
23
|
+
<blockquote>Set custom warning message
|
24
|
+
<pre>
|
25
|
+
todois.message = "Please fix all TODOS"
|
26
|
+
todoist.warn_for_todos</pre>
|
27
|
+
</blockquote>
|
28
|
+
|
29
|
+
<blockquote>List every todo item
|
30
|
+
<pre>
|
31
|
+
todoist.warn_for_todos
|
32
|
+
todoist.print_todos_table</pre>
|
33
|
+
</blockquote>
|
34
|
+
|
35
|
+
#### Attributes
|
36
|
+
|
37
|
+
`message` - Message to be shown
|
38
|
+
|
39
|
+
#### Methods
|
40
|
+
|
41
|
+
`warn_for_todos` - Adds a warning if there are todos found in the modified code
|
42
|
+
|
43
|
+
`print_todos_table` - Adds a list of offending files to the danger comment
|
44
|
+
|
45
|
+
## Development
|
46
|
+
|
47
|
+
1. Clone this repo
|
48
|
+
2. Run `bundle install` to setup dependencies.
|
49
|
+
3. Run `bundle exec rake spec` to run the tests.
|
50
|
+
4. Use `bundle exec guard` to automatically have tests run as you make changes.
|
51
|
+
5. Make your changes.
|
52
|
+
|
53
|
+
|
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,49 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'todoist/gem_version.rb'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'danger-todoist'
|
8
|
+
spec.version = Todoist::VERSION
|
9
|
+
spec.authors = ['Hannes Käufler']
|
10
|
+
spec.email = ['hannes.kaeufler@gmail.com']
|
11
|
+
spec.description = %q{A danger plugin for spotting introduced todos.}
|
12
|
+
spec.summary = %q{Marking something with a todo is very common during implementing a new feature. Often those todos will get missed in code review.}
|
13
|
+
spec.homepage = 'https://github.com/hanneskaeufler/danger-todoist'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
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
|
+
|
30
|
+
# Linting code and docs
|
31
|
+
spec.add_development_dependency "rubocop", "~> 0.41"
|
32
|
+
spec.add_development_dependency "yard", "~> 0.8"
|
33
|
+
|
34
|
+
# Makes testing easy via `bundle exec guard`
|
35
|
+
spec.add_development_dependency 'guard', '~> 2.14'
|
36
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
37
|
+
|
38
|
+
# If you want to work on older builds of ruby
|
39
|
+
spec.add_development_dependency 'listen', '3.0.7'
|
40
|
+
|
41
|
+
# This gives you the chance to run a REPL inside your tests
|
42
|
+
# via:
|
43
|
+
#
|
44
|
+
# require 'pry'
|
45
|
+
# binding.pry
|
46
|
+
#
|
47
|
+
# This will stop test execution and let you inspect the results
|
48
|
+
spec.add_development_dependency 'pry'
|
49
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require "todoist/plugin"
|
@@ -0,0 +1 @@
|
|
1
|
+
require "todoist/gem_version"
|
@@ -0,0 +1,89 @@
|
|
1
|
+
module Danger
|
2
|
+
#
|
3
|
+
# @example Ensure there are no TODOS left in the modified code
|
4
|
+
#
|
5
|
+
# todoist.warn_for_todos
|
6
|
+
#
|
7
|
+
# @example Set custom warning message
|
8
|
+
#
|
9
|
+
# todois.message = "Please fix all TODOS"
|
10
|
+
# todoist.warn_for_todos
|
11
|
+
#
|
12
|
+
# @example List every todo item
|
13
|
+
#
|
14
|
+
# todoist.warn_for_todos
|
15
|
+
# todoist.print_todos_table
|
16
|
+
#
|
17
|
+
# @see hanneskaeufler/danger-todoist
|
18
|
+
# @tags todos, fixme
|
19
|
+
#
|
20
|
+
class DangerTodoist < Plugin
|
21
|
+
DEFAULT_MESSAGE = "There remain todo items in the modified code.".freeze
|
22
|
+
TODO_REGEXP = /TODO|FIXME/i
|
23
|
+
|
24
|
+
#
|
25
|
+
# Message to be shown
|
26
|
+
#
|
27
|
+
# @attr_writer [String] message Custom message shown when todos were found
|
28
|
+
# @return [void]
|
29
|
+
#
|
30
|
+
attr_writer :message
|
31
|
+
|
32
|
+
#
|
33
|
+
# Adds a warning if there are todos found in the modified code
|
34
|
+
#
|
35
|
+
# @return [void]
|
36
|
+
#
|
37
|
+
def warn_for_todos
|
38
|
+
@todos = []
|
39
|
+
return if files_of_interest.empty?
|
40
|
+
|
41
|
+
diffs_containing_todo_markers
|
42
|
+
.each { |diff| @todos << Todo.new(diff.path) }
|
43
|
+
|
44
|
+
warn(message) unless @todos.empty?
|
45
|
+
end
|
46
|
+
|
47
|
+
#
|
48
|
+
# Adds a list of offending files to the danger comment
|
49
|
+
#
|
50
|
+
# @return [void]
|
51
|
+
#
|
52
|
+
def print_todos_table
|
53
|
+
return if @todos.nil?
|
54
|
+
return if @todos.empty?
|
55
|
+
|
56
|
+
markdown("#### Todos left in files")
|
57
|
+
|
58
|
+
@todos.each { |todo| markdown("- #{todo.file}") }
|
59
|
+
end
|
60
|
+
|
61
|
+
private
|
62
|
+
|
63
|
+
def message
|
64
|
+
return @message unless @message.nil?
|
65
|
+
DEFAULT_MESSAGE
|
66
|
+
end
|
67
|
+
|
68
|
+
def files_of_interest
|
69
|
+
git.modified_files + git.added_files
|
70
|
+
end
|
71
|
+
|
72
|
+
def diffs_of_interest
|
73
|
+
files_of_interest
|
74
|
+
.map { |file| git.diff_for_file(file) }
|
75
|
+
end
|
76
|
+
|
77
|
+
def diffs_containing_todo_markers
|
78
|
+
diffs_of_interest
|
79
|
+
.select { |diff| contains_new_todo(diff) }
|
80
|
+
end
|
81
|
+
|
82
|
+
def contains_new_todo(diff)
|
83
|
+
!(diff.patch =~ TODO_REGEXP).nil?
|
84
|
+
end
|
85
|
+
|
86
|
+
class Todo < Struct.new(:file)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,59 @@
|
|
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
|
+
|
12
|
+
# Use coloured output, it"s the best.
|
13
|
+
RSpec.configure do |config|
|
14
|
+
config.filter_gems_from_backtrace "bundler"
|
15
|
+
config.color = true
|
16
|
+
config.tty = true
|
17
|
+
end
|
18
|
+
|
19
|
+
require "danger_plugin"
|
20
|
+
|
21
|
+
# These functions are a subset of https://github.com/danger/danger/blob/master/spec/spec_helper.rb
|
22
|
+
# If you are expanding these files, see if it"s already been done ^.
|
23
|
+
|
24
|
+
# A silent version of the user interface,
|
25
|
+
# it comes with an extra function `.string` which will
|
26
|
+
# strip all ANSI colours from the string.
|
27
|
+
|
28
|
+
# rubocop:disable Lint/NestedMethodDefinition
|
29
|
+
def testing_ui
|
30
|
+
@output = StringIO.new
|
31
|
+
def @output.winsize
|
32
|
+
[20, 9999]
|
33
|
+
end
|
34
|
+
|
35
|
+
cork = Cork::Board.new(out: @output)
|
36
|
+
def cork.string
|
37
|
+
out.string.gsub(/\e\[([;\d]+)?m/, "")
|
38
|
+
end
|
39
|
+
cork
|
40
|
+
end
|
41
|
+
# rubocop:enable Lint/NestedMethodDefinition
|
42
|
+
|
43
|
+
# Example environment (ENV) that would come from
|
44
|
+
# running a PR on TravisCI
|
45
|
+
def testing_env
|
46
|
+
{
|
47
|
+
"HAS_JOSH_K_SEAL_OF_APPROVAL" => "true",
|
48
|
+
"TRAVIS_PULL_REQUEST" => "800",
|
49
|
+
"TRAVIS_REPO_SLUG" => "artsy/eigen",
|
50
|
+
"TRAVIS_COMMIT_RANGE" => "759adcbd0d8f...13c4dc8bb61d",
|
51
|
+
"DANGER_GITHUB_API_TOKEN" => "123sbdq54erfsd3422gdfio"
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# A stubbed out Dangerfile for use in tests
|
56
|
+
def testing_dangerfile
|
57
|
+
env = Danger::EnvironmentManager.new(testing_env)
|
58
|
+
Danger::Dangerfile.new(env, testing_ui)
|
59
|
+
end
|
@@ -0,0 +1,122 @@
|
|
1
|
+
require File.expand_path("../spec_helper", __FILE__)
|
2
|
+
|
3
|
+
module Danger
|
4
|
+
describe Danger::DangerTodoist do
|
5
|
+
it "should be a plugin" do
|
6
|
+
expect(Danger::DangerTodoist.new(nil)).to be_a Danger::Plugin
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "with Dangerfile" do
|
10
|
+
before do
|
11
|
+
@dangerfile = testing_dangerfile
|
12
|
+
@todoist = @dangerfile.todoist
|
13
|
+
end
|
14
|
+
|
15
|
+
context "changed files containing a todo" do
|
16
|
+
before do
|
17
|
+
modified = Git::Diff::DiffFile.new(
|
18
|
+
"base",
|
19
|
+
path: "some/file.rb",
|
20
|
+
patch: "+ TODO: some todo"
|
21
|
+
)
|
22
|
+
added = Git::Diff::DiffFile.new(
|
23
|
+
"base",
|
24
|
+
path: "another/stuff.rb",
|
25
|
+
patch: "+ fixme: another todo"
|
26
|
+
)
|
27
|
+
|
28
|
+
allow(@dangerfile.git).to receive(:diff_for_file)
|
29
|
+
.with("some/file.rb")
|
30
|
+
.and_return(modified)
|
31
|
+
|
32
|
+
allow(@dangerfile.git).to receive(:diff_for_file)
|
33
|
+
.with("another/stuff.rb")
|
34
|
+
.and_return(added)
|
35
|
+
|
36
|
+
allow(@dangerfile.git).to receive(:modified_files)
|
37
|
+
.and_return([modified_with_todo])
|
38
|
+
allow(@dangerfile.git).to receive(:added_files)
|
39
|
+
.and_return([added_with_todo])
|
40
|
+
end
|
41
|
+
|
42
|
+
it "warns when files in the changeset" do
|
43
|
+
@todoist.warn_for_todos
|
44
|
+
|
45
|
+
expect(warnings).to eq([DangerTodoist::DEFAULT_MESSAGE])
|
46
|
+
end
|
47
|
+
|
48
|
+
it "allows the message to be changed" do
|
49
|
+
@todoist.message = "changed message"
|
50
|
+
@todoist.warn_for_todos
|
51
|
+
|
52
|
+
expect(warnings).to eq(["changed message"])
|
53
|
+
end
|
54
|
+
|
55
|
+
it "can print a report" do
|
56
|
+
@todoist.warn_for_todos
|
57
|
+
@todoist.print_todos_table
|
58
|
+
|
59
|
+
expect(markdowns).to eq(
|
60
|
+
[
|
61
|
+
"#### Todos left in files",
|
62
|
+
"- some/file.rb",
|
63
|
+
"- another/stuff.rb"
|
64
|
+
]
|
65
|
+
)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
context "changed files not containing a todo" do
|
70
|
+
before do
|
71
|
+
modified = Git::Diff::DiffFile.new(
|
72
|
+
"base",
|
73
|
+
path: "some/file.rb",
|
74
|
+
patch: "+ some added line"
|
75
|
+
)
|
76
|
+
allow(@dangerfile.git).to receive(:diff_for_file)
|
77
|
+
.with("some/file.rb")
|
78
|
+
.and_return(modified)
|
79
|
+
|
80
|
+
allow(@dangerfile.git).to receive(:modified_files)
|
81
|
+
.and_return([modified_with_todo])
|
82
|
+
allow(@dangerfile.git).to receive(:added_files).and_return([])
|
83
|
+
end
|
84
|
+
|
85
|
+
it "reports nothing" do
|
86
|
+
@todoist.warn_for_todos
|
87
|
+
@todoist.print_todos_table
|
88
|
+
|
89
|
+
expect(warnings).to be_empty
|
90
|
+
expect(markdowns).to be_empty
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
it "does nothing when no files are in changeset" do
|
95
|
+
allow(@dangerfile.git).to receive(:modified_files).and_return([])
|
96
|
+
allow(@dangerfile.git).to receive(:added_files).and_return([])
|
97
|
+
|
98
|
+
@todoist.warn_for_todos
|
99
|
+
@todoist.print_todos_table
|
100
|
+
|
101
|
+
expect(warnings).to be_empty
|
102
|
+
expect(markdowns).to be_empty
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
def modified_with_todo
|
107
|
+
"some/file.rb"
|
108
|
+
end
|
109
|
+
|
110
|
+
def added_with_todo
|
111
|
+
"another/stuff.rb"
|
112
|
+
end
|
113
|
+
|
114
|
+
def warnings
|
115
|
+
@dangerfile.status_report[:warnings]
|
116
|
+
end
|
117
|
+
|
118
|
+
def markdowns
|
119
|
+
@dangerfile.status_report[:markdowns].map(&:message)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
metadata
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: danger-todoist
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Hannes Käufler
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-03 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: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.41'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.41'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.8'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.8'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.14'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.14'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '4.7'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '4.7'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: listen
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.0.7
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.0.7
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: pry
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: A danger plugin for spotting introduced todos.
|
154
|
+
email:
|
155
|
+
- hannes.kaeufler@gmail.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".gitignore"
|
161
|
+
- ".rubocop.yml"
|
162
|
+
- ".travis.yml"
|
163
|
+
- Gemfile
|
164
|
+
- Guardfile
|
165
|
+
- LICENSE.txt
|
166
|
+
- README.md
|
167
|
+
- Rakefile
|
168
|
+
- danger-todoist.gemspec
|
169
|
+
- lib/danger_plugin.rb
|
170
|
+
- lib/danger_todoist.rb
|
171
|
+
- lib/todoist/gem_version.rb
|
172
|
+
- lib/todoist/plugin.rb
|
173
|
+
- spec/spec_helper.rb
|
174
|
+
- spec/todoist_spec.rb
|
175
|
+
homepage: https://github.com/hanneskaeufler/danger-todoist
|
176
|
+
licenses:
|
177
|
+
- MIT
|
178
|
+
metadata: {}
|
179
|
+
post_install_message:
|
180
|
+
rdoc_options: []
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
requirements: []
|
194
|
+
rubyforge_project:
|
195
|
+
rubygems_version: 2.4.5.1
|
196
|
+
signing_key:
|
197
|
+
specification_version: 4
|
198
|
+
summary: Marking something with a todo is very common during implementing a new feature.
|
199
|
+
Often those todos will get missed in code review.
|
200
|
+
test_files:
|
201
|
+
- spec/spec_helper.rb
|
202
|
+
- spec/todoist_spec.rb
|