rubocop-ruby1_9 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5fe6700b17673721797f20367bcb852e3fd79eb31d2ef349297efe02b20d598
4
- data.tar.gz: f3344d68fb826bb74a44fa4fd7fa2cf51a4170da693c338698e914550475f923
3
+ metadata.gz: 5e38ce8903117109e234daf6c03ae1022d22072a5d88f8134e716d9954af7b5d
4
+ data.tar.gz: d03dce65a8c97df7feba115598f975bfe5987dafec03b73ef668687141f40280
5
5
  SHA512:
6
- metadata.gz: 72397e9835126ee9791fd75a58e2e5514693d68ab344a6478781b46c1e8de1db5af02636b3b694be616f18feb36c5a148459c278592d83eef21f5dca1de19740
7
- data.tar.gz: f66421cb5b2ad7397b217f61f62e74081b948bbf1047be6197b292ee56eff784b40d2eef81d056f0fb0e82f892312d2c3dcefa1f21df9af3f7222a5ccaea1c0f
6
+ metadata.gz: 17053ee1926db92f4f8b0297fe7e1a15da9de10f83c9a92d528d4e2590debf38367a5019da18cac5d99f8e9fa0f5a0e503a139e9ccef372965869d1f7a45a6b0
7
+ data.tar.gz: b1afed49d5f2437c8a10b44d3e3e93afc81fcaeab7443939abc055d5ae83b04bbbe2804ffa10ee478705e5453da077c2d7c02c68c0a86bd7b911b2f932523a23
data/CHANGELOG.md CHANGED
@@ -13,15 +13,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
 
14
14
  ### Removed
15
15
 
16
- ## [1.0.0] 2022-05-01
16
+ ## [1.0.3] 2022-05-22
17
17
  ### Added
18
- * Initial release
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
19
24
 
20
- ### Changed
25
+ ### Fixed
26
+ * Ability to install via `gem install` command (i.e. without bundler)
27
+
28
+ ## [1.0.2] 2022-05-03
29
+ ### Added
30
+ * Style/BracesAroundHashParameters configured to help transition to Ruby 2.7+
21
31
 
32
+ ## [1.0.1] 2022-05-03
22
33
  ### Fixed
34
+ * Added missing rubocop.yml for inherit_gem directive
23
35
 
24
- ### Removed
36
+ ## [1.0.0] 2022-05-01
37
+ ### Added
38
+ * Initial release
25
39
 
26
- [Unreleased]: https://github.com/rubocop-semver/rubocop-ruby1_9/compare/.v1.0.0...HEAD
27
- [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
 
@@ -81,26 +134,77 @@ inherit_gem:
81
134
  This has the same effect as you declaring the following in your `.rubocop.yml`:
82
135
 
83
136
  ```yaml
84
- AllCops:
85
- # The sibling gems for newer versions of Ruby support the TargetRubyVersion directive as soon as Rubocop adds it.
137
+ # AllCops:
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
142
+
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
89
153
  ```
90
154
 
91
155
  Let's talk about these settings.
92
156
 
93
157
  ## TargetRubyVersion
94
158
 
159
+ Commented out! Setting does not exist in the very old version of rubocop that works with Ruby 1.9.
160
+
95
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].
96
162
 
97
- [2-0]: https://github.com/rubocop-semver/rubocop-ruby2_0
163
+ [2-0]: https://github.com/rubocop-lts/rubocop-ruby2_0
98
164
 
99
165
  ## NewCops: enable
100
166
 
167
+ Commented out! Setting does not exist in the very old version of rubocop that works with Ruby 1.9.
168
+
101
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].
102
170
 
103
- [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!
104
208
 
105
209
  ## Development
106
210
 
@@ -108,17 +212,17 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
108
212
 
109
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).
110
214
 
111
- ## Contributing
215
+ ## 🌈 Contributing
112
216
 
113
217
  See [CONTRIBUTING.md][contributing]
114
218
 
115
- ## Contributors
219
+ ## 🌈 Contributors
116
220
 
117
- [![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")
118
222
 
119
223
  Made with [contributors-img](https://contrib.rocks).
120
224
 
121
- ## License
225
+ ## 📄 License
122
226
 
123
227
  The gem is available as open source under the terms of
124
228
  the [MIT License][license] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref].
@@ -128,9 +232,9 @@ See [LICENSE][license] for the official [Copyright Notice][copyright-notice-expl
128
232
 
129
233
  [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
130
234
 
131
- ## Code of Conduct
235
+ ## 🌈 Code of Conduct
132
236
 
133
- 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).
134
238
 
135
239
  ## Versioning
136
240
 
@@ -150,15 +254,15 @@ spec.add_dependency "rubocop-ruby1_9", "~> 1.0"
150
254
 
151
255
  [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
152
256
 
153
- [gh_discussions]: https://github.com/rubocop-semver/rubocop-ruby1_9/discussions
257
+ [gh_discussions]: https://github.com/rubocop-lts/rubocop-ruby1_9/discussions
154
258
 
155
- [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
156
260
 
157
- [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
158
262
 
159
- [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
160
264
 
161
- [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
162
266
 
163
267
  [license-ref]: https://opensource.org/licenses/MIT
164
268
 
@@ -182,23 +286,23 @@ spec.add_dependency "rubocop-ruby1_9", "~> 1.0"
182
286
 
183
287
  [politicme]: https://nationalprogressiveparty.org
184
288
 
185
- [documentation]: https://rubydoc.info/github/rubocop-semver/rubocop-ruby1_9/main
289
+ [documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-ruby1_9/main
186
290
 
187
- [source]: https://github.com/rubocop-semver/rubocop-ruby1_9/
291
+ [source]: https://github.com/rubocop-lts/rubocop-ruby1_9/
188
292
 
189
- [actions]: https://github.com/rubocop-semver/rubocop-ruby1_9/actions
293
+ [actions]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions
190
294
 
191
- [issues]: https://github.com/rubocop-semver/rubocop-ruby1_9/issues
295
+ [issues]: https://github.com/rubocop-lts/rubocop-ruby1_9/issues
192
296
 
193
- [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
194
298
 
195
- [code_triage]: https://www.codetriage.com/rubocop-semver/rubocop-ruby1_9
299
+ [code_triage]: https://www.codetriage.com/rubocop-lts/rubocop-ruby1_9
196
300
 
197
301
  [blogpage]: http://www.railsbling.com/tags/rubocop-ruby1_9/
198
302
 
199
303
  [rubygems]: https://rubygems.org/gems/rubocop-ruby1_9
200
304
 
201
- [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
202
306
 
203
307
  [maintenancee_policy]: https://guides.rubyonrails.org/maintenance_policy.html#security-issues
204
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.0".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 ADDED
@@ -0,0 +1,16 @@
1
+ # Removed as of 0.80.0
2
+ # braces setting is for compatibility with Ruby 2.7+
3
+ # See:
4
+ # * https://github.com/rubocop/rubocop/issues/7641
5
+ # * https://github.com/rubocop/rubocop/pull/7643
6
+ Style/BracesAroundHashParameters:
7
+ Enabled: true
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
@@ -0,0 +1,6 @@
1
+ module Rubocop
2
+ module Ruby19
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
@@ -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.0
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-01 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: []
@@ -67,21 +53,23 @@ files:
67
53
  - SECURITY.md
68
54
  - lib/rubocop/ruby1_9.rb
69
55
  - lib/rubocop/ruby1_9/version.rb
56
+ - rubocop.yml
57
+ - sig/rubocop/ruby1_9.rbs
70
58
  - spec/config/rspec/rspec_core.rb
71
59
  - spec/rubocop/ruby1_9_spec.rb
72
60
  - spec/spec_helper.rb
73
- homepage: https://github.com/rubocop-semver/rubocop-ruby1_9
61
+ homepage: https://github.com/rubocop-lts/rubocop-ruby1_9
74
62
  licenses:
75
63
  - MIT
76
64
  metadata:
77
- homepage_uri: https://github.com/rubocop-semver/rubocop-ruby1_9
78
- source_code_uri: https://github.com/rubocop-semver/rubocop-ruby1_9/tree/v1.0.0
79
- changelog_uri: https://github.com/rubocop-semver/rubocop-ruby1_9/blob/v1.0.0/CHANGELOG.md
80
- bug_tracker_uri: https://github.com/rubocop-semver/rubocop-ruby1_9/issues
81
- documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby1_9/1.0.0
82
- 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
83
71
  rubygems_mfa_required: 'true'
84
- post_install_message:
72
+ post_install_message:
85
73
  rdoc_options: []
86
74
  require_paths:
87
75
  - lib
@@ -96,11 +84,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
84
  - !ruby/object:Gem::Version
97
85
  version: '0'
98
86
  requirements: []
99
- rubygems_version: 3.3.12
100
- signing_key:
87
+ rubygems_version: 3.3.14
88
+ signing_key:
101
89
  specification_version: 4
102
- summary: Semantically Versioned Rubocop Dependency
90
+ summary: Semantically Versioned RuboCop Dependency
103
91
  test_files:
92
+ - spec/spec_helper.rb
104
93
  - spec/config/rspec/rspec_core.rb
105
94
  - spec/rubocop/ruby1_9_spec.rb
106
- - spec/spec_helper.rb