strict-todo 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 734ac657716c363d1d1625a0427d5b7721516304d282ec012e5b799e0924591e
4
- data.tar.gz: 5c1f5f89c2e79123259b10a72f11c7afe3b39a50e2e59e98e732865156d5487a
3
+ metadata.gz: '008c4e4c9becfccc926e779ba988779cab046af00b9f75e4116ab3b118313dad'
4
+ data.tar.gz: 8eb97053bf88a84b6e4d2a3777116e1fe2a78c2b5737f75d7563130784ba0446
5
5
  SHA512:
6
- metadata.gz: b6185c032adf9e21f0fb905bc41bfee5aeefebf8c3a55788a343895f8fe75d28918ad288ec280a2f381ad015babd6f9d1d54dcf038600a29ec3f36b9464073bc
7
- data.tar.gz: 4bbcc03ecbaeb479db8edbf92b561487e4114e443474401d636998c4bc808a751968ea253127cd4426ed1f5e1b8cd4273e0f86bc5ddd616459308d6088c9aed3
6
+ metadata.gz: d37b0e1a6572ccebd85a823b456caf9e3ea59c09faae0e73d2d64d04dec71fd406e6b087a37190fe4b060c41ae3a17c9750e1abd9c23bdad78b2068ac7dacbc1
7
+ data.tar.gz: 45713c123c6e51227efc48a0569df72a17980442b77dda02e12b4841a5e152cf971d307057d3bfbcd4ccb6e47d831069d007e7773a0ca186904d16e8d93f3ad6
data/.gitignore CHANGED
@@ -11,3 +11,6 @@
11
11
  .rspec_status
12
12
 
13
13
  Gemfile.lock
14
+
15
+ .idea
16
+ .idea/*
data/Gemfile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- # Specify your gem's dependencies in strict_todo.gemspec
5
+ # Specify your gem's dependencies in strict-todo.gemspec
6
6
  gemspec
7
7
 
8
8
  gem "rake", "~> 13.0"
File without changes
data/README.md CHANGED
@@ -1,39 +1,93 @@
1
- # Strict::Todo
1
+ # Strict TODO management
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/strict/todo`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ https://rubygems.org/gems/strict-todo
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
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
- ```ruby
42
+ ```
12
43
  gem 'strict-todo'
13
44
  ```
14
45
 
15
- And then execute:
46
+ - And then execute:
16
47
 
17
- $ bundle install
48
+ ```
49
+ $ bundle install
50
+ ```
18
51
 
19
- Or install it yourself as:
52
+ - Or install it yourself as:
20
53
 
21
- $ gem install strict-todo
54
+ ```
55
+ gem install strict-todo
56
+ ```
22
57
 
23
- ## Usage
58
+ ## Setting
24
59
 
25
- TODO: Write usage instructions here
60
+ ```
61
+ $ touch strict_config.yml
62
+ ```
26
63
 
27
- ## Development
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
- 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.
85
+ ## Usage
30
86
 
31
- 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
87
+ ```
88
+ bundle exec strict_todo_check
89
+ ```
32
90
 
33
91
  ## Contributing
34
92
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/strict-todo.
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 :)
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "bundler/setup"
5
- require_relative "../lib/strict_todo"
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.
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative '../lib/strict_todo/executable'
4
+
5
+ StrictTodo::Executable.perform
@@ -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("config/config.yml")).fetch("common").freeze
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StrictTodo
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
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.1
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
- - todo
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.txt
26
+ - LICENSE
28
27
  - README.md
29
28
  - Rakefile
30
29
  - bin/console
31
30
  - bin/setup
32
- - config/config.yml
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
- - strict_todo.gemspec
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.2.3
60
+ rubygems_version: 3.0.3
62
61
  signing_key:
63
62
  specification_version: 4
64
63
  summary: Strict to do management.
@@ -1 +0,0 @@
1
- 3.0.0
data/exe/todo DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # TODO: やることリストを洗い出す
4
-
5
- require_relative "../lib/strict_todo/executable"
6
-
7
- StrictTodo::Executable.perform