Skip to content

Commit e63ef0e

Browse files
authored
Merge pull request #2459 from ViewComponent/dependabot/bundler/standard-1.51.1
Bump standard from 1.50.0 to 1.51.1
2 parents 6accfd1 + ea6e970 commit e63ef0e

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,15 @@ GEM
285285
rspec-mocks (~> 3.13)
286286
rspec-support (~> 3.13)
287287
rspec-support (3.13.5)
288-
rubocop (1.75.8)
288+
rubocop (1.80.2)
289289
json (~> 2.3)
290290
language_server-protocol (~> 3.17.0.2)
291291
lint_roller (~> 1.1.0)
292292
parallel (~> 1.10)
293293
parser (>= 3.3.0.2)
294294
rainbow (>= 2.2.2, < 4.0)
295295
regexp_parser (>= 2.9.3, < 3.0)
296-
rubocop-ast (>= 1.44.0, < 2.0)
296+
rubocop-ast (>= 1.46.0, < 2.0)
297297
ruby-progressbar (~> 1.7)
298298
unicode-display_width (>= 2.4.0, < 4.0)
299299
rubocop-ast (1.47.1)
@@ -339,10 +339,10 @@ GEM
339339
actionpack (>= 6.1)
340340
activesupport (>= 6.1)
341341
sprockets (>= 3.0.0)
342-
standard (1.50.0)
342+
standard (1.51.1)
343343
language_server-protocol (~> 3.17.0.2)
344344
lint_roller (~> 1.0)
345-
rubocop (~> 1.75.5)
345+
rubocop (~> 1.80.2)
346346
standard-custom (~> 1.0.0)
347347
standard-performance (~> 1.8)
348348
standard-custom (1.0.2)

lib/generators/view_component/component/component_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ComponentGenerator < Rails::Generators::NamedBase
2323
class_option :skip_suffix, type: :boolean, default: false
2424

2525
def create_component_file
26-
template "component.rb", File.join(component_path, class_path, "#{file_name}#{options[:skip_suffix] ? "" : "_component"}.rb")
26+
template "component.rb", File.join(component_path, class_path, "#{file_name}#{"_component" unless options[:skip_suffix]}.rb")
2727
end
2828

2929
hook_for :test_framework

lib/view_component/collection.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
module ViewComponent
66
class Collection
77
include Enumerable
8+
89
attr_reader :component
910

1011
delegate :size, to: :@collection

lib/view_component/inline_template.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module ViewComponent # :nodoc:
44
module InlineTemplate
55
extend ActiveSupport::Concern
6+
67
Template = Struct.new(:source, :language, :path, :lineno)
78

89
class_methods do

0 commit comments

Comments
 (0)