rubocop-ruby2_0 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +27 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/CONTRIBUTING.md +25 -0
- data/LICENSE.txt +21 -0
- data/README.md +205 -0
- data/SECURITY.md +13 -0
- data/lib/rubocop/ruby2_0/version.rb +7 -0
- data/lib/rubocop/ruby2_0.rb +9 -0
- data/spec/config/rspec/rspec_core.rb +13 -0
- data/spec/rubocop/ruby2_0_spec.rb +7 -0
- data/spec/spec_helper.rb +7 -0
- metadata +106 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0d3df5043a67ab5fd2a1826ae9ed048a512f3d6e40bdc34ade468f6afe2d1ff1
|
4
|
+
data.tar.gz: 29f3ff8810ccc2913fa2bcf2e0fd769a83645cbd60431308e26def147f2919cf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a4b38d8e198111ea1a5f04cdf91e3d0e27cd2886269a4a508dc35279b79d4f15b9e4e4be3e5e0e01fc12b256fd316ac629830af03a570477ae1687de204df94f
|
7
|
+
data.tar.gz: 017d0f20ab12b0643c33ba0e933f3b0fb98822965b7c3622dd6ee03f1f30071750ad1ea7aacffb5c6618ac03373aeb6729a3a51cf6e8a231eab1cb9e9f954e5c
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
### Added
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
### Removed
|
15
|
+
|
16
|
+
## [1.0.0] 2022-05-01
|
17
|
+
### Added
|
18
|
+
* Initial release
|
19
|
+
|
20
|
+
### Changed
|
21
|
+
|
22
|
+
### Fixed
|
23
|
+
|
24
|
+
### Removed
|
25
|
+
|
26
|
+
[Unreleased]: https://github.com/rubocop-semver/rubocop-ruby2_0/compare/.v1.0.0...HEAD
|
27
|
+
[1.0.0]: https://github.com/rubocop-semver/rubocop-ruby2_0/compare/8fb0f104adf43c5a0e3487b390f91881f79e4d89...v1.0.0
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at peter.boling@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
## Contributing
|
2
|
+
|
3
|
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/rubocop-semver/rubocop-ruby2_0][source]
|
4
|
+
. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
|
5
|
+
the [code of conduct][conduct].
|
6
|
+
|
7
|
+
To submit a patch, please fork the project and create a patch with tests. Once you're happy with it send a pull request!
|
8
|
+
|
9
|
+
## Contributors
|
10
|
+
|
11
|
+
[![Contributors](https://contrib.rocks/image?repo=rubocop-semver/rubocop-ruby2_0)][contributors]
|
12
|
+
|
13
|
+
Made with [contributors-img][contrib-rocks].
|
14
|
+
|
15
|
+
[comment]: <> (Following links are used by README, CONTRIBUTING)
|
16
|
+
|
17
|
+
[conduct]: https://github.com/rubocop-semver/rubocop-ruby2_0/blob/main/CODE_OF_CONDUCT.md
|
18
|
+
|
19
|
+
[contrib-rocks]: https://contrib.rocks
|
20
|
+
|
21
|
+
[contributors]: https://github.com/rubocop-semver/rubocop-ruby2_0/graphs/contributors
|
22
|
+
|
23
|
+
[comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
|
24
|
+
|
25
|
+
[source]: https://github.com/rubocop-semver/rubocop-ruby2_0/
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 Peter Boling
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,205 @@
|
|
1
|
+
<p align="center">
|
2
|
+
<a href="https://rubocop.org#gh-light-mode-only" target="_blank" rel="noopener">
|
3
|
+
<img width="120px" src="https://github.com/rubocop-semver/rubocop-ruby2_0/raw/main/docs/images/logo/rubocop-light.svg?raw=true" alt="PNG Rubocop Logo, Copyright (c) 2014 Bozhidar Batsov, MIT License, SVG Rubocop Logo, Gil Barbara, CC0">
|
4
|
+
</a>
|
5
|
+
<a href="https://rubocop.org#gh-dark-mode-only" target="_blank" rel="noopener">
|
6
|
+
<img width="120px" src="https://github.com/rubocop-semver/rubocop-ruby2_0/raw/main/docs/images/logo/rubocop-dark.svg?raw=true" alt="SVG Rubocop Logo, Copyright (c) 2014 Bozhidar Batsov, MIT License, SVG Rubocop Logo, Roberto Huertas, MIT">
|
7
|
+
</a>
|
8
|
+
<a href="https://www.ruby-lang.org/" target="_blank" rel="noopener">
|
9
|
+
<img width="120px" src="https://github.com/rubocop-semver/rubocop-ruby2_0/raw/main/docs/images/logo/ruby-logo.svg?raw=true" alt="Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5">
|
10
|
+
</a>
|
11
|
+
<a href="https://semver.org/#gh-light-mode-only" target="_blank" rel="noopener">
|
12
|
+
<img width="120px" src="https://github.com/rubocop-semver/rubocop-ruby2_0/raw/main/docs/images/logo/semver-light.svg?raw=true" alt="SemVer.org Logo by @maxhaz">
|
13
|
+
</a>
|
14
|
+
<a href="https://semver.org/#gh-dark-mode-only" target="_blank" rel="noopener">
|
15
|
+
<img width="120px" src="https://github.com/rubocop-semver/rubocop-ruby2_0/raw/main/docs/images/logo/semver-dark.svg?raw=true" alt="SemVer.org Logo by @maxhaz">
|
16
|
+
</a>
|
17
|
+
</p>
|
18
|
+
|
19
|
+
# Rubocop::Ruby20
|
20
|
+
|
21
|
+
See the intro [blog post](https://dev.to/pboling/rubocop-ruby-matrix-gems-nj)!
|
22
|
+
|
23
|
+
This gem requires no other gems. It depends on `rubocop`, but does not `require 'rubocop'`.
|
24
|
+
|
25
|
+
Awareness of `rubocop`'s lack of [SemVer][semver] adherence isn't evenly dispersed in the Ruby community.
|
26
|
+
|
27
|
+
The Rubocop team [has real reasons](https://github.com/semver/semver/issues/317)
|
28
|
+
for [not following SemVer](https://github.com/rubocop/rubocop/issues/4243), but if you've
|
29
|
+
found this project their reasons likely weigh less, in your context (e.g. running `rubocop` from command line), than
|
30
|
+
what brought you here.
|
31
|
+
|
32
|
+
<p align="left">
|
33
|
+
<a href="https://metaredux.com/posts/2022/04/21/rubocop-turns-10.html" target="_blank" rel="noopener">
|
34
|
+
<img width="360px" src="https://github.com/rubocop-semver/rubocop-ruby2_0/raw/main/docs/images/rubocop-not-semver.png?raw=true" alt="Explanation of non-SemVer compliance, @bbatsov">
|
35
|
+
</a>
|
36
|
+
</p>
|
37
|
+
|
38
|
+
The purpose of this gem is to constrain the `rubocop` dependency of a project in
|
39
|
+
a [SemVer compliant](https://semver.org/) (Semantic Versioning) way that aligns with the the desired minimum
|
40
|
+
compatible/supported Ruby version.
|
41
|
+
|
42
|
+
Adding this gem will facilitate the best practice of adding a `~> ` version constrained `rubocop` dependency, while
|
43
|
+
minimizing the risk of a rubocop minor / patch upgrade breaking the build. See the
|
44
|
+
official [compatibility matrix](https://github.com/rubocop/rubocop/blob/master/docs/modules/ROOT/pages/compatibility.adoc#support-matrix) (Rubocop documentation)
|
45
|
+
|
46
|
+
## Stable
|
47
|
+
|
48
|
+
All releases of this gem are stable releases. The first version is `1.0.0`.
|
49
|
+
|
50
|
+
## Installation
|
51
|
+
|
52
|
+
Without bundler execute:
|
53
|
+
|
54
|
+
$ gem install
|
55
|
+
|
56
|
+
Add this line to your application's Gemfile:
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
gem 'rubocop-ruby2_0', '~> 1.0', require: false
|
60
|
+
```
|
61
|
+
|
62
|
+
And then execute:
|
63
|
+
|
64
|
+
$ bundle
|
65
|
+
|
66
|
+
Or install it yourself as:
|
67
|
+
|
68
|
+
$ gem install rubocop-ruby2_0
|
69
|
+
|
70
|
+
## Usage
|
71
|
+
|
72
|
+
The following is optional. We'll discuss why you might want to do this after you see what it does.
|
73
|
+
|
74
|
+
Add to the top of your project's `.rubocop.yml` configuration file:
|
75
|
+
|
76
|
+
```yaml
|
77
|
+
inherit_gem:
|
78
|
+
rubocop-ruby2_0: rubocop.yml
|
79
|
+
```
|
80
|
+
|
81
|
+
This has the same effect as you declaring the following in your `.rubocop.yml`:
|
82
|
+
|
83
|
+
```yaml
|
84
|
+
AllCops:
|
85
|
+
# remove if already present in your `.rubocop.yml` to gain the full benefit of this gem!
|
86
|
+
TargetRubyVersion: 2.0
|
87
|
+
# The sibling gems for newer versions of Ruby support the NewCops directive as soon as Rubocop adds it.
|
88
|
+
# NewCops: enable
|
89
|
+
```
|
90
|
+
|
91
|
+
Let's talk about these settings.
|
92
|
+
|
93
|
+
## TargetRubyVersion
|
94
|
+
|
95
|
+
Allowing this gem to manage the target ruby version means you can switch to a different gem within the family when you upgrade to the next version of Ruby, and have nothing else to change. A single line in the `Gemfile`, and you are done.
|
96
|
+
|
97
|
+
## NewCops: enable
|
98
|
+
|
99
|
+
If you want to use this you'll have to upgrade to Ruby >= 2.4 and use the appropriate sibling gem, e.g. [`rubocop-ruby2_4`][2-4].
|
100
|
+
|
101
|
+
[2-4]: https://github.com/rubocop-semver/rubocop-ruby2_4
|
102
|
+
|
103
|
+
## Development
|
104
|
+
|
105
|
+
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.
|
106
|
+
|
107
|
+
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).
|
108
|
+
|
109
|
+
## Contributing
|
110
|
+
|
111
|
+
See [CONTRIBUTING.md][contributing]
|
112
|
+
|
113
|
+
## Contributors
|
114
|
+
|
115
|
+
[![Contributors](https://contrib.rocks/image?repo=rubocop-semver/rubocop-ruby2_0)]("https://github.com/rubocop-semver/rubocop-ruby2_0/graphs/contributors")
|
116
|
+
|
117
|
+
Made with [contributors-img](https://contrib.rocks).
|
118
|
+
|
119
|
+
## License
|
120
|
+
|
121
|
+
The gem is available as open source under the terms of
|
122
|
+
the [MIT License][license] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref].
|
123
|
+
See [LICENSE][license] for the official [Copyright Notice][copyright-notice-explainer].
|
124
|
+
|
125
|
+
* Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
126
|
+
|
127
|
+
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
128
|
+
|
129
|
+
## Code of Conduct
|
130
|
+
|
131
|
+
Everyone interacting in the Rubocop::Ruby20 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rubocop-semver/rubocop-ruby2_0/blob/main/CODE_OF_CONDUCT.md).
|
132
|
+
|
133
|
+
## Versioning
|
134
|
+
|
135
|
+
This library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations of this scheme should be reported as
|
136
|
+
bugs. Specifically, if a minor or patch version is released that breaks backward compatibility, a new version should be
|
137
|
+
immediately released that restores compatibility. Breaking changes to the public API will only be introduced with new
|
138
|
+
major versions.
|
139
|
+
|
140
|
+
As a result of this policy, you can (and should) specify a dependency on this gem using
|
141
|
+
the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
142
|
+
|
143
|
+
For example:
|
144
|
+
|
145
|
+
```ruby
|
146
|
+
spec.add_dependency "rubocop-ruby2_0", "~> 1.0"
|
147
|
+
```
|
148
|
+
|
149
|
+
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
150
|
+
|
151
|
+
[gh_discussions]: https://github.com/rubocop-semver/rubocop-ruby2_0/discussions
|
152
|
+
|
153
|
+
[conduct]: https://github.com/rubocop-semver/rubocop-ruby2_0/blob/main/CODE_OF_CONDUCT.md
|
154
|
+
|
155
|
+
[contributing]: https://github.com/rubocop-semver/rubocop-ruby2_0/blob/main/CONTRIBUTING.md
|
156
|
+
|
157
|
+
[security]: https://github.com/rubocop-semver/rubocop-ruby2_0/blob/main/SECURITY.md
|
158
|
+
|
159
|
+
[license]: https://github.com/rubocop-semver/rubocop-ruby2_0/blob/main/LICENSE.txt
|
160
|
+
|
161
|
+
[license-ref]: https://opensource.org/licenses/MIT
|
162
|
+
|
163
|
+
[semver]: http://semver.org/
|
164
|
+
|
165
|
+
[pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
166
|
+
|
167
|
+
[railsbling]: http://www.railsbling.com
|
168
|
+
|
169
|
+
[peterboling]: http://www.peterboling.com
|
170
|
+
|
171
|
+
[aboutme]: https://about.me/peter.boling
|
172
|
+
|
173
|
+
[angelme]: https://angel.co/peter-boling
|
174
|
+
|
175
|
+
[coderme]:http://coderwall.com/pboling
|
176
|
+
|
177
|
+
[followme-img]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow
|
178
|
+
|
179
|
+
[tweetme]: http://twitter.com/galtzo
|
180
|
+
|
181
|
+
[politicme]: https://nationalprogressiveparty.org
|
182
|
+
|
183
|
+
[documentation]: https://rubydoc.info/github/rubocop-semver/rubocop-ruby2_0/main
|
184
|
+
|
185
|
+
[source]: https://github.com/rubocop-semver/rubocop-ruby2_0/
|
186
|
+
|
187
|
+
[actions]: https://github.com/rubocop-semver/rubocop-ruby2_0/actions
|
188
|
+
|
189
|
+
[issues]: https://github.com/rubocop-semver/rubocop-ruby2_0/issues
|
190
|
+
|
191
|
+
[climate_maintainability]: https://codeclimate.com/github/rubocop-semver/rubocop-ruby2_0/maintainability
|
192
|
+
|
193
|
+
[code_triage]: https://www.codetriage.com/rubocop-semver/rubocop-ruby2_0
|
194
|
+
|
195
|
+
[blogpage]: http://www.railsbling.com/tags/rubocop-ruby2_0/
|
196
|
+
|
197
|
+
[rubygems]: https://rubygems.org/gems/rubocop-ruby2_0
|
198
|
+
|
199
|
+
[chat]: https://gitter.im/rubocop-semver/rubocop-ruby2_0?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
200
|
+
|
201
|
+
[maintenancee_policy]: https://guides.rubyonrails.org/maintenance_policy.html#security-issues
|
202
|
+
|
203
|
+
[liberapay_donate]: https://liberapay.com/pboling/donate
|
204
|
+
|
205
|
+
[gh_sponsors]: https://github.com/sponsors/pboling
|
data/SECURITY.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Supported Versions
|
4
|
+
|
5
|
+
| Version | Supported |
|
6
|
+
| ------- | ------------------ |
|
7
|
+
| 0.x | :white_check_mark: |
|
8
|
+
|
9
|
+
## Reporting a Vulnerability
|
10
|
+
|
11
|
+
Peter Boling is the primary maintainer of this gem. Please find a way
|
12
|
+
to [contact him directly](https://railsbling.com/contact) to report the issue. Include as much relevant information as
|
13
|
+
possible.
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.configure do |config|
|
4
|
+
# Enable flags like --only-failures and --next-failure
|
5
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
6
|
+
|
7
|
+
# Disable RSpec exposing methods globally on `Module` and `main`
|
8
|
+
config.disable_monkey_patching!
|
9
|
+
|
10
|
+
config.expect_with :rspec do |c|
|
11
|
+
c.syntax = :expect
|
12
|
+
end
|
13
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubocop-ruby2_0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Peter Boling
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-05-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.50.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.50.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Links dependency on minimum Ruby version to maximum Rubocop version
|
56
|
+
email:
|
57
|
+
- peter.boling@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- CHANGELOG.md
|
63
|
+
- CODE_OF_CONDUCT.md
|
64
|
+
- CONTRIBUTING.md
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- SECURITY.md
|
68
|
+
- lib/rubocop/ruby2_0.rb
|
69
|
+
- lib/rubocop/ruby2_0/version.rb
|
70
|
+
- spec/config/rspec/rspec_core.rb
|
71
|
+
- spec/rubocop/ruby2_0_spec.rb
|
72
|
+
- spec/spec_helper.rb
|
73
|
+
homepage: https://github.com/rubocop-semver/rubocop-ruby2_0
|
74
|
+
licenses:
|
75
|
+
- MIT
|
76
|
+
metadata:
|
77
|
+
homepage_uri: https://github.com/rubocop-semver/rubocop-ruby2_0
|
78
|
+
source_code_uri: https://github.com/rubocop-semver/rubocop-ruby2_0/tree/v1.0.0
|
79
|
+
changelog_uri: https://github.com/rubocop-semver/rubocop-ruby2_0/blob/v1.0.0/CHANGELOG.md
|
80
|
+
bug_tracker_uri: https://github.com/rubocop-semver/rubocop-ruby2_0/issues
|
81
|
+
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_0/1.0.0
|
82
|
+
wiki_uri: https://github.com/rubocop-semver/rubocop-ruby2_0/wiki
|
83
|
+
rubygems_mfa_required: 'true'
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options: []
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 2.0.0
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
requirements: []
|
99
|
+
rubygems_version: 3.3.12
|
100
|
+
signing_key:
|
101
|
+
specification_version: 4
|
102
|
+
summary: Semantically Versioned Rubocop Dependency
|
103
|
+
test_files:
|
104
|
+
- spec/config/rspec/rspec_core.rb
|
105
|
+
- spec/rubocop/ruby2_0_spec.rb
|
106
|
+
- spec/spec_helper.rb
|