strict-todo 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/Gemfile +1 -1
- data/{LICENSE.txt → LICENSE} +0 -0
- data/README.md +73 -19
- data/bin/console +1 -1
- data/exe/strict_todo_check +5 -0
- data/lib/strict_todo/config.rb +1 -1
- data/lib/strict_todo/version.rb +1 -1
- data/{strict_todo.gemspec → strict-todo.gemspec} +0 -0
- data/{config/config.yml → strict_config.yml} +0 -0
- metadata +7 -8
- data/.ruby-version +0 -1
- data/exe/todo +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '008c4e4c9becfccc926e779ba988779cab046af00b9f75e4116ab3b118313dad'
|
4
|
+
data.tar.gz: 8eb97053bf88a84b6e4d2a3777116e1fe2a78c2b5737f75d7563130784ba0446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d37b0e1a6572ccebd85a823b456caf9e3ea59c09faae0e73d2d64d04dec71fd406e6b087a37190fe4b060c41ae3a17c9750e1abd9c23bdad78b2068ac7dacbc1
|
7
|
+
data.tar.gz: 45713c123c6e51227efc48a0569df72a17980442b77dda02e12b4841a5e152cf971d307057d3bfbcd4ccb6e47d831069d007e7773a0ca186904d16e8d93f3ad6
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/{LICENSE.txt → LICENSE}
RENAMED
File without changes
|
data/README.md
CHANGED
@@ -1,39 +1,93 @@
|
|
1
|
-
# Strict
|
1
|
+
# Strict TODO management
|
2
2
|
|
3
|
-
|
3
|
+
https://rubygems.org/gems/strict-todo
|
4
4
|
|
5
|
-
|
5
|
+
We leave a lot of irresponsible TODO inside the application.
|
6
|
+
|
7
|
+
It's too dirty and stupid.
|
8
|
+
|
9
|
+
And that TODO will eventually go bad.
|
10
|
+
|
11
|
+
To prevent this from happening, I wanted to set rules for TODO and operate it.
|
12
|
+
|
13
|
+
## Format Rule
|
14
|
+
|
15
|
+
As a rule, describe who will do what by when.
|
16
|
+
|
17
|
+
- Best Format
|
18
|
+
|
19
|
+
```
|
20
|
+
# TODO(Author:Deadline): description
|
21
|
+
```
|
22
|
+
|
23
|
+
```
|
24
|
+
○ Good
|
25
|
+
# TODO(tunagohan:2020/01/30): What to do...
|
26
|
+
|
27
|
+
× Bad
|
28
|
+
-- noooooooo!!
|
29
|
+
# TODO: What to do...
|
30
|
+
-- no deadline
|
31
|
+
# TODO(tunagohan): What to do...
|
32
|
+
-- no author
|
33
|
+
# TODO(2020/01/30): What to do...
|
34
|
+
-- no description
|
35
|
+
# TODO(tunagohan:2020/01/30):
|
36
|
+
```
|
6
37
|
|
7
38
|
## Installation
|
8
39
|
|
9
|
-
Add this line to your application's Gemfile:
|
40
|
+
- Add this line to your application's Gemfile:
|
10
41
|
|
11
|
-
```
|
42
|
+
```
|
12
43
|
gem 'strict-todo'
|
13
44
|
```
|
14
45
|
|
15
|
-
And then execute:
|
46
|
+
- And then execute:
|
16
47
|
|
17
|
-
|
48
|
+
```
|
49
|
+
$ bundle install
|
50
|
+
```
|
18
51
|
|
19
|
-
Or install it yourself as:
|
52
|
+
- Or install it yourself as:
|
20
53
|
|
21
|
-
|
54
|
+
```
|
55
|
+
gem install strict-todo
|
56
|
+
```
|
22
57
|
|
23
|
-
##
|
58
|
+
## Setting
|
24
59
|
|
25
|
-
|
60
|
+
```
|
61
|
+
$ touch strict_config.yml
|
62
|
+
```
|
26
63
|
|
27
|
-
|
64
|
+
- example
|
65
|
+
|
66
|
+
```bash
|
67
|
+
common:
|
68
|
+
exclude: # Specify directories and files you want to exclude
|
69
|
+
- 'node_modules'
|
70
|
+
- 'tmp'
|
71
|
+
- 'vendor'
|
72
|
+
- '.git'
|
73
|
+
- 'Gemfile.lock'
|
74
|
+
- 'lib'
|
75
|
+
- 'db'
|
76
|
+
extension: # Specify the extension you want to extract
|
77
|
+
- '.rb'
|
78
|
+
- '.erb'
|
79
|
+
- '.vue'
|
80
|
+
- '.css'
|
81
|
+
- '.scss'
|
82
|
+
- '' # It is a specification method without extension
|
83
|
+
```
|
28
84
|
|
29
|
-
|
85
|
+
## Usage
|
30
86
|
|
31
|
-
|
87
|
+
```
|
88
|
+
bundle exec strict_todo_check
|
89
|
+
```
|
32
90
|
|
33
91
|
## Contributing
|
34
92
|
|
35
|
-
|
36
|
-
|
37
|
-
## License
|
38
|
-
|
39
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
93
|
+
Come on anything :)
|
data/bin/console
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
require "bundler/setup"
|
5
|
-
|
5
|
+
require "strict/todo"
|
6
6
|
|
7
7
|
# You can add fixtures and/or initialization code here to make experimenting
|
8
8
|
# with your gem easier. You can also use a different console, if you like.
|
data/lib/strict_todo/config.rb
CHANGED
@@ -6,7 +6,7 @@ module StrictTodo
|
|
6
6
|
class Config
|
7
7
|
private_class_method :new
|
8
8
|
|
9
|
-
COMMON = YAML.safe_load(File.read("
|
9
|
+
COMMON = YAML.safe_load(File.read("./strict_config.yml")).fetch("common").freeze
|
10
10
|
|
11
11
|
# @return [Array] 除外対象
|
12
12
|
attr_reader :exclude_match
|
data/lib/strict_todo/version.rb
CHANGED
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strict-todo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tunagohan
|
@@ -15,22 +15,20 @@ description: Strict to do management. Have them describe who will do what by whe
|
|
15
15
|
email:
|
16
16
|
- kazuxtuna@gmail.com
|
17
17
|
executables:
|
18
|
-
-
|
18
|
+
- strict_todo_check
|
19
19
|
extensions: []
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
22
|
- ".github/workflows/main.yml"
|
23
23
|
- ".gitignore"
|
24
24
|
- ".rspec"
|
25
|
-
- ".ruby-version"
|
26
25
|
- Gemfile
|
27
|
-
- LICENSE
|
26
|
+
- LICENSE
|
28
27
|
- README.md
|
29
28
|
- Rakefile
|
30
29
|
- bin/console
|
31
30
|
- bin/setup
|
32
|
-
-
|
33
|
-
- exe/todo
|
31
|
+
- exe/strict_todo_check
|
34
32
|
- lib/strict_todo.rb
|
35
33
|
- lib/strict_todo/checker.rb
|
36
34
|
- lib/strict_todo/config.rb
|
@@ -38,7 +36,8 @@ files:
|
|
38
36
|
- lib/strict_todo/find_file.rb
|
39
37
|
- lib/strict_todo/find_word.rb
|
40
38
|
- lib/strict_todo/version.rb
|
41
|
-
-
|
39
|
+
- strict-todo.gemspec
|
40
|
+
- strict_config.yml
|
42
41
|
homepage: https://github.com/tunagohan/strict-todo
|
43
42
|
licenses:
|
44
43
|
- MIT
|
@@ -58,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
57
|
- !ruby/object:Gem::Version
|
59
58
|
version: '0'
|
60
59
|
requirements: []
|
61
|
-
rubygems_version: 3.
|
60
|
+
rubygems_version: 3.0.3
|
62
61
|
signing_key:
|
63
62
|
specification_version: 4
|
64
63
|
summary: Strict to do management.
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
3.0.0
|