Skip to content

Commit 8be5ab8

Browse files
authored
Merge pull request #300 from alphagov/dependabot/bundler/rubocop-govuk-eq-4.13.0
Update rubocop-govuk requirement from = 4.12.0 to = 4.13.0
2 parents 74dd680 + fe89a6a commit 8be5ab8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

govspeak.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ library for use in the UK Government Single Domain project'
4242
s.add_development_dependency "minitest", "~> 5.14"
4343
s.add_development_dependency "pry-byebug"
4444
s.add_development_dependency "rake"
45-
s.add_development_dependency "rubocop-govuk", "4.12.0"
45+
s.add_development_dependency "rubocop-govuk", "4.13.0"
4646
s.add_development_dependency "simplecov"
4747
end

lib/govspeak/post_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def initialize(html, govspeak_document)
167167

168168
def output
169169
document = nokogiri_document
170-
self.class.extensions.each do |_, block|
170+
self.class.extensions.each do |(_, block)|
171171
instance_exec(document, &block)
172172
end
173173
document.to_html

lib/govspeak/presenters/contact_presenter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def filter_post_addresses(addresses)
5959
# Not showing United Kingdom country is a "feature" lifted and shifted
6060
# from Whitehall:
6161
# https://github.com/alphagov/whitehall/blob/c67d53d80f9856549c2da1941a10dbb9170be494/lib/address_formatter/formatter.rb#L17
62-
(key == "world_location" && value.strip == "United Kingdom" || value == "")
62+
key == "world_location" && value.strip == "United Kingdom" || value == ""
6363
end
6464
end
6565

0 commit comments

Comments
 (0)