runger_style 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44cd1294f615e9b89e99320530030393ffd3cb00246e362714b0f7d0518fe1a0
4
- data.tar.gz: 5e43e5ced7f28bc1c6de17552e5422a8f9955747a149596959d187a655823a58
3
+ metadata.gz: 53d59122f8a173caf3f295d81558a5e22a6ce557b7bab8c2544bc2178920f8a7
4
+ data.tar.gz: 64d3689baef28c673ace244a579acf34c9bbe15736b2a767b504339787988f4d
5
5
  SHA512:
6
- metadata.gz: ca868eb186e8d9bd5dbc4b1a8dc1e6716114984019e2616979da25a48da9a5b2ad3caeae61a86d3edd3c4c36565c49688efe7850dabc41d667ecf073c16299cd
7
- data.tar.gz: fff5728c1548c51b3419b0b29b7ce50fa4a90b4ec40bf66417469e67e0740be33413cbc2d20f63dc4ac782f34c59a34d2f41212f1c6a84c153f20170e9dd68ca
6
+ metadata.gz: 9932ea7a93a3bf1f76968ec2961705d25aa4467afb2ab591635864cd1044d4dcf9b733af3da923795dea8d5488ede8bc8c6b3c79d7a6b8079efba3e9ddfa4a0f
7
+ data.tar.gz: db108dea3ca66c3b98bba8e2cfd0ebb354925de67a4186b40cbf6d4f8e8a792eee4a5732ba0a9e280f0120bfa5f4c5ea153e57727b6dc21a43cd721504b51035
data/.rubocop.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  inherit_from:
2
2
  - rulesets/capybara.yml
3
3
  - rulesets/default.yml
4
+ - rulesets/factory_bot.yml
4
5
  - rulesets/performance.yml
5
6
  - rulesets/rails.yml
6
7
  - rulesets/rake.yml
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## v0.5.1 (2023-09-13)
2
+ ### Changed
3
+ - Move FactoryBot cops into factory_bot ruleset
4
+
5
+ ## v0.5.0 (2023-09-13)
6
+ ### Added
7
+ - Add factory_bot ruleset
8
+
1
9
  ## v0.4.0 (2023-06-26)
2
10
  ### Changed
3
11
  - Disable `FactoryBot/AssociationStyle` cop
