Skip to content

Commit 37d9d9a

Browse files
ydahvburzynski
andauthored
Bump standard from v1.44.0 to v1.51.1 (#1779)
* chore: update gem versions in Gemfile.lock * fix: some offenses ``` ❯ bundle exec standardrb --fix Inspecting 154 files .....................................................C...................................................C................................................ Offenses: lib/factory_bot/sequence.rb:20:7: C: [Corrected] Style/RedundantParentheses: Don't use parentheses around a method call. (FactoryBot::Internal.sequences.to_a.find { |seq| seq.has_uri?(uri) }) || ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/factory_bot/sequence.rb:21:9: C: [Corrected] Style/RedundantParentheses: Don't use parentheses around a method call. (FactoryBot::Internal.inline_sequences.find { |seq| seq.has_uri?(uri) }) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spec/acceptance/sequence_spec.rb:2:3: C: [Corrected] Layout/EmptyLinesAfterModuleInclusion: Add an empty line after module inclusion. include FactoryBot::Syntax::Methods ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 154 files inspected, 3 offenses detected, 3 offenses corrected ``` * chore: update bundler --------- Co-authored-by: Valerie Burzynski <[email protected]>
1 parent d1dfbb9 commit 37d9d9a

File tree

3 files changed

+30
-25
lines changed

3 files changed

+30
-25
lines changed

Gemfile.lock

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ GEM
3636
cucumber (>= 8.0, < 10.0)
3737
rspec-expectations (~> 3.4)
3838
thor (~> 1.0)
39-
ast (2.4.2)
39+
ast (2.4.3)
4040
base64 (0.2.0)
4141
benchmark (0.4.0)
4242
bigdecimal (3.1.9)
@@ -75,8 +75,8 @@ GEM
7575
ffi (1.17.1)
7676
i18n (1.14.7)
7777
concurrent-ruby (~> 1.0)
78-
json (2.9.1)
79-
language_server-protocol (3.17.0.3)
78+
json (2.15.1)
79+
language_server-protocol (3.17.0.5)
8080
lint_roller (1.1.0)
8181
logger (1.6.5)
8282
mini_mime (1.1.5)
@@ -85,14 +85,15 @@ GEM
8585
multi_test (1.1.0)
8686
mutex_m (0.3.0)
8787
ostruct (0.6.3)
88-
parallel (1.26.3)
89-
parser (3.3.7.0)
88+
parallel (1.27.0)
89+
parser (3.3.9.0)
9090
ast (~> 2.4.1)
9191
racc
92+
prism (1.5.2)
9293
racc (1.8.1)
9394
rainbow (3.1.1)
9495
rake (13.2.1)
95-
regexp_parser (2.10.0)
96+
regexp_parser (2.11.3)
9697
rspec (3.13.0)
9798
rspec-core (~> 3.13.0)
9899
rspec-expectations (~> 3.13.0)
@@ -109,21 +110,24 @@ GEM
109110
diff-lcs (>= 1.2.0, < 2.0)
110111
rspec-support (~> 3.13.0)
111112
rspec-support (3.13.2)
112-
rubocop (1.70.0)
113+
rubocop (1.80.2)
113114
json (~> 2.3)
114-
language_server-protocol (>= 3.17.0)
115+
language_server-protocol (~> 3.17.0.2)
116+
lint_roller (~> 1.1.0)
115117
parallel (~> 1.10)
116118
parser (>= 3.3.0.2)
117119
rainbow (>= 2.2.2, < 4.0)
118120
regexp_parser (>= 2.9.3, < 3.0)
119-
rubocop-ast (>= 1.36.2, < 2.0)
121+
rubocop-ast (>= 1.46.0, < 2.0)
120122
ruby-progressbar (~> 1.7)
121123
unicode-display_width (>= 2.4.0, < 4.0)
122-
rubocop-ast (1.37.0)
123-
parser (>= 3.3.1.0)
124-
rubocop-performance (1.23.1)
125-
rubocop (>= 1.48.1, < 2.0)
126-
rubocop-ast (>= 1.31.1, < 2.0)
124+
rubocop-ast (1.47.1)
125+
parser (>= 3.3.7.2)
126+
prism (~> 1.4)
127+
rubocop-performance (1.25.0)
128+
lint_roller (~> 1.1)
129+
rubocop (>= 1.75.0, < 2.0)
130+
rubocop-ast (>= 1.38.0, < 2.0)
127131
ruby-progressbar (1.13.0)
128132
securerandom (0.4.1)
129133
simplecov (0.22.0)
@@ -134,27 +138,27 @@ GEM
134138
simplecov_json_formatter (0.1.4)
135139
sqlite3 (2.5.0)
136140
mini_portile2 (~> 2.8.0)
137-
standard (1.44.0)
141+
standard (1.51.1)
138142
language_server-protocol (~> 3.17.0.2)
139143
lint_roller (~> 1.0)
140-
rubocop (~> 1.70.0)
144+
rubocop (~> 1.80.2)
141145
standard-custom (~> 1.0.0)
142-
standard-performance (~> 1.6)
146+
standard-performance (~> 1.8)
143147
standard-custom (1.0.2)
144148
lint_roller (~> 1.0)
145149
rubocop (~> 1.50)
146-
standard-performance (1.6.0)
150+
standard-performance (1.8.0)
147151
lint_roller (~> 1.1)
148-
rubocop-performance (~> 1.23.0)
152+
rubocop-performance (~> 1.25.0)
149153
sys-uname (1.3.1)
150154
ffi (~> 1.1)
151155
thor (1.3.2)
152156
timeout (0.4.3)
153157
tzinfo (2.0.6)
154158
concurrent-ruby (~> 1.0)
155-
unicode-display_width (3.1.4)
156-
unicode-emoji (~> 4.0, >= 4.0.4)
157-
unicode-emoji (4.0.4)
159+
unicode-display_width (3.2.0)
160+
unicode-emoji (~> 4.1)
161+
unicode-emoji (4.1.0)
158162
uri (1.0.2)
159163
yard (0.9.37)
160164

@@ -179,4 +183,4 @@ DEPENDENCIES
179183
yard
180184

181185
BUNDLED WITH
182-
2.5.23
186+
2.7.2

lib/factory_bot/sequence.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def self.find(*uri_parts)
1717

1818
def self.find_by_uri(uri)
1919
uri = uri.to_sym
20-
(FactoryBot::Internal.sequences.to_a.find { |seq| seq.has_uri?(uri) }) ||
21-
(FactoryBot::Internal.inline_sequences.find { |seq| seq.has_uri?(uri) })
20+
FactoryBot::Internal.sequences.to_a.find { |seq| seq.has_uri?(uri) } ||
21+
FactoryBot::Internal.inline_sequences.find { |seq| seq.has_uri?(uri) }
2222
end
2323

2424
def initialize(name, *args, &proc)

spec/acceptance/sequence_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
describe "sequences" do
22
include FactoryBot::Syntax::Methods
3+
34
require "ostruct"
45

56
# = On Success

0 commit comments

Comments
 (0)