rubocop-ruby2_1 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 +40 -8
- data/lib/rubocop/ruby2_1/version.rb +1 -1
- data/rubocop.yml +11 -0
- data/sig/rubocop/ruby2_1.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: fa4d47be39af30a4c6934cb3e67499814ae38da038b8526ec01b600e12bc9a24
|
4
|
+
data.tar.gz: cae72b5145e0c4ecdf96e2a73c3541812250c64bd51fa8167e6e8c901be3fecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3db60e7cb3c0a81a23783898055066f3f662730b6744280b785470356e04d60c7ae97a3e1d3c7da25402f1d1706c3d4daae49a36041d80d3a261e4fd8433b093
|
7
|
+
data.tar.gz: be2a24b17e00b14c85f06e3bcf56a07dc5db3ef8aef0ddc995cf790fcb127970b55b7811b19d56a931e9cb8063514ac20073fe37911b4f90a85524eb834e8e71
|
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.57.0 => 0.57.2
|
30
|
+
|
31
|
+
## [1.0.0] 2022-05-01
|
32
|
+
### Added
|
33
|
+
* Initial release
|
25
34
|
|
26
|
-
[Unreleased]: https://github.com/rubocop-semver/rubocop-ruby2_1/compare
|
35
|
+
[Unreleased]: https://github.com/rubocop-semver/rubocop-ruby2_1/compare/v1.0.3...HEAD
|
36
|
+
[1.0.3]: https://github.com/rubocop-semver/rubocop-ruby2_1/compare/v1.0.2...v1.0.3
|
37
|
+
[1.0.2]: https://github.com/rubocop-semver/rubocop-ruby2_1/compare/v1.0.1...v1.0.2
|
38
|
+
[1.0.1]: https://github.com/rubocop-semver/rubocop-ruby2_1/compare/v1.0.0...v1.0.1
|
27
39
|
[1.0.0]: https://github.com/rubocop-semver/rubocop-ruby2_1/compare/e23c1cb798e1198c7b2dcca40a586b5ad6294348...v1.0.0
|
data/README.md
CHANGED
@@ -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_1', '~> 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_1
|
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.1
|
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-ruby2_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-ruby2_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_1", "~> 0
|
167
|
+
spec.add_dependency "rubocop-ruby2_1", "~> 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.1
|
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_1
|
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.57.
|
19
|
+
version: 0.57.2
|
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.57.
|
26
|
+
version: 0.57.2
|
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_1.rb
|
69
69
|
- lib/rubocop/ruby2_1/version.rb
|
70
|
+
- rubocop.yml
|
71
|
+
- sig/rubocop/ruby2_1.rbs
|
70
72
|
- spec/config/rspec/rspec_core.rb
|
71
73
|
- spec/rubocop/ruby2_1_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_1
|
78
|
-
source_code_uri: https://github.com/rubocop-semver/rubocop-ruby2_1/tree/v1.0.
|
79
|
-
changelog_uri: https://github.com/rubocop-semver/rubocop-ruby2_1/blob/v1.0.
|
80
|
+
source_code_uri: https://github.com/rubocop-semver/rubocop-ruby2_1/tree/v1.0.3
|
81
|
+
changelog_uri: https://github.com/rubocop-semver/rubocop-ruby2_1/blob/v1.0.3/CHANGELOG.md
|
80
82
|
bug_tracker_uri: https://github.com/rubocop-semver/rubocop-ruby2_1/issues
|
81
|
-
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_1/1.0.
|
83
|
+
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_1/1.0.3
|
82
84
|
wiki_uri: https://github.com/rubocop-semver/rubocop-ruby2_1/wiki
|
83
85
|
rubygems_mfa_required: 'true'
|
84
86
|
post_install_message:
|