rubocop-ruby2_2 1.0.0 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -6
- data/README.md +41 -9
- data/lib/rubocop/ruby2_2/version.rb +1 -1
- data/rubocop.yml +11 -0
- data/sig/rubocop/ruby2_2.rbs +6 -0
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40c20429dcd87620fd0d07b6fa1871f878d204963e235b38e97e4d39bc484440
|
4
|
+
data.tar.gz: f80e8818943bfa10aea28e1e3bd6247a3b74b7d98d0549df254dec57a72e00ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4a4d4f198496ef14a8152936ef4955e4ab9e1ebdd1b976e0dbf99d0ee0f99ca6db64ed1d64e4b5b3f564ca5f24778ec246fdceaee0c51e6ff524c862f12e86
|
7
|
+
data.tar.gz: 7baa48ea191ab7b609abbf7971293baadc3d4a20f4b35db77e83b89ca257def320c19df291ebd52fdc69d6e1b1620b210fa8de31cf9d297a81dc180e5038a117
|
data/CHANGELOG.md
CHANGED
@@ -13,15 +13,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
### Removed
|
15
15
|
|
16
|
-
## [1.0.
|
16
|
+
## [1.0.3] 2022-05-03
|
17
17
|
### Added
|
18
|
-
*
|
19
|
-
|
20
|
-
### Changed
|
18
|
+
* Style/BracesAroundHashParameters configured to help transition to Ruby 2.7+
|
21
19
|
|
20
|
+
## [1.0.2] 2022-05-03
|
22
21
|
### Fixed
|
22
|
+
* Added missing rubocop.yml for inherit_gem directive
|
23
23
|
|
24
|
-
|
24
|
+
## [1.0.1] 2022-05-02
|
25
|
+
### Added
|
26
|
+
* Documentation
|
27
|
+
|
28
|
+
### Changed
|
29
|
+
* Rubocop lock 0.68.0 => 0.68.1
|
30
|
+
|
31
|
+
## [1.0.0] 2022-05-01
|
32
|
+
### Added
|
33
|
+
* Initial release
|
25
34
|
|
26
|
-
[Unreleased]: https://github.com/rubocop-semver/rubocop-ruby2_2/compare
|
35
|
+
[Unreleased]: https://github.com/rubocop-semver/rubocop-ruby2_2/compare/v1.0.3...HEAD
|
36
|
+
[1.0.3]: https://github.com/rubocop-semver/rubocop-ruby2_2/compare/v1.0.2...v1.0.3
|
37
|
+
[1.0.2]: https://github.com/rubocop-semver/rubocop-ruby2_2/compare/v1.0.1...v1.0.2
|
38
|
+
[1.0.1]: https://github.com/rubocop-semver/rubocop-ruby2_2/compare/v1.0.0...v1.0.1
|
27
39
|
[1.0.0]: https://github.com/rubocop-semver/rubocop-ruby2_2/compare/b86f10e2f7a0ad4081b07782b3b924ef67acdeab...v1.0.0
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ a [SemVer compliant](https://semver.org/) (Semantic Versioning) way that aligns
|
|
40
40
|
compatible/supported Ruby version.
|
41
41
|
|
42
42
|
Adding this gem will facilitate the best practice of adding a `~> ` version constrained `rubocop` dependency, while
|
43
|
-
|
43
|
+
minimizing the risk of a rubocop minor / patch upgrade breaking the build. See the
|
44
44
|
official [compatibility matrix](https://github.com/rubocop/rubocop/blob/master/docs/modules/ROOT/pages/compatibility.adoc#support-matrix) (Rubocop documentation)
|
45
45
|
|
46
46
|
## Stable
|
@@ -49,11 +49,21 @@ All releases of this gem are stable releases. The first version is `1.0.0`.
|
|
49
49
|
|
50
50
|
## Installation
|
51
51
|
|
52
|
-
|
52
|
+
Without bundler execute:
|
53
53
|
|
54
|
-
$
|
54
|
+
$ gem install
|
55
55
|
|
56
|
-
|
56
|
+
Add this line to your application's Gemfile:
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
gem 'rubocop-ruby2_2', '~> 1.0', require: false
|
60
|
+
```
|
61
|
+
|
62
|
+
And then execute:
|
63
|
+
|
64
|
+
$ bundle
|
65
|
+
|
66
|
+
Or install it yourself as:
|
57
67
|
|
58
68
|
$ gem install rubocop-ruby2_2
|
59
69
|
|
@@ -61,7 +71,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
61
71
|
|
62
72
|
The following is optional. We'll discuss why you might want to do this after you see what it does.
|
63
73
|
|
64
|
-
Add to the top of your project's
|
74
|
+
Add to the top of your project's `.rubocop.yml` configuration file:
|
65
75
|
|
66
76
|
```yaml
|
67
77
|
inherit_gem:
|
@@ -74,7 +84,8 @@ This has the same effect as you declaring the following in your `.rubocop.yml`:
|
|
74
84
|
AllCops:
|
75
85
|
# remove if already present in your `.rubocop.yml` to gain the full benefit of this gem!
|
76
86
|
TargetRubyVersion: 2.2
|
77
|
-
NewCops
|
87
|
+
# The sibling gems for newer versions of Ruby support the NewCops directive as soon as Rubocop adds it.
|
88
|
+
# NewCops: enable
|
78
89
|
```
|
79
90
|
|
80
91
|
Let's talk about these settings.
|
@@ -85,9 +96,9 @@ Allowing this gem to manage the target ruby version means you can switch to a di
|
|
85
96
|
|
86
97
|
## NewCops: enable
|
87
98
|
|
88
|
-
|
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].
|
89
100
|
|
90
|
-
|
101
|
+
[2-4]: https://github.com/rubocop-semver/rubocop-ruby2_4
|
91
102
|
|
92
103
|
## Development
|
93
104
|
|
@@ -111,6 +122,27 @@ The gem is available as open source under the terms of
|
|
111
122
|
the [MIT License][license] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref].
|
112
123
|
See [LICENSE][license] for the official [Copyright Notice][copyright-notice-explainer].
|
113
124
|
|
125
|
+
<details>
|
126
|
+
<summary>Project Logos (rubocop-ruby3_1)</summary>
|
127
|
+
|
128
|
+
See [docs/images/logo/README.txt][project-logos]
|
129
|
+
</details>
|
130
|
+
|
131
|
+
<details>
|
132
|
+
<summary>Organization Logo (rubocop-semver)</summary>
|
133
|
+
|
134
|
+
Author: [Yusuf Evli][org-logo-author]
|
135
|
+
Source: [Unsplash][org-logo-source]
|
136
|
+
License: [Unsplash License][org-logo-license]
|
137
|
+
</details>
|
138
|
+
|
139
|
+
[project-logos]: https://github.com/rubocop-semver/rubocop-ruby3_1/blob/main/docs/images/logo/README.txt
|
140
|
+
[org-logo-author]: https://unsplash.com/@yusufevli
|
141
|
+
[org-logo-source]: https://unsplash.com/photos/yaSLNLtKRIU
|
142
|
+
[org-logo-license]: https://unsplash.com/license
|
143
|
+
|
144
|
+
### Copyright
|
145
|
+
|
114
146
|
* Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
115
147
|
|
116
148
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
@@ -132,7 +164,7 @@ the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
|
132
164
|
For example:
|
133
165
|
|
134
166
|
```ruby
|
135
|
-
spec.add_dependency "rubocop-ruby2_2", "~> 0
|
167
|
+
spec.add_dependency "rubocop-ruby2_2", "~> 1.0"
|
136
168
|
```
|
137
169
|
|
138
170
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
data/rubocop.yml
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.2
|
3
|
+
|
4
|
+
# Removed as of 0.80.0
|
5
|
+
# braces setting is for compatibility with Ruby 2.7+
|
6
|
+
# See:
|
7
|
+
# * https://github.com/rubocop/rubocop/issues/7641
|
8
|
+
# * https://github.com/rubocop/rubocop/pull/7643
|
9
|
+
Style/BracesAroundHashParameters:
|
10
|
+
Enabled: true
|
11
|
+
EnforcedStyle: context_dependent
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-ruby2_2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.68.
|
19
|
+
version: 0.68.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.68.
|
26
|
+
version: 0.68.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,6 +67,8 @@ files:
|
|
67
67
|
- SECURITY.md
|
68
68
|
- lib/rubocop/ruby2_2.rb
|
69
69
|
- lib/rubocop/ruby2_2/version.rb
|
70
|
+
- rubocop.yml
|
71
|
+
- sig/rubocop/ruby2_2.rbs
|
70
72
|
- spec/config/rspec/rspec_core.rb
|
71
73
|
- spec/rubocop/ruby2_2_spec.rb
|
72
74
|
- spec/spec_helper.rb
|
@@ -75,10 +77,10 @@ licenses:
|
|
75
77
|
- MIT
|
76
78
|
metadata:
|
77
79
|
homepage_uri: https://github.com/rubocop-semver/rubocop-ruby2_2
|
78
|
-
source_code_uri: https://github.com/rubocop-semver/rubocop-ruby2_2/tree/v1.0.
|
79
|
-
changelog_uri: https://github.com/rubocop-semver/rubocop-ruby2_2/blob/v1.0.
|
80
|
+
source_code_uri: https://github.com/rubocop-semver/rubocop-ruby2_2/tree/v1.0.3
|
81
|
+
changelog_uri: https://github.com/rubocop-semver/rubocop-ruby2_2/blob/v1.0.3/CHANGELOG.md
|
80
82
|
bug_tracker_uri: https://github.com/rubocop-semver/rubocop-ruby2_2/issues
|
81
|
-
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_2/1.0.
|
83
|
+
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_2/1.0.3
|
82
84
|
wiki_uri: https://github.com/rubocop-semver/rubocop-ruby2_2/wiki
|
83
85
|
rubygems_mfa_required: 'true'
|
84
86
|
post_install_message:
|