Skip to content

Commit bb06b70

Browse files
authored
Merge pull request #614 from citizensadvice/dependabot/bundler/view_component-4.0.1
[dependabot:bundler] bump view_component from 3.23.2 to 4.0.1
2 parents 485ba03 + 734db60 commit bb06b70

23 files changed

Lines changed: 28 additions & 11 deletions

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gem "citizens_advice_components",
4343

4444
# The citizens_advice_components gem uses view component but we also use this to write
4545
# our app components so explicitly name it as an application dependency.
46-
gem "view_component", "~> 3.23"
46+
gem "view_component", "~> 4.0"
4747

4848
# Multi-step forms. Used alongside the design system form builder
4949
gem "wizard_steps", "~> 0.1.4"

Gemfile.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,9 @@ GEM
485485
useragent (0.16.11)
486486
vcr (6.3.1)
487487
base64
488-
view_component (3.23.2)
489-
activesupport (>= 5.2.0, < 8.1)
488+
view_component (4.0.1)
489+
activesupport (>= 7.1.0, < 8.1)
490490
concurrent-ruby (~> 1)
491-
method_source (~> 1.0)
492491
web-console (4.2.1)
493492
actionview (>= 6.0.0)
494493
activemodel (>= 6.0.0)
@@ -565,7 +564,7 @@ DEPENDENCIES
565564
selenium-webdriver
566565
tzinfo-data
567566
vcr
568-
view_component (~> 3.23)
567+
view_component (~> 4.0)
569568
web-console
570569
webdrivers
571570
webmock

app/components/appliance_calculator/clear_list_component.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module ApplianceCalculator
44
class ClearListComponent < ViewComponent::Base
55
def initialize(usages)
6+
super()
67
@usages = usages
78
end
89

app/components/appliance_calculator/last_added_appliance_component.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class LastAddedApplianceComponent < ViewComponent::Base
55
attr_reader :message
66

77
def initialize(message)
8+
super()
89
@message = message
910
end
1011

app/components/appliance_calculator/most_expensive_appliance_component.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module ApplianceCalculator
44
class MostExpensiveApplianceComponent < ViewComponent::Base
55
def initialize(usages)
6+
super()
67
@usages = usages
78
end
89

app/components/appliance_calculator/usages_table_component.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module ApplianceCalculator
44
class UsagesTableComponent < ViewComponent::Base
55
def initialize(usages:, unit_rate:)
6+
super()
67
@usages = usages
78
@unit_rate = unit_rate
89
end

app/components/breadcrumbs_component.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ class BreadcrumbsComponent < ViewComponent::Base
55
delegate :scotland?, to: :helpers
66

77
def initialize(current_page_title:)
8+
super()
89
@current_page_title = current_page_title
910
end
1011

1112
def call
12-
render CitizensAdviceComponents::Breadcrumbs.new(type: :no_collapse, links:)
13+
render CitizensAdviceComponents::Breadcrumbs.new(links, type: :no_collapse)
1314
end
1415

1516
def links

app/components/content/rebel_energy_bust_banner_component.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module Content
44
class RebelEnergyBustBannerComponent < ViewComponent::Base
55
def initialize(supplier:, current_country: nil)
6+
super()
67
@supplier = supplier
78
@current_country = current_country
89
end

app/components/footer_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class FooterComponent < ViewComponent::Base
44
delegate :scotland?, :scotland_public_website_footer_nav_links, :public_website_footer_nav_links, to: :helpers
55

66
def initialize(current_path:, feedback_survey_id:, columns:, feedback_title: nil)
7-
super
7+
super()
88
@current_path = current_path
99
@feedback_survey_id = feedback_survey_id
1010
@feedback_title = feedback_title

app/components/fuel_mix_component.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class FuelMixComponent < ViewComponent::Base
66
delegate :contact_details_fragment, to: :helpers
77

88
def initialize(supplier)
9+
super()
910
@supplier = supplier
1011
@renderer = Renderers::RichTextRenderer.new
1112
end

0 commit comments

Comments
 (0)