rubocop-ruby2_4 2.0.1 → 2.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: b5062bdd6ca8dfc3f4f4537557383e2fefe91757d59e763b4c028c644da2adbb
4
- data.tar.gz: 6369a7426c857b2223776a04eee399463f1a35c75be546b0ac6946347c7f5b03
3
+ metadata.gz: 0ec3c64fd33d710a84d299848c069a77ee333fea6eab33e300df3b3344c2b81d
4
+ data.tar.gz: 2bd5ab5a6c08c396abef0baf19de3e4e130eff031039a06b57842e5c078f19c8
5
5
  SHA512:
6
- metadata.gz: 9dbed9de6b098a72553310ce79adbfb7a5fcfcff07b1c7f7e11eecc5e5edce345db9a58b9b437bd1395792d2f33eda6f8b83ca735fd1675caa46c18e137cf361
7
- data.tar.gz: '0885ce3f20b7e4398fb57b1b1f237db9ace6e54fec96ac8e3de86cbc56ff42655a085874665088a64b5c7cd16d6e140422b99cd92e3f668f985659e0f6c206b7'
6
+ metadata.gz: 65236bb2fd9893ef41c02ce2630c43747ea9fef36aa0cba4b5985406fe1510c8dbb4f9eb5a2d54c84bf8453358d7720763ae4ddb65f63fdf3e178429e2763edb
7
+ data.tar.gz: 35b7a46cfb1262c100126622ec9d6e1e49c449e389aa0080dbb36a097af9ae18d5f35f8a3bf2e0386a5f8dd8bcc10d12bc0c0a507bd967ccc6b7b78731079fe5
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -10,9 +10,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
  ### Fixed
11
11
  ### Removed
12
12
 
13
+ ## [2.0.3] 2023-05-22
14
+ ### Fixed
15
+ - install_tasks and Railtie loading of rake tasks
16
+ ### Changed
17
+ - tasks.rake => tasks.rb
18
+
19
+ ## [2.0.2] 2023-05-21
20
+ ### Fixed
21
+ - Ship rake tasks in gem package
22
+
13
23
  ## [2.0.1] 2023-05-18
14
24
  ### Fixed
15
- - Ship rakelib/**/*.rake tasks
16
25
  - Fix rake_tasks hook on Railtie
17
26
 
18
27
  ## [2.0.0] 2023-05-17 [YANKED]
@@ -57,7 +66,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
57
66
  ### Added
58
67
  - Initial release
59
68
 
60
- [Unreleased]: https://github.com/rubocop-lts/rubocop-ruby2_4/compare/v2.0.1...HEAD
69
+ [Unreleased]: https://github.com/rubocop-lts/rubocop-ruby2_4/compare/v2.0.3...HEAD
70
+ [2.0.3]: https://github.com/rubocop-lts/rubocop-ruby2_4/compare/v2.0.2...v2.0.3
71
+ [2.0.2]: https://github.com/rubocop-lts/rubocop-ruby2_4/compare/v2.0.1...v2.0.2
61
72
  [2.0.1]: https://github.com/rubocop-lts/rubocop-ruby2_4/compare/v2.0.0...v2.0.1
62
73
  [2.0.0]: https://github.com/rubocop-lts/rubocop-ruby2_4/compare/v1.0.3...v2.0.0
63
74
  [1.0.3]: https://github.com/rubocop-lts/rubocop-ruby2_4/compare/v1.0.2...v1.0.3
@@ -5,8 +5,7 @@ module Rubocop
5
5
 
6
6
  if Rails.env.test? || Rails.env.development?
7
7
  rake_tasks do
8
- path = File.expand_path(__dir__)
9
- Dir.glob("#{path}/rakelib/**/*.rake").each { |f| load f }
8
+ Rubocop::Ruby24.install_tasks
10
9
  end
11
10
  end
12
11
  end
@@ -0,0 +1,11 @@
1
+ begin
2
+ require "rubocop/gradual/rake_task"
3
+
4
+ RuboCop::Gradual::RakeTask.new(:rubocop_gradual)
5
+ desc "alias rubocop task to rubocop_gradual"
6
+ task rubocop: :rubocop_gradual
7
+ rescue LoadError
8
+ task :rubocop_gradual do
9
+ warn "NOTE: rubocop-gradual isn't installed, or is disabled for #{RUBY_VERSION} in the current environment"
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ # Load from a "rakelib" directory is automatic!
2
+ # Adding our custom directory of tasks as a rakelib directory makes them available.
3
+ abs_path = File.expand_path(__dir__)
4
+ rakelib = "#{abs_path}/rakelib"
5
+ Rake.add_rakelib(rakelib)
@@ -3,7 +3,7 @@
3
3
  module Rubocop
4
4
  module Ruby24
5
5
  module Version
6
- VERSION = "2.0.1"
6
+ VERSION = "2.0.3"
7
7
  end
8
8
  end
9
9
  end
@@ -13,7 +13,7 @@ module Rubocop
13
13
  # Namespace of this library
14
14
  module Ruby24
15
15
  module_function def install_tasks
16
- load "rubocop/ruby2_4/tasks.rake"
16
+ load "rubocop/ruby2_4/tasks.rb"
17
17
  end
18
18
  end
19
19
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-ruby2_4
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -36,7 +36,7 @@ cert_chain:
36
36
  gwGrEXGQGDZ0NIgBcmvMOqlXjkGQwQvugKycJ024z89+fz2332vdZIKTrSxJrXGk
37
37
  4/bR9A==
38
38
  -----END CERTIFICATE-----
39
- date: 2023-05-18 00:00:00.000000000 Z
39
+ date: 2023-05-22 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-gradual
@@ -219,6 +219,8 @@ files:
219
219
  - SECURITY.md
220
220
  - lib/rubocop/ruby2_4.rb
221
221
  - lib/rubocop/ruby2_4/railtie.rb
222
+ - lib/rubocop/ruby2_4/rakelib/rubocop_gradual.rake
223
+ - lib/rubocop/ruby2_4/tasks.rb
222
224
  - lib/rubocop/ruby2_4/version.rb
223
225
  - rubocop-lts/rails.yml
224
226
  - rubocop-lts/rails_rspec.yml
@@ -237,10 +239,10 @@ licenses:
237
239
  - MIT
238
240
  metadata:
239
241
  homepage_uri: https://github.com/rubocop-lts/rubocop-ruby2_4
240
- source_code_uri: https://github.com/rubocop-lts/rubocop-ruby2_4/tree/v2.0.1
241
- changelog_uri: https://github.com/rubocop-lts/rubocop-ruby2_4/blob/v2.0.1/CHANGELOG.md
242
+ source_code_uri: https://github.com/rubocop-lts/rubocop-ruby2_4/tree/v2.0.3
243
+ changelog_uri: https://github.com/rubocop-lts/rubocop-ruby2_4/blob/v2.0.3/CHANGELOG.md
242
244
  bug_tracker_uri: https://github.com/rubocop-lts/rubocop-ruby2_4/issues
243
- documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_4/2.0.1
245
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_4/2.0.3
244
246
  funding_uri: https://liberapay.com/pboling
245
247
  wiki_uri: https://github.com/rubocop-lts/rubocop-ruby2_4/wiki
246
248
  rubygems_mfa_required: 'true'
metadata.gz.sig CHANGED
Binary file