rubocop-ruby2_1 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/CHANGELOG.md +13 -1
- data/README.md +40 -8
- data/lib/rubocop/ruby2_1/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 910d41482f29f3833cfcb4da4c9ff2f558a2b4e3d3b3c0965487d7ba7687dd49
|
4
|
+
data.tar.gz: 68b06b6362879d49bb7db0f54b2bed933646070a4efa014d9c8d7c4b9cf84ed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c931b8dee871334eb5bae7b0ba2a692f2566a303c2591d63a40537f63b642c53dde5d7d3d44f98120d307c1593b2ecca83b79a844dbc00d90b25fbd6e239804
|
7
|
+
data.tar.gz: 878508ea4fb0ac2ea1d96dd35fdfb86e2bddf74ba5b9410a4dc529fa314feefcdfe27263a8b35bfc439cdc9a54630e1557713c85a2f96e15fd5ed9cb00fd3d4a
|
data/CHANGELOG.md
CHANGED
@@ -13,6 +13,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
### Removed
|
15
15
|
|
16
|
+
## [1.0.1] 2022-05-02
|
17
|
+
### Added
|
18
|
+
* Documentation
|
19
|
+
|
20
|
+
### Changed
|
21
|
+
* Rubocop lock 0.57.0 => 0.57.2
|
22
|
+
|
23
|
+
### Fixed
|
24
|
+
|
25
|
+
### Removed
|
26
|
+
|
16
27
|
## [1.0.0] 2022-05-01
|
17
28
|
### Added
|
18
29
|
* Initial release
|
@@ -23,5 +34,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
23
34
|
|
24
35
|
### Removed
|
25
36
|
|
26
|
-
[Unreleased]: https://github.com/rubocop-semver/rubocop-ruby2_1/compare
|
37
|
+
[Unreleased]: https://github.com/rubocop-semver/rubocop-ruby2_1/compare/v1.0.1...HEAD
|
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
|
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.1
|
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
|
@@ -75,10 +75,10 @@ licenses:
|
|
75
75
|
- MIT
|
76
76
|
metadata:
|
77
77
|
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.
|
78
|
+
source_code_uri: https://github.com/rubocop-semver/rubocop-ruby2_1/tree/v1.0.1
|
79
|
+
changelog_uri: https://github.com/rubocop-semver/rubocop-ruby2_1/blob/v1.0.1/CHANGELOG.md
|
80
80
|
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.
|
81
|
+
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_1/1.0.1
|
82
82
|
wiki_uri: https://github.com/rubocop-semver/rubocop-ruby2_1/wiki
|
83
83
|
rubygems_mfa_required: 'true'
|
84
84
|
post_install_message:
|