meowcop 2.1.0 → 2.2.0
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 +4 -4
- data/.travis.yml +11 -0
- data/CHANGELOG.md +9 -0
- data/LICENSE +21 -0
- data/README.md +21 -16
- data/Rakefile +9 -1
- data/examples/.rubocop.yml +1 -1
- data/lib/meowcop/version.rb +1 -1
- data/meowcop.gemspec +13 -4
- metadata +44 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bfe3f7c2dc82978622a41983ad0d946afae8f9fb9a4e85accb53f97c128fdcc
|
4
|
+
data.tar.gz: 106229607619b37f71e64dc2e2d651f000583955132b113291442e0f11e70fc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 777a504864356e8c11c9f7f1f4ea7f86ac1498fbaa98bb3347ebba048f68ebc00b40fb87fabf368d3f51bb5bedd3a49747eefcc0dc81778ca29fceb27ada8506
|
7
|
+
data.tar.gz: 16e9757eddefe6072fcc552ddb1f95a690bc4f50e8ae90d30bdb6b1adfe8222bc32248abe0256f421d5602ecdfe4744c700ff942fc77ca27c2d84622032fddf5
|
data/.travis.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 2.2.0 (2019-08-30)
|
4
|
+
|
5
|
+
This release does not add any features but adds the license: **MIT**.
|
6
|
+
This may have an impact on certain users, so we decided it appropriate that this release is a minor update, not a patch update.
|
7
|
+
|
8
|
+
- [#56](https://github.com/sider/meowcop/pull/56): Add license and update gemspec
|
9
|
+
|
1
10
|
## 2.1.0 (2019-07-17)
|
2
11
|
|
3
12
|
- [#54](https://github.com/sider/meowcop/pull/54): Follow up of RuboCop v0.73
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2016 Masataka Kuwabara and Sider, Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -2,20 +2,18 @@
|
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/meowcop)
|
4
4
|
|
5
|
-
MeowCop is a gem for RuboCop configuration, it focuses
|
5
|
+
MeowCop is a gem for shareable [RuboCop](https://www.rubocop.org) configuration, it focuses [Lint](https://en.wikipedia.org/wiki/Lint_(software)).
|
6
6
|
It's recommended by Sider, Inc.
|
7
7
|
|
8
|
-
|
9
8
|
## Design
|
10
9
|
|
11
|
-
RuboCop has many
|
12
|
-
So,
|
13
|
-
|
14
|
-
In the configuration, style rules are disabled. Because the rules almost for project specific.
|
15
|
-
If you use, you can use RuboCop as a Linter without many noisy warnings.
|
10
|
+
RuboCop has many stylistic rules (RuboCop call a rule "Cop"). ["Style Cops"](https://www.rubocop.org/en/stable/cops_style/) provide one of several settings.
|
11
|
+
So, we encounter many many warnings when we introduce RuboCop. The cause is a mismatch between the RuboCop's default settings and your project's coding style.
|
16
12
|
|
13
|
+
In the configuration of MeowCop, almost all stylistic rules are disabled. Because such rules are almost specific for your project.
|
14
|
+
If you want, you can use RuboCop as a **Linter** without many noisy warnings.
|
17
15
|
|
18
|
-
|
16
|
+
In contrast, if you want to use RuboCop as a style checker, we recommend [Gry](https://github.com/pocke/gry).
|
19
17
|
|
20
18
|
## Installation
|
21
19
|
|
@@ -27,19 +25,24 @@ gem 'meowcop'
|
|
27
25
|
|
28
26
|
And then execute:
|
29
27
|
|
30
|
-
|
28
|
+
```sh
|
29
|
+
$ bundle install
|
30
|
+
```
|
31
31
|
|
32
32
|
Or install it yourself as:
|
33
33
|
|
34
|
-
|
34
|
+
```sh
|
35
|
+
$ gem install meowcop
|
36
|
+
```
|
35
37
|
|
36
38
|
## Configuration
|
37
39
|
|
38
|
-
MeowCop provides a CLI tool to
|
40
|
+
MeowCop provides a CLI tool to initialize `.rubocop.yml`. See below:
|
39
41
|
|
40
42
|
```ruby
|
41
43
|
$ meowcop init
|
42
44
|
Meow! .rubocop.yml has been created successfully.
|
45
|
+
|
43
46
|
$ cat .rubocop.yml
|
44
47
|
# To use the MeowCop gem.
|
45
48
|
inherit_gem:
|
@@ -50,7 +53,7 @@ inherit_gem:
|
|
50
53
|
AllCops:
|
51
54
|
TargetRubyVersion: 2.6
|
52
55
|
|
53
|
-
# You can customize
|
56
|
+
# You can customize RuboCop settings.
|
54
57
|
# For example.
|
55
58
|
# Style/FrozenStringLiteralComment:
|
56
59
|
# Enabled: true
|
@@ -59,19 +62,21 @@ AllCops:
|
|
59
62
|
|
60
63
|
### Example
|
61
64
|
|
62
|
-
|
63
|
-
|
65
|
+
See this [example](examples/.rubocop.yml).
|
64
66
|
|
65
67
|
## Usage
|
66
68
|
|
67
|
-
Just execute RuboCop.
|
69
|
+
Just execute RuboCop with `.rubocop.yml` configured by MeowCop:
|
68
70
|
|
69
71
|
```sh
|
70
72
|
$ bundle exec rubocop
|
71
73
|
```
|
72
74
|
|
75
|
+
Or,
|
73
76
|
|
74
|
-
|
77
|
+
```sh
|
78
|
+
$ rubocop
|
79
|
+
```
|
75
80
|
|
76
81
|
## Development
|
77
82
|
|
data/Rakefile
CHANGED
data/examples/.rubocop.yml
CHANGED
data/lib/meowcop/version.rb
CHANGED
data/meowcop.gemspec
CHANGED
@@ -6,13 +6,20 @@ require 'meowcop/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "meowcop"
|
8
8
|
spec.version = Meowcop::VERSION
|
9
|
-
spec.
|
10
|
-
spec.
|
9
|
+
spec.licenses = ["MIT"]
|
10
|
+
spec.authors = ["Masataka Kuwabara", "Sider, Inc."]
|
11
|
+
spec.email = "support@sider.review"
|
11
12
|
|
12
|
-
spec.summary = %q{
|
13
|
+
spec.summary = %q{A RuboCop configuration focusing Lint}
|
13
14
|
spec.description = %q{MeowCop is a RuboCop configuration recommended by Sider, Inc.}
|
14
15
|
spec.homepage = "https://github.com/sider/meowcop"
|
15
16
|
|
17
|
+
spec.metadata = {
|
18
|
+
"bug_tracker_uri" => "https://github.com/sider/meowcop/issues",
|
19
|
+
"changelog_uri" => "https://github.com/sider/meowcop/blob/master/CHANGELOG.md",
|
20
|
+
"source_code_uri" => "https://github.com/sider/meowcop"
|
21
|
+
}
|
22
|
+
|
16
23
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
24
|
spec.bindir = "exe"
|
18
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
@@ -21,5 +28,7 @@ Gem::Specification.new do |spec|
|
|
21
28
|
spec.add_dependency 'rubocop', '>= 0.73.0'
|
22
29
|
|
23
30
|
spec.add_development_dependency "bundler", ">= 1.12", "< 3.0"
|
24
|
-
spec.add_development_dependency "rake", "~>
|
31
|
+
spec.add_development_dependency "rake", "~> 12.3"
|
32
|
+
spec.add_development_dependency "minitest", ">= 5.11.3"
|
33
|
+
spec.add_development_dependency "minitest-reporters", ">= 1.3.8"
|
25
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meowcop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masataka Kuwabara
|
8
|
+
- Sider, Inc.
|
8
9
|
autorequire:
|
9
10
|
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date: 2019-
|
12
|
+
date: 2019-08-30 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rubocop
|
@@ -50,25 +51,54 @@ dependencies:
|
|
50
51
|
requirements:
|
51
52
|
- - "~>"
|
52
53
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
54
|
+
version: '12.3'
|
54
55
|
type: :development
|
55
56
|
prerelease: false
|
56
57
|
version_requirements: !ruby/object:Gem::Requirement
|
57
58
|
requirements:
|
58
59
|
- - "~>"
|
59
60
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
61
|
+
version: '12.3'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: minitest
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 5.11.3
|
69
|
+
type: :development
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 5.11.3
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: minitest-reporters
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.3.8
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.3.8
|
61
90
|
description: MeowCop is a RuboCop configuration recommended by Sider, Inc.
|
62
|
-
email:
|
63
|
-
- p.ck.t22@gmail.com
|
91
|
+
email: support@sider.review
|
64
92
|
executables:
|
65
93
|
- meowcop
|
66
94
|
extensions: []
|
67
95
|
extra_rdoc_files: []
|
68
96
|
files:
|
69
97
|
- ".gitignore"
|
98
|
+
- ".travis.yml"
|
70
99
|
- CHANGELOG.md
|
71
100
|
- Gemfile
|
101
|
+
- LICENSE
|
72
102
|
- README.md
|
73
103
|
- Rakefile
|
74
104
|
- bin/console
|
@@ -81,8 +111,12 @@ files:
|
|
81
111
|
- lib/meowcop/version.rb
|
82
112
|
- meowcop.gemspec
|
83
113
|
homepage: https://github.com/sider/meowcop
|
84
|
-
licenses:
|
85
|
-
|
114
|
+
licenses:
|
115
|
+
- MIT
|
116
|
+
metadata:
|
117
|
+
bug_tracker_uri: https://github.com/sider/meowcop/issues
|
118
|
+
changelog_uri: https://github.com/sider/meowcop/blob/master/CHANGELOG.md
|
119
|
+
source_code_uri: https://github.com/sider/meowcop
|
86
120
|
post_install_message:
|
87
121
|
rdoc_options: []
|
88
122
|
require_paths:
|
@@ -98,8 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
132
|
- !ruby/object:Gem::Version
|
99
133
|
version: '0'
|
100
134
|
requirements: []
|
101
|
-
rubygems_version: 3.0.
|
135
|
+
rubygems_version: 3.0.6
|
102
136
|
signing_key:
|
103
137
|
specification_version: 4
|
104
|
-
summary:
|
138
|
+
summary: A RuboCop configuration focusing Lint
|
105
139
|
test_files: []
|