data/Gemfile.lock CHANGED
@@ -1,25 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- runger_style (0.4.0)
4
+ runger_style (0.5.1)
5
5
  rubocop (>= 1.38.0, < 2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (7.0.5)
10
+ activesupport (7.0.8)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
12
  i18n (>= 1.6, < 2)
13
13
  minitest (>= 5.1)
14
14
  tzinfo (~> 2.0)
15
15
  ast (2.4.2)
16
+ base64 (0.1.1)
16
17
  concurrent-ruby (1.2.2)
17
18
  i18n (1.14.1)
18
19
  concurrent-ruby (~> 1.0)
19
20
  json (2.6.3)
20
21
  language_server-protocol (3.17.0.3)
21
22
  memo_wise (1.7.0)
22
- minitest (5.18.1)
23
+ minitest (5.20.0)
23
24
  parallel (1.23.0)
24
25
  parser (3.2.2.3)
25
26
  ast (~> 2.4.1)
@@ -29,8 +30,9 @@ GEM
29
30
  rainbow (3.1.1)
30
31
  rake (13.0.6)
31
32
  regexp_parser (2.8.1)
32
- rexml (3.2.5)
33
- rubocop (1.53.1)
33
+ rexml (3.2.6)
34
+ rubocop (1.56.3)
35
+ base64 (~> 0.1.1)
34
36
  json (~> 2.3)
35
37
  language_server-protocol (>= 3.17.0)
36
38
  parallel (~> 1.10)
@@ -38,7 +40,7 @@ GEM
38
40
  rainbow (>= 2.2.2, < 4.0)
39
41
  regexp_parser (>= 1.8, < 3.0)
40
42
  rexml (>= 3.2.5, < 4.0)
41
- rubocop-ast (>= 1.28.0, < 2.0)
43
+ rubocop-ast (>= 1.28.1, < 2.0)
42
44
  ruby-progressbar (~> 1.7)
43
45
  unicode-display_width (>= 2.4.0, < 3.0)
44
46
  rubocop-ast (1.29.0)
@@ -47,16 +49,16 @@ GEM
47
49
  rubocop (~> 1.41)
48
50
  rubocop-factory_bot (2.23.1)
49
51
  rubocop (~> 1.33)
50
- rubocop-performance (1.18.0)
52
+ rubocop-performance (1.19.0)
51
53
  rubocop (>= 1.7.0, < 2.0)
52
54
  rubocop-ast (>= 0.4.0)
53
- rubocop-rails (2.20.2)
55
+ rubocop-rails (2.21.0)
54
56
  activesupport (>= 4.2.0)
55
57
  rack (>= 1.1)
56
58
  rubocop (>= 1.33.0, < 2.0)
57
59
  rubocop-rake (0.6.0)
58
60
  rubocop (~> 1.0)
59
- rubocop-rspec (2.22.0)
61
+ rubocop-rspec (2.24.0)
60
62
  rubocop (~> 1.33)
61
63
  rubocop-capybara (~> 2.17)
62
64
  rubocop-factory_bot (~> 2.22)
data/README.md CHANGED
@@ -45,6 +45,7 @@ inherit_gem:
45
45
  runger_style:
46
46
  - rulesets/capybara.yml # gem 'rubocop-capybara'
47
47
  - rulesets/default.yml # gem 'rubocop'
48
+ - rulesets/factory_bot.yml # gem 'rubocop-factory_bot'
48
49
  - rulesets/performance.yml # gem 'rubocop-performance'
49
50
  - rulesets/rails.yml # gem 'rubocop-rails'
50
51
  - rulesets/rake.yml # gem 'rubocop-rake'
@@ -67,6 +68,7 @@ group :development, :test do
67
68
  # include whichever of these gems are required, based on which ruleset(s) you use
68
69
  gem 'rubocop', require: false
69
70
  gem 'rubocop-capybara', require: false
71
+ gem 'rubocop-factory_bot', require: false
70
72
  gem 'rubocop-performance', require: false
71
73
  gem 'rubocop-rails', require: false
72
74
  gem 'rubocop-rake', require: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RungerStyle
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.1'
5
5
  end
@@ -0,0 +1,8 @@
1
+ require:
2
+ - rubocop-factory_bot
3
+
4
+ FactoryBot/AssociationStyle:
5
+ Enabled: false
6
+ FactoryBot/AttributeDefinedStatically:
7
+ Exclude:
8
+ - spec/support/fixture_builder.rb # false positives get raised in this file
data/rulesets/rspec.yml CHANGED
@@ -1,11 +1,6 @@
1
1
  require:
2
2
  - rubocop-rspec
3
3
 
4
- FactoryBot/AssociationStyle:
5
- Enabled: false
6
- FactoryBot/AttributeDefinedStatically:
7
- Exclude:
8
- - spec/support/fixture_builder.rb # false positives get raised in this file
9
4
  RSpec/BeEq:
10
5
  Enabled: false
11
6
  RSpec/BeNil:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runger_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-26 00:00:00.000000000 Z
11
+ date: 2023-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -56,6 +56,7 @@ files:
56
56
  - lib/runger_style/version.rb
57
57
  - rulesets/capybara.yml
58
58
  - rulesets/default.yml
59
+ - rulesets/factory_bot.yml
59
60
  - rulesets/performance.yml
60
61
  - rulesets/rails.yml
61
62
  - rulesets/rake.yml
@@ -84,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  - !ruby/object:Gem::Version
85
86
  version: '0'
86
87
  requirements: []
87
- rubygems_version: 3.4.13
88
+ rubygems_version: 3.4.19
88
89
  signing_key:
89
90
  specification_version: 4
90
91
  summary: Shared rubocop rules for the preferred Ruby coding style of @davidrunger