rubocop-ruby2_0 2.0.2 → 2.0.4

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: f6ad262cc12c7acc8014281804508c99dfac1e6e96b7e082231770fe57f139cb
4
- data.tar.gz: 335df629c083db514ec2048a9d987455a62d3493f9080b64b797990659226bac
3
+ metadata.gz: 74b3897efeb97f3520eb5ba41e5edf343d13bc6f3af63e1a43116ab2049c5cbf
4
+ data.tar.gz: 840d807c832bba752bde8e16ebf2613664b366f6f0b13987f80ad03c385880c1
5
5
  SHA512:
6
- metadata.gz: 714009d17a1ee35f7dd811a76439dabe029220df7748d3628a750a590db3407abed5d4b1771fa300bfc1c8dbf5bbb17eab445e100c74f5c167fa0bfe0adb44fa
7
- data.tar.gz: d15b6890bfd41edeabd3a289f7500a1c368340e09d0bc2bd3d1011720baf6d82f33228413a6fb57333dff8764e8bcc1be526510fa84536dbfebbcc8c9c985dd3
6
+ metadata.gz: 8e1ddabbbb8fed377189eced4eca283e641a312597fbe80f709941f29c96bdd6c11a4aa65189e6c15d6adfcd03ce9b8b57c582d956def3ca1fd97f7a9c09a7a8
7
+ data.tar.gz: 2e22c4a8e9abab6bf32ee325a453432e5e2ff03ead1e16659fb2ebce49f6db1c2169845f2313ae6bf5ab90958371fabefa367da72029ef19211d3f14857d95f6
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -10,9 +10,32 @@ 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.1] 2023-05-21
13
+ ## [2.0.4] 2023-06-05
14
+ ### Added
15
+ - Dependencies
16
+ - yard-junk
17
+ - redcarpet
18
+ - pry, IRB alternative
19
+ - pry-suite
20
+ - debase, for IDE debugging
21
+ - Some rules should ignore specs/tests
22
+ - Style/MethodCallWithArgsParentheses
23
+ - Style/ClassAndModuleChildren
24
+ ### Fixed
25
+ - `yard` documentation task
26
+ ### Changed
27
+ - Added Include to inherit_mode: merge
28
+ - Updated dependency on standard-rubocop-lts
29
+
30
+ ## [2.0.3] 2023-05-22
31
+ ### Fixed
32
+ - install_tasks and Railtie loading of rake tasks
33
+ ### Changed
34
+ - tasks.rake => tasks.rb
35
+
36
+ ## [2.0.2] 2023-05-21
14
37
  ### Fixed
15
- - Ship rakelib/**/*.rake tasks
38
+ - Ship rake tasks in gem package
16
39
 
17
40
  ## [2.0.1] 2023-05-18
18
41
  ### Fixed
@@ -69,7 +92,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
69
92
  ### Added
70
93
  - Initial release
71
94
 
72
- [Unreleased]: https://github.com/rubocop-lts/rubocop-ruby2_0/compare/v2.0.2...HEAD
95
+ [Unreleased]: https://github.com/rubocop-lts/rubocop-ruby2_0/compare/v2.0.4...HEAD
96
+ [2.0.4]: https://github.com/rubocop-lts/rubocop-ruby2_0/compare/v2.0.3...v2.0.4
97
+ [2.0.3]: https://github.com/rubocop-lts/rubocop-ruby2_0/compare/v2.0.2...v2.0.3
73
98
  [2.0.2]: https://github.com/rubocop-lts/rubocop-ruby2_0/compare/v2.0.1...v2.0.2
74
99
  [2.0.1]: https://github.com/rubocop-lts/rubocop-ruby2_0/compare/v2.0.0...v2.0.1
75
100
  [2.0.0]: https://github.com/rubocop-lts/rubocop-ruby2_0/compare/v1.0.5...v2.0.0
data/README.md CHANGED
@@ -365,7 +365,7 @@ the [Pessimistic Version Constraint][pvc] with two digits of precision.
365
365
  For example:
366
366
 
367
367
  ```ruby
368
- spec.add_dependency "rubocop-ruby2_0", "~> 2.0"
368
+ spec.add_dependency("rubocop-ruby2_0", "~> 2.0")
369
369
  ```
370
370
 
371
371
  [aboutme]: https://about.me/peter.boling
@@ -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::Ruby20.install_tasks
10
9
  end
11
10
  end
12
11
  end
@@ -2,10 +2,10 @@ begin
2
2
  require "rubocop/gradual/rake_task"
3
3
 
4
4
  RuboCop::Gradual::RakeTask.new(:rubocop_gradual)
5
- desc "alias rubocop task to rubocop_gradual"
6
- task rubocop: :rubocop_gradual
5
+ desc("alias rubocop task to rubocop_gradual")
6
+ task(rubocop: :rubocop_gradual)
7
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"
8
+ task(:rubocop_gradual) do
9
+ warn("NOTE: rubocop-gradual isn't installed, or is disabled for #{RUBY_VERSION} in the current environment")
10
10
  end
11
11
  end
@@ -1,4 +1,5 @@
1
1
  # Load from a "rakelib" directory is automatic!
2
2
  # Adding our custom directory of tasks as a rakelib directory makes them available.
3
- rakelib = "lib/rubocop/ruby2_0/rakelib"
3
+ abs_path = File.expand_path(__dir__)
4
+ rakelib = "#{abs_path}/rakelib"
4
5
  Rake.add_rakelib(rakelib)
@@ -3,7 +3,7 @@
3
3
  module Rubocop
4
4
  module Ruby20
5
5
  module Version
6
- VERSION = "2.0.2"
6
+ VERSION = "2.0.4"
7
7
  end
8
8
  end
9
9
  end
@@ -13,7 +13,7 @@ module Rubocop
13
13
  # Namespace of this library
14
14
  module Ruby20
15
15
  module_function def install_tasks
16
- load "rubocop/ruby2_0/tasks.rake"
16
+ load("rubocop/ruby2_0/tasks.rb")
17
17
  end
18
18
  end
19
19
  end
@@ -7,3 +7,13 @@ inherit_gem:
7
7
 
8
8
  inherit_from:
9
9
  - strict/rspec.yml
10
+
11
+ Style/MethodCallWithArgsParentheses:
12
+ Exclude:
13
+ - 'spec/**/*'
14
+ - 'test/**/*'
15
+
16
+ Style/ClassAndModuleChildren:
17
+ Exclude:
18
+ - 'spec/**/*'
19
+ - 'test/**/*'
data/rubocop-lts/ruby.yml CHANGED
@@ -5,6 +5,7 @@
5
5
  inherit_mode:
6
6
  merge:
7
7
  - Exclude
8
+ - Include
8
9
 
9
10
  require:
10
11
  # Loads the Standard Ruby suite of gems, and configures for rubocop-lts:
@@ -21,10 +22,14 @@ require:
21
22
  # RuboCop Gradual can be used in "Require mode", which is a way to replace rubocop with rubocop-gradual:
22
23
  - rubocop/gradual/patch
23
24
 
25
+ # Rules are overridden in a LIFO stack.
26
+ # If rubocop-shopify is loaded first, and standard-rubocop-lts after it,
27
+ # then rubocop-shopify's rules will take precedence.
28
+ # This is the opposite of what you might expect.
29
+ # Below: rubocop-shopify rules will override standard-rubocop-lts's (i.e. standard's) rules.
24
30
  inherit_gem:
25
- standard-rubocop-lts: config/ruby-2.0.yml
26
- # shopify rules will override standard's rules.
27
31
  rubocop-shopify: rubocop.yml
32
+ standard-rubocop-lts: config/ruby-2.0.yml
28
33
 
29
34
  inherit_from:
30
35
  - strict/ruby.yml
data/rubocop.yml CHANGED
@@ -12,4 +12,4 @@
12
12
  # rubocop-ruby2_0: rubocop.yml # for the ruby + rspec
13
13
 
14
14
  inherit_from:
15
- - rubocop-lts/ruby_rspec.yml
15
+ - rubocop-lts/rubygem_rspec.yml
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-ruby2_0
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.4
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-21 00:00:00.000000000 Z
39
+ date: 2023-06-05 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-gradual
@@ -114,7 +114,7 @@ dependencies:
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 1.0.1
117
+ version: 1.0.6
118
118
  - - "<"
119
119
  - !ruby/object:Gem::Version
120
120
  version: '2'
@@ -124,7 +124,7 @@ dependencies:
124
124
  requirements:
125
125
  - - ">="
126
126
  - !ruby/object:Gem::Version
127
- version: 1.0.1
127
+ version: 1.0.6
128
128
  - - "<"
129
129
  - !ruby/object:Gem::Version
130
130
  version: '2'
@@ -220,7 +220,7 @@ files:
220
220
  - lib/rubocop/ruby2_0.rb
221
221
  - lib/rubocop/ruby2_0/railtie.rb
222
222
  - lib/rubocop/ruby2_0/rakelib/rubocop_gradual.rake
223
- - lib/rubocop/ruby2_0/tasks.rake
223
+ - lib/rubocop/ruby2_0/tasks.rb
224
224
  - lib/rubocop/ruby2_0/version.rb
225
225
  - rubocop-lts/rails.yml
226
226
  - rubocop-lts/rails_rspec.yml
@@ -239,10 +239,10 @@ licenses:
239
239
  - MIT
240
240
  metadata:
241
241
  homepage_uri: https://github.com/rubocop-lts/rubocop-ruby2_0
242
- source_code_uri: https://github.com/rubocop-lts/rubocop-ruby2_0/tree/v2.0.2
243
- changelog_uri: https://github.com/rubocop-lts/rubocop-ruby2_0/blob/v2.0.2/CHANGELOG.md
242
+ source_code_uri: https://github.com/rubocop-lts/rubocop-ruby2_0/tree/v2.0.4
243
+ changelog_uri: https://github.com/rubocop-lts/rubocop-ruby2_0/blob/v2.0.4/CHANGELOG.md
244
244
  bug_tracker_uri: https://github.com/rubocop-lts/rubocop-ruby2_0/issues
245
- documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_0/2.0.2
245
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_0/2.0.4
246
246
  funding_uri: https://liberapay.com/pboling
247
247
  wiki_uri: https://github.com/rubocop-lts/rubocop-ruby2_0/wiki
248
248
  rubygems_mfa_required: 'true'
metadata.gz.sig CHANGED
Binary file