Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -285,15 +285,15 @@ GEM
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.5)
rubocop (1.75.8)
rubocop (1.80.2)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.44.0, < 2.0)
rubocop-ast (>= 1.46.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.47.1)
Expand Down Expand Up @@ -339,10 +339,10 @@ GEM
actionpack (>= 6.1)
activesupport (>= 6.1)
sprockets (>= 3.0.0)
standard (1.50.0)
standard (1.51.1)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.75.5)
rubocop (~> 1.80.2)
standard-custom (~> 1.0.0)
standard-performance (~> 1.8)
standard-custom (1.0.2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ComponentGenerator < Rails::Generators::NamedBase
class_option :skip_suffix, type: :boolean, default: false

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

hook_for :test_framework
Expand Down
1 change: 1 addition & 0 deletions lib/view_component/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
module ViewComponent
class Collection
include Enumerable

attr_reader :component

delegate :size, to: :@collection
Expand Down
1 change: 1 addition & 0 deletions lib/view_component/inline_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module ViewComponent # :nodoc:
module InlineTemplate
extend ActiveSupport::Concern

Template = Struct.new(:source, :language, :path, :lineno)

class_methods do
Expand Down
Loading