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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fd3babbd34390821e6966e35cc99538218c43bceb35b5dc4dc888711d811d38
4
- data.tar.gz: 439c6e906a47df2bacb02ac0f4023c96409ffa0534feb8da3e23a588ad54a678
3
+ metadata.gz: 36171c1c65fdaa89d9f51ac853054bdfb1b70fba4c7cc45703558601e6cb15fa
4
+ data.tar.gz: 242a501b29292aa62c2f9164d318de11366585d59ed7f219e27dbb882c5a2726
5
5
  SHA512:
6
- metadata.gz: 6924bc7f455be47fe691f52418bce0550b2de075e4b8c95e6b0a2090b8d214db36f9923a4d47240f935111bb01869f6f37ebd61016163421a0fb02ed272afa51
7
- data.tar.gz: c91ae1f325772c354ab34c9fcea65b13705265e62f38444824bc5156843fe01ad9056f0fb5db0655e23ec57eae760ec6433065a98dbe5750d5b5355b7c6dc1d0
6
+ metadata.gz: 9beee0751e12708e8b8929304525859a083cf730efbab77a709c7af054403156c5a920b8d9d80536670d338470438f896fe752a6fc03097bcb32f0f0febd9ed9
7
+ data.tar.gz: e1cdd4323024aa66c17ce2c0d0bce44dfdcc4165cd3a4d7e66f7ea713dd18809522ac6b94a5459fa919a60d759b231868623c297cda530aa98b5d7f059c8b961
data/README.md CHANGED
@@ -1,71 +1,37 @@
1
1
  # UmtsCustomCops
2
2
 
3
- Custom Rubocops, currently all related to RSpec, used for UMass Transit's
4
- internal Rails development purposes.
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
- A lot of the ideas for this came from some reading of the rubocop source
7
- code, so thanks to the RuboCop team for making it public.
6
+ ## Migrating to rubocop-rspec
8
7
 
9
- [![Build Status][travis-badge]][travis]
10
- [![Test Coverage][coverage-badge]][codeclimate]
11
- [![Code Climate][gpa-badge]][codeclimate]
12
- [![Issue Count][issue-badge]][codeclimate]
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
- ## Installation
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
- Add this line to your application's Gemfile:
16
+ ```yml
17
+ RSpec:
18
+ Enabled: false
17
19
 
18
- ```ruby
19
- gem 'umts-custom-cops'
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
- ```xml
35
- require: umts-custom-cops
23
+ RSpec/PredicateMatcher:
24
+ Enabled: true
36
25
  ```
37
26
 
38
- Or on the command line:
39
-
40
- $ rubocop --require=umts-custom-cops
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
- [travis]: https://travis-ci.org/umts/custom-cops
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
@@ -4,3 +4,5 @@ require 'umts-custom-cops/version'
4
4
 
5
5
  require 'umts-custom-cops/be_matcher_for_non_duplicable_types'
6
6
  require 'umts-custom-cops/predicate_method_matcher'
7
+
8
+ warn "'umts-custom-cops' is deprecated. Use 'rubocop-rspec' instead"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UmtsCustomCops
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
@@ -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.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-02-19 00:00:00.000000000 Z
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