umts-custom-cops 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -54
- data/lib/umts-custom-cops.rb +2 -0
- data/lib/umts-custom-cops/version.rb +1 -1
- data/umts-custom-cops.gemspec +10 -0
- metadata +10 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36171c1c65fdaa89d9f51ac853054bdfb1b70fba4c7cc45703558601e6cb15fa
|
4
|
+
data.tar.gz: 242a501b29292aa62c2f9164d318de11366585d59ed7f219e27dbb882c5a2726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9beee0751e12708e8b8929304525859a083cf730efbab77a709c7af054403156c5a920b8d9d80536670d338470438f896fe752a6fc03097bcb32f0f0febd9ed9
|
7
|
+
data.tar.gz: e1cdd4323024aa66c17ce2c0d0bce44dfdcc4165cd3a4d7e66f7ea713dd18809522ac6b94a5459fa919a60d759b231868623c297cda530aa98b5d7f059c8b961
|
data/README.md
CHANGED
@@ -1,71 +1,37 @@
|
|
1
1
|
# UmtsCustomCops
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
**This gem is no longer under development.** All of the cops contained in this
|
4
|
+
gem are also available in the [rubocop-rspec][rr] gem.
|
5
5
|
|
6
|
-
|
7
|
-
code, so thanks to the RuboCop team for making it public.
|
6
|
+
## Migrating to rubocop-rspec
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
* Remove `gem 'umts-custom-cops'` from your Gemfile
|
9
|
+
* Add `gem 'rubocop-rspec'` to your Gemfile
|
10
|
+
* Remove `require: umts-custom-cops` from your `.rubocop.yml` file
|
11
|
+
* Add `require: rubocop-rspec` to your `.rubocop.yml` file
|
13
12
|
|
14
|
-
|
13
|
+
If you _only_ want a version of the two cops provided by this gem, you can
|
14
|
+
add the following to your `.rubocop.yml` file:
|
15
15
|
|
16
|
-
|
16
|
+
```yml
|
17
|
+
RSpec:
|
18
|
+
Enabled: false
|
17
19
|
|
18
|
-
|
19
|
-
|
20
|
-
```
|
21
|
-
|
22
|
-
And then execute:
|
23
|
-
|
24
|
-
$ bundle
|
25
|
-
|
26
|
-
Or install it yourself as:
|
27
|
-
|
28
|
-
$ gem install umts-custom-cops
|
29
|
-
|
30
|
-
## Usage
|
31
|
-
|
32
|
-
Add to your `rubocop.yml`:
|
20
|
+
RSpec/BeEql:
|
21
|
+
Enabled: true
|
33
22
|
|
34
|
-
|
35
|
-
|
23
|
+
RSpec/PredicateMatcher:
|
24
|
+
Enabled: true
|
36
25
|
```
|
37
26
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
You may enable/disable them just as with any other cop.
|
43
|
-
|
44
|
-
## Development
|
45
|
-
|
46
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
47
|
-
`rake spec` to run the tests. You can also run `bin/console` for an interactive
|
48
|
-
prompt that will allow you to experiment.
|
49
|
-
|
50
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To
|
51
|
-
release a new version, update the version number in `version.rb`, and then run
|
52
|
-
`bundle exec rake release`, which will create a git tag for the version, push
|
53
|
-
git commits and tags, and push the `.gem` file to
|
54
|
-
[rubygems.org](https://rubygems.org).
|
55
|
-
|
56
|
-
## Contributing
|
27
|
+
Also, if you have a custom `.yml` file to get this gem to work under
|
28
|
+
CodeClimate, you will not need to do that with `rubocop-rspec`. It is included
|
29
|
+
in the CodeClimate engine.
|
57
30
|
|
58
|
-
Bug reports and pull requests are welcome on GitHub at
|
59
|
-
https://github.com/umts/custom-cops.
|
60
31
|
|
61
32
|
## License
|
62
33
|
|
63
34
|
The gem is available as open source under the terms of the
|
64
35
|
[MIT License](http://opensource.org/licenses/MIT).
|
65
36
|
|
66
|
-
[
|
67
|
-
[codeclimate]: https://codeclimate.com/github/umts/custom-cops/coverage
|
68
|
-
[travis-badge]: https://travis-ci.org/umts/custom-cops.svg?branch=master
|
69
|
-
[coverage-badge]: https://codeclimate.com/github/umts/custom-cops/badges/coverage.svg
|
70
|
-
[gpa-badge]: https://codeclimate.com/github/umts/custom-cops/badges/gpa.svg
|
71
|
-
[issue-badge]: https://codeclimate.com/github/umts/custom-cops/badges/issue_count.svg
|
37
|
+
[rr]: https://github.com/rubocop/rubocop-rspec
|
data/lib/umts-custom-cops.rb
CHANGED
data/umts-custom-cops.gemspec
CHANGED
@@ -15,6 +15,16 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.homepage = 'https://github.com/umts/custom-cops'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
|
+
spec.post_install_message = <<~PIM
|
19
|
+
umts-custom-cops is no longer under development, and all functionality
|
20
|
+
provided by this gem can also be found in the `rubocop-rspec` gem. See
|
21
|
+
the README file:
|
22
|
+
|
23
|
+
https://github.com/umts/custom-cops/blob/master/README.md
|
24
|
+
|
25
|
+
for migration instructions.
|
26
|
+
PIM
|
27
|
+
|
18
28
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
19
29
|
# delete this section to allow pushing this gem to any host.
|
20
30
|
raise <<~MSG unless spec.respond_to?(:metadata)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: umts-custom-cops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UMass Transit Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -128,7 +128,14 @@ licenses:
|
|
128
128
|
- MIT
|
129
129
|
metadata:
|
130
130
|
allowed_push_host: https://rubygems.org
|
131
|
-
post_install_message:
|
131
|
+
post_install_message: |
|
132
|
+
umts-custom-cops is no longer under development, and all functionality
|
133
|
+
provided by this gem can also be found in the `rubocop-rspec` gem. See
|
134
|
+
the README file:
|
135
|
+
|
136
|
+
https://github.com/umts/custom-cops/blob/master/README.md
|
137
|
+
|
138
|
+
for migration instructions.
|
132
139
|
rdoc_options: []
|
133
140
|
require_paths:
|
134
141
|
- lib
|