rubocop-ruby1_9 1.0.2 → 1.0.3

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: 075b04dd2ce8d71e9b0cd4f89a5171a252e0a63ca0d6ec04aeff998587ae9b27
4
- data.tar.gz: f91d895c6b9a8bda1451e0350505f16e5c51d6472a2f728646b058dc475b7232
3
+ metadata.gz: 5e38ce8903117109e234daf6c03ae1022d22072a5d88f8134e716d9954af7b5d
4
+ data.tar.gz: d03dce65a8c97df7feba115598f975bfe5987dafec03b73ef668687141f40280
5
5
  SHA512:
6
- metadata.gz: 25583f1d969a6f20960bd4cee1be06876a5c582525e50cda805755287e4e80914381f226e040498104a2a462232c3b0f70ff512e1cef56dd93dad3469102599a
7
- data.tar.gz: aef35e9fe265ac217d6e04c858c62f8fce0806e94e9ce01790eee59c3d6681d76b1041b122aed3f4fe8799f6c4647f6f77ed378729b146617fa11cabbd5b1f4b
6
+ metadata.gz: 17053ee1926db92f4f8b0297fe7e1a15da9de10f83c9a92d528d4e2590debf38367a5019da18cac5d99f8e9fa0f5a0e503a139e9ccef372965869d1f7a45a6b0
7
+ data.tar.gz: b1afed49d5f2437c8a10b44d3e3e93afc81fcaeab7443939abc055d5ae83b04bbbe2804ffa10ee478705e5453da077c2d7c02c68c0a86bd7b911b2f932523a23
data/CHANGELOG.md CHANGED
@@ -6,7 +6,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
  ### Added
9
- * Documentation
10
9
 
11
10
  ### Changed
12
11
 
@@ -14,7 +13,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
13
 
15
14
  ### Removed
16
15
 
17
- ## [1.0.3] 2022-05-03
16
+ ## [1.0.3] 2022-05-22
17
+ ### Added
18
+ * Better documentation
19
+ * Default cop enabled for inherited rubocop.yml: Style/Encoding
20
+ * Rubocop => RuboCop typo repair
21
+ * New rubocop-ruby1_8.yml to assist with continuing support for Ruby 1.8
22
+ * Ruby Version Support Matrix
23
+ * Support installing via rubygems, without bundler
24
+
25
+ ### Fixed
26
+ * Ability to install via `gem install` command (i.e. without bundler)
27
+
28
+ ## [1.0.2] 2022-05-03
18
29
  ### Added
19
30
  * Style/BracesAroundHashParameters configured to help transition to Ruby 2.7+
20
31
 
@@ -26,7 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
37
  ### Added
27
38
  * Initial release
28
39
 
29
- [Unreleased]: https://github.com/rubocop-semver/rubocop-ruby1_9/compare/v1.0.2...HEAD
30
- [1.0.2]: https://github.com/rubocop-semver/rubocop-ruby1_9/compare/v1.0.1...v1.0.2
31
- [1.0.1]: https://github.com/rubocop-semver/rubocop-ruby1_9/compare/v1.0.0...v1.0.1
32
- [1.0.0]: https://github.com/rubocop-semver/rubocop-ruby1_9/compare/8fb0f104adf43c5a0e3487b390f91881f79e4d89...v1.0.0
40
+ [Unreleased]: https://github.com/rubocop-lts/rubocop-ruby1_9/compare/v1.0.3...HEAD
41
+ [1.0.3]: https://github.com/rubocop-lts/rubocop-ruby1_9/compare/v1.0.2...v1.0.3
42
+ [1.0.2]: https://github.com/rubocop-lts/rubocop-ruby1_9/compare/v1.0.1...v1.0.2
43
+ [1.0.1]: https://github.com/rubocop-lts/rubocop-ruby1_9/compare/v1.0.0...v1.0.1
44
+ [1.0.0]: https://github.com/rubocop-lts/rubocop-ruby1_9/compare/8fb0f104adf43c5a0e3487b390f91881f79e4d89...v1.0.0
data/CONTRIBUTING.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Contributing
2
2
 
3
- Bug reports and pull requests are welcome on GitHub at [https://github.com/rubocop-semver/rubocop-ruby1_9][source]
3
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/rubocop-lts/rubocop-ruby1_9][source]
4
4
  . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
5
5
  the [code of conduct][conduct].
6
6
 
@@ -8,18 +8,18 @@ To submit a patch, please fork the project and create a patch with tests. Once y
8
8
 
9
9
  ## Contributors
10
10
 
11
- [![Contributors](https://contrib.rocks/image?repo=rubocop-semver/rubocop-ruby1_9)][contributors]
11
+ [![Contributors](https://contrib.rocks/image?repo=rubocop-lts/rubocop-ruby1_9)][contributors]
12
12
 
13
13
  Made with [contributors-img][contrib-rocks].
14
14
 
15
15
  [comment]: <> (Following links are used by README, CONTRIBUTING)
16
16
 
17
- [conduct]: https://github.com/rubocop-semver/rubocop-ruby1_9/blob/main/CODE_OF_CONDUCT.md
17
+ [conduct]: https://github.com/rubocop-lts/rubocop-ruby1_9/blob/main/CODE_OF_CONDUCT.md
18
18
 
19
19
  [contrib-rocks]: https://contrib.rocks
20
20
 
21
- [contributors]: https://github.com/rubocop-semver/rubocop-ruby1_9/graphs/contributors
21
+ [contributors]: https://github.com/rubocop-lts/rubocop-ruby1_9/graphs/contributors
22
22
 
23
23
  [comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
24
24
 
25
- [source]: https://github.com/rubocop-semver/rubocop-ruby1_9/
25
+ [source]: https://github.com/rubocop-lts/rubocop-ruby1_9/
data/README.md CHANGED
@@ -1,18 +1,18 @@
1
1
  <p align="center">
2
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-ruby1_9/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">
3
+ <img height="120px" src="https://github.com/rubocop-lts/rubocop-ruby1_9/raw/main/docs/images/logo/rubocop-light.svg?raw=true" alt="SVG RuboCop Logo, Copyright (c) 2014 Dimiter Petrov, CC BY-NC 4.0, see docs/images/logo/README.txt">
4
4
  </a>
5
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-ruby1_9/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">
6
+ <img height="120px" src="https://github.com/rubocop-lts/rubocop-ruby1_9/raw/main/docs/images/logo/rubocop-dark.svg?raw=true" alt="SVG RuboCop Logo, Copyright (c) 2014 Dimiter Petrov, CC BY-NC 4.0, see docs/images/logo/README.txt">
7
7
  </a>
8
8
  <a href="https://www.ruby-lang.org/" target="_blank" rel="noopener">
9
- <img width="120px" src="https://github.com/rubocop-semver/rubocop-ruby1_9/raw/main/docs/images/logo/ruby-logo.svg?raw=true" alt="Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5">
9
+ <img height="120px" src="https://github.com/rubocop-lts/rubocop-ruby1_9/raw/main/docs/images/logo/ruby-logo.svg?raw=true" alt="Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5, see docs/images/logo/README.txt">
10
10
  </a>
11
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-ruby1_9/raw/main/docs/images/logo/semver-light.svg?raw=true" alt="SemVer.org Logo by @maxhaz">
12
+ <img height="120px" src="https://github.com/rubocop-lts/rubocop-ruby1_9/raw/main/docs/images/logo/semver-light.svg?raw=true" alt="SemVer.org Logo by @maxhaz, see docs/images/logo/README.txt">
13
13
  </a>
14
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-ruby1_9/raw/main/docs/images/logo/semver-dark.svg?raw=true" alt="SemVer.org Logo by @maxhaz">
15
+ <img height="120px" src="https://github.com/rubocop-lts/rubocop-ruby1_9/raw/main/docs/images/logo/semver-dark.svg?raw=true" alt="SemVer.org Logo by @maxhaz, see docs/images/logo/README.txt">
16
16
  </a>
17
17
  </p>
18
18
 
@@ -31,7 +31,7 @@ what brought you here.
31
31
 
32
32
  <p align="left">
33
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-ruby1_9/raw/main/docs/images/rubocop-not-semver.png?raw=true" alt="Explanation of non-SemVer compliance, @bbatsov">
34
+ <img width="360px" src="https://github.com/rubocop-lts/rubocop-ruby1_9/raw/main/docs/images/rubocop-not-semver.png?raw=true" alt="Explanation of non-SemVer compliance, @bbatsov">
35
35
  </a>
36
36
  </p>
37
37
 
@@ -39,15 +39,68 @@ The purpose of this gem is to constrain the `rubocop` dependency of a project in
39
39
  a [SemVer compliant](https://semver.org/) (Semantic Versioning) way that aligns with the the desired minimum
40
40
  compatible/supported Ruby version.
41
41
 
42
+ ## Ruby Version Support Matrix
43
+
42
44
  Adding this gem will facilitate the best practice of adding a `~> ` version constrained `rubocop` dependency, while
43
45
  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
46
+ official [compatibility matrix][rubocop-matrix] for `rubocop`.
47
+
48
+ `rubocop-ruby1_9` (this gem) will install on any version of Ruby >= 1.9, can be used to analyze Ruby >= 1.8.7 code, but will not execute on Ruby 3.1.
49
+
50
+ * 🧊 - Install on Ruby `<version>`
51
+ * 🏃‍ - Will Execute on Ruby `<version>`
52
+ * 🪷 - Will not execute correctly on Ruby `<version>`
53
+ * 🛠 - Lint code with Ruby `<version>` syntax as the target
54
+
55
+ | gem | 1.8.7 | 1.9.3 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 3.0 | 3.1 | ruby-head | jruby-head |
56
+ |-------------------------|---------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|------------|
57
+ | [rubocop-ruby1_9][rr19] | [🛠][what1_8] | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
58
+ | [rubocop-ruby2_0][rr20] | | | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
59
+ | [rubocop-ruby2_1][rr21] | | | | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
60
+ | [rubocop-ruby2_2][rr22] | | | | | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊‍ 🪷 | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
61
+ | [rubocop-ruby2_3][rr23] | | | | | | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
62
+ | [rubocop-ruby2_4][rr24] | | | | | | | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
63
+ | [rubocop-ruby2_5][rr25] | | | | | | | | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🪷 |
64
+ | [rubocop-ruby2_6][rr26] | | | | | | | | 🛠 | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🪷 |
65
+ | [rubocop-ruby2_7][rr27] | | | | | | | | 🛠 | 🛠 | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ |
66
+ | [rubocop-ruby3_0][rr30] | | | | | | | | 🛠 | 🛠 | 🛠 | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ | 🧊 🏃‍ |
67
+ | [rubocop-ruby3_1][rr31] | | | | | | | | 🛠 | 🛠 | 🛠 | 🛠 | 🧊 🏃‍ 🛠 | 🧊 🏃‍ | 🧊 🏃‍ |
68
+
69
+ [rr19]: https://github.com/rubocop-lts/rubocop-ruby1_9
70
+ [rr20]: https://github.com/rubocop-lts/rubocop-ruby2_0
71
+ [rr21]: https://github.com/rubocop-lts/rubocop-ruby2_1
72
+ [rr22]: https://github.com/rubocop-lts/rubocop-ruby2_2
73
+ [rr23]: https://github.com/rubocop-lts/rubocop-ruby2_3
74
+ [rr24]: https://github.com/rubocop-lts/rubocop-ruby2_4
75
+ [rr25]: https://github.com/rubocop-lts/rubocop-ruby2_5
76
+ [rr26]: https://github.com/rubocop-lts/rubocop-ruby2_6
77
+ [rr27]: https://github.com/rubocop-lts/rubocop-ruby2_7
78
+ [rr30]: https://github.com/rubocop-lts/rubocop-ruby3_0
79
+ [rr31]: https://github.com/rubocop-lts/rubocop-ruby3_1
80
+ [what1_8]: https://github.com/rubocop-lts/rubocop-ruby1_9#what-about-ruby-18
81
+ [rubocop-matrix]: https://github.com/rubocop/rubocop/blob/master/docs/modules/ROOT/pages/compatibility.adoc#support-matrix
82
+
83
+ ## Supporting Ruby v1... in 2022?
84
+
85
+ Many gems, and many of those among the most popular gems in all of Ruby-land (e.g. [rspec](https://rubygems.org/gems/rspec/versions/3.11.0), [os](https://rubygems.org/gems/os)) still do not specify a `required_ruby_version`, or they list it as `>= 0`.
86
+
87
+ If those gems want to:
88
+ * follow semver, and
89
+ * deprecate old rubies, then
90
+ * they need to first figure out what version of Ruby is currently supported, and
91
+ * once having determined the oldest supported version, they may want to enforce that support via linting, hence this family of gems.
92
+
93
+ NOTE: Some gems, e.g. rspec, are intentionally supporting Ruby 1.8.7 in 2022!
94
+
95
+ If you think about the use case of RSpec a bit this makes sense, as it would be ideal for the community for RSpec to be the last gem to drop support for Ruby 1.8.7. I wrote a [suite](https://railsbling.com/tags/rspec/) of RSpec extension gems, and I try to support the same versions of Ruby as RSpec does with my extensions.
96
+
97
+ This gem targets, and will run, on Ruby 1.9. RuboCop used to be able to analyze Ruby 1.8, and this gem makes use of that. If you are still supporting Ruby 1.8, see [What about Ruby 1.8?][what1_8] further down the page, because we can help!
98
+
99
+ ## 🗿 Stable
47
100
 
48
101
  All releases of this gem are stable releases. The first version is `1.0.0`.
49
102
 
50
- ## Installation
103
+ ## Installation
51
104
 
52
105
  Without bundler execute:
53
106
 
@@ -67,7 +120,7 @@ Or install it yourself as:
67
120
 
68
121
  $ gem install rubocop-ruby1_9
69
122
 
70
- ## Usage
123
+ ## 🔧 Usage
71
124
 
72
125
  The following is optional. We'll discuss why you might want to do this after you see what it does.
73
126
 
@@ -82,27 +135,76 @@ This has the same effect as you declaring the following in your `.rubocop.yml`:
82
135
 
83
136
  ```yaml
84
137
  # AllCops:
85
- # The sibling gems for newer versions of Ruby support the TargetRubyVersion directive as soon as Rubocop adds it.
138
+ # The sibling gems for newer versions of Ruby support the TargetRubyVersion directive as soon as RuboCop adds it.
86
139
  # TargetRubyVersion: 1.9
87
- # The sibling gems for newer versions of Ruby support the NewCops directive as soon as Rubocop adds it.
140
+ # The sibling gems for newer versions of Ruby support the NewCops directive as soon as RuboCop adds it.
88
141
  # NewCops: enable
89
- ```
90
142
 
91
- Everything is commented out! None of these settings exist in the very old version of rubocop that works with Ruby 1.9.
143
+ Style/BracesAroundHashParameters:
144
+ Enabled: true
145
+ EnforcedStyle: context_dependent
146
+
147
+ Style/Encoding:
148
+ Enabled: true
149
+ EnforcedStyle: always
150
+
151
+ Style/ExpandPathArguments:
152
+ Enabled: false
153
+ ```
92
154
 
93
155
  Let's talk about these settings.
94
156
 
95
157
  ## TargetRubyVersion
96
158
 
159
+ Commented out! Setting does not exist in the very old version of rubocop that works with Ruby 1.9.
160
+
97
161
  If you want to use this you'll have to upgrade to Ruby >= 2.0 and use the appropriate sibling gem, e.g. [`rubocop-ruby2_0`][2-0].
98
162
 
99
- [2-0]: https://github.com/rubocop-semver/rubocop-ruby2_0
163
+ [2-0]: https://github.com/rubocop-lts/rubocop-ruby2_0
100
164
 
101
165
  ## NewCops: enable
102
166
 
167
+ Commented out! Setting does not exist in the very old version of rubocop that works with Ruby 1.9.
168
+
103
169
  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].
104
170
 
105
- [2-4]: https://github.com/rubocop-semver/rubocop-ruby2_4
171
+ [2-4]: https://github.com/rubocop-lts/rubocop-ruby2_4
172
+
173
+ ## Style/BracesAroundHashParameters
174
+
175
+ In an effort to help users of this gem prepare their code for more modern Rubies it has been enabled and configured with `coontext_dependent` as the closest parallel to what will work with Ruby 2.7+, and also retain compatibility with old Ruby.
176
+
177
+ See:
178
+ * https://github.com/rubocop/rubocop/issues/7641
179
+ * https://github.com/rubocop/rubocop/pull/7643
180
+
181
+ NOTE: This cop was removed from RuboCop as of 0.80.0, so if you are on modern RuboCop and reading this for some reason, you can't use it.
182
+
183
+ ## Style/Encoding
184
+
185
+ The encoding comments can be removed once your project drops Ruby 1.9 support (and this gem!).
186
+ Whole file UTF-8 Encoding is default in Ruby 2+, so the Encoding comment is usually not needed there.
187
+ See:
188
+ * https://www.rubydoc.info/gems/rubocop/0.49.0/RuboCop/Cop/Style/Encoding
189
+
190
+ ## What about Ruby 1.8!
191
+
192
+ RuboCop has _never_ supported running on Ruby 1.8.7, but it did [used to support](https://github.com/rubocop/rubocop/issues/2640#issuecomment-378024741) analyzing it. To that end, there is a set of RuboCop rules you can use if your project still supports Ruby 1.8.
193
+
194
+ ```yaml
195
+ inherit_gem:
196
+ rubocop-ruby1_9: rubocop-ruby1_8.yml
197
+ ```
198
+
199
+ I won't copy the set of rules here, but you can peruse them [here](https://github.com/rubocop-lts/rubocop-ruby1_9/blob/main/rubocop-ruby1_8.yml). If the rules don't fit exactly your needs, you can just copy them out to your own `.rubocop.yml` config and modify!
200
+
201
+ Three different projects informed these Rubocop rules for 1.8.7.
202
+
203
+ * [rubocop_187's .rubocop-yml](https://github.com/teoucsb82/rubocop_187/blob/master/.rubocop.yml) - because `rubocop_187` is a Rails app built to Ruby-1.8.7-ify code added to it.
204
+ * [rspec's .rubocop-yml](https://github.com/rspec/rspec-core/blob/main/.rubocop.yml) - because `rspec` still supports Ruby 1.8.7
205
+ * [rspec-pending_for's .rubocop.yml](https://github.com/pboling/rspec-pending_for/blob/master/.rubocop.yml) - because `rspec-pending_for` still supports Ruby 1.8.7
206
+
207
+ If you have suggestions for a rule that improves compatibility with Ruby forward from 1.9 or 1.8, please let us know!
106
208
 
107
209
  ## Development
108
210
 
@@ -110,17 +212,17 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
110
212
 
111
213
  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).
112
214
 
113
- ## Contributing
215
+ ## 🌈 Contributing
114
216
 
115
217
  See [CONTRIBUTING.md][contributing]
116
218
 
117
- ## Contributors
219
+ ## 🌈 Contributors
118
220
 
119
- [![Contributors](https://contrib.rocks/image?repo=rubocop-semver/rubocop-ruby1_9)]("https://github.com/rubocop-semver/rubocop-ruby1_9/graphs/contributors")
221
+ [![Contributors](https://contrib.rocks/image?repo=rubocop-lts/rubocop-ruby1_9)]("https://github.com/rubocop-lts/rubocop-ruby1_9/graphs/contributors")
120
222
 
121
223
  Made with [contributors-img](https://contrib.rocks).
122
224
 
123
- ## License
225
+ ## 📄 License
124
226
 
125
227
  The gem is available as open source under the terms of
126
228
  the [MIT License][license] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref].
@@ -130,9 +232,9 @@ See [LICENSE][license] for the official [Copyright Notice][copyright-notice-expl
130
232
 
131
233
  [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
132
234
 
133
- ## Code of Conduct
235
+ ## 🌈 Code of Conduct
134
236
 
135
- Everyone interacting in the Rubocop::Ruby19 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rubocop-semver/rubocop-ruby1_9/blob/main/CODE_OF_CONDUCT.md).
237
+ Everyone interacting in the Rubocop::Ruby19 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rubocop-lts/rubocop-ruby1_9/blob/main/CODE_OF_CONDUCT.md).
136
238
 
137
239
  ## Versioning
138
240
 
@@ -152,15 +254,15 @@ spec.add_dependency "rubocop-ruby1_9", "~> 1.0"
152
254
 
153
255
  [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
154
256
 
155
- [gh_discussions]: https://github.com/rubocop-semver/rubocop-ruby1_9/discussions
257
+ [gh_discussions]: https://github.com/rubocop-lts/rubocop-ruby1_9/discussions
156
258
 
157
- [conduct]: https://github.com/rubocop-semver/rubocop-ruby1_9/blob/main/CODE_OF_CONDUCT.md
259
+ [conduct]: https://github.com/rubocop-lts/rubocop-ruby1_9/blob/main/CODE_OF_CONDUCT.md
158
260
 
159
- [contributing]: https://github.com/rubocop-semver/rubocop-ruby1_9/blob/main/CONTRIBUTING.md
261
+ [contributing]: https://github.com/rubocop-lts/rubocop-ruby1_9/blob/main/CONTRIBUTING.md
160
262
 
161
- [security]: https://github.com/rubocop-semver/rubocop-ruby1_9/blob/main/SECURITY.md
263
+ [security]: https://github.com/rubocop-lts/rubocop-ruby1_9/blob/main/SECURITY.md
162
264
 
163
- [license]: https://github.com/rubocop-semver/rubocop-ruby1_9/blob/main/LICENSE.txt
265
+ [license]: https://github.com/rubocop-lts/rubocop-ruby1_9/blob/main/LICENSE.txt
164
266
 
165
267
  [license-ref]: https://opensource.org/licenses/MIT
166
268
 
@@ -184,23 +286,23 @@ spec.add_dependency "rubocop-ruby1_9", "~> 1.0"
184
286
 
185
287
  [politicme]: https://nationalprogressiveparty.org
186
288
 
187
- [documentation]: https://rubydoc.info/github/rubocop-semver/rubocop-ruby1_9/main
289
+ [documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-ruby1_9/main
188
290
 
189
- [source]: https://github.com/rubocop-semver/rubocop-ruby1_9/
291
+ [source]: https://github.com/rubocop-lts/rubocop-ruby1_9/
190
292
 
191
- [actions]: https://github.com/rubocop-semver/rubocop-ruby1_9/actions
293
+ [actions]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions
192
294
 
193
- [issues]: https://github.com/rubocop-semver/rubocop-ruby1_9/issues
295
+ [issues]: https://github.com/rubocop-lts/rubocop-ruby1_9/issues
194
296
 
195
- [climate_maintainability]: https://codeclimate.com/github/rubocop-semver/rubocop-ruby1_9/maintainability
297
+ [climate_maintainability]: https://codeclimate.com/github/rubocop-lts/rubocop-ruby1_9/maintainability
196
298
 
197
- [code_triage]: https://www.codetriage.com/rubocop-semver/rubocop-ruby1_9
299
+ [code_triage]: https://www.codetriage.com/rubocop-lts/rubocop-ruby1_9
198
300
 
199
301
  [blogpage]: http://www.railsbling.com/tags/rubocop-ruby1_9/
200
302
 
201
303
  [rubygems]: https://rubygems.org/gems/rubocop-ruby1_9
202
304
 
203
- [chat]: https://gitter.im/rubocop-semver/rubocop-ruby1_9?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
305
+ [chat]: https://gitter.im/rubocop-lts/rubocop-ruby1_9?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
204
306
 
205
307
  [maintenancee_policy]: https://guides.rubyonrails.org/maintenance_policy.html#security-issues
206
308
 
@@ -1,7 +1,8 @@
1
+ # encoding: utf-8
1
2
  # frozen_string_literal: true
2
3
 
3
4
  module Rubocop
4
5
  module Ruby19
5
- VERSION = "1.0.2".freeze
6
+ VERSION = "1.0.3".freeze
6
7
  end
7
8
  end
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require "rubocop/ruby1_9/version"
data/rubocop.yml CHANGED
@@ -6,3 +6,11 @@
6
6
  Style/BracesAroundHashParameters:
7
7
  Enabled: true
8
8
  EnforcedStyle: context_dependent
9
+
10
+ # The encoding comments can be removed once the project drops Ruby 1.9 support (and this gem!).
11
+ # Whole file UTF-8 Encoding is default in Ruby 2+, so the Encoding comment is usually not needed there.
12
+ # See:
13
+ # * https://www.rubydoc.info/gems/rubocop/0.49.0/RuboCop/Cop/Style/Encoding
14
+ Style/Encoding:
15
+ Enabled: true
16
+ EnforcedStyle: always
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # frozen_string_literal: true
2
3
 
3
4
  RSpec.configure do |config|
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # frozen_string_literal: true
2
3
 
3
4
  RSpec.describe Rubocop::Ruby19 do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # frozen_string_literal: true
2
3
 
3
4
  # This gem
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-ruby1_9
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2022-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -25,34 +25,20 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.41.2
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: parser
29
29
  requirement: !ruby/object:Gem::Requirement
30
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
- - - ">="
31
+ - - '='
46
32
  - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
33
+ version: 2.4.0.2
34
+ type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - ">="
38
+ - - '='
53
39
  - !ruby/object:Gem::Version
54
- version: '0'
55
- description: Links dependency on minimum Ruby version to maximum Rubocop version
40
+ version: 2.4.0.2
41
+ description: Links dependency on minimum Ruby version to maximum RuboCop version
56
42
  email:
57
43
  - peter.boling@gmail.com
58
44
  executables: []
@@ -72,18 +58,18 @@ files:
72
58
  - spec/config/rspec/rspec_core.rb
73
59
  - spec/rubocop/ruby1_9_spec.rb
74
60
  - spec/spec_helper.rb
75
- homepage: https://github.com/rubocop-semver/rubocop-ruby1_9
61
+ homepage: https://github.com/rubocop-lts/rubocop-ruby1_9
76
62
  licenses:
77
63
  - MIT
78
64
  metadata:
79
- homepage_uri: https://github.com/rubocop-semver/rubocop-ruby1_9
80
- source_code_uri: https://github.com/rubocop-semver/rubocop-ruby1_9/tree/v1.0.2
81
- changelog_uri: https://github.com/rubocop-semver/rubocop-ruby1_9/blob/v1.0.2/CHANGELOG.md
82
- bug_tracker_uri: https://github.com/rubocop-semver/rubocop-ruby1_9/issues
83
- documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby1_9/1.0.2
84
- wiki_uri: https://github.com/rubocop-semver/rubocop-ruby1_9/wiki
65
+ homepage_uri: https://github.com/rubocop-lts/rubocop-ruby1_9
66
+ source_code_uri: https://github.com/rubocop-lts/rubocop-ruby1_9/tree/v1.0.3
67
+ changelog_uri: https://github.com/rubocop-lts/rubocop-ruby1_9/blob/v1.0.3/CHANGELOG.md
68
+ bug_tracker_uri: https://github.com/rubocop-lts/rubocop-ruby1_9/issues
69
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby1_9/1.0.3
70
+ wiki_uri: https://github.com/rubocop-lts/rubocop-ruby1_9/wiki
85
71
  rubygems_mfa_required: 'true'
86
- post_install_message:
72
+ post_install_message:
87
73
  rdoc_options: []
88
74
  require_paths:
89
75
  - lib
@@ -98,11 +84,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
84
  - !ruby/object:Gem::Version
99
85
  version: '0'
100
86
  requirements: []
101
- rubygems_version: 3.3.12
102
- signing_key:
87
+ rubygems_version: 3.3.14
88
+ signing_key:
103
89
  specification_version: 4
104
- summary: Semantically Versioned Rubocop Dependency
90
+ summary: Semantically Versioned RuboCop Dependency
105
91
  test_files:
92
+ - spec/spec_helper.rb
106
93
  - spec/config/rspec/rspec_core.rb
107
94
  - spec/rubocop/ruby1_9_spec.rb
108
- - spec/spec_helper.rb