Skip to content

Commit

Permalink
Merge pull request #300 from alphagov/dependabot/bundler/rubocop-govu…
Browse files Browse the repository at this point in the history
…k-eq-4.13.0

Update rubocop-govuk requirement from = 4.12.0 to = 4.13.0
  • Loading branch information
jkempster34 committed Dec 28, 2023
2 parents 74dd680 + fe89a6a commit 8be5ab8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion govspeak.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ library for use in the UK Government Single Domain project'
s.add_development_dependency "minitest", "~> 5.14"
s.add_development_dependency "pry-byebug"
s.add_development_dependency "rake"
s.add_development_dependency "rubocop-govuk", "4.12.0"
s.add_development_dependency "rubocop-govuk", "4.13.0"
s.add_development_dependency "simplecov"
end
2 changes: 1 addition & 1 deletion lib/govspeak/post_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def initialize(html, govspeak_document)

def output
document = nokogiri_document
self.class.extensions.each do |_, block|
self.class.extensions.each do |(_, block)|
instance_exec(document, &block)
end
document.to_html
Expand Down
2 changes: 1 addition & 1 deletion lib/govspeak/presenters/contact_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def filter_post_addresses(addresses)
# Not showing United Kingdom country is a "feature" lifted and shifted
# from Whitehall:
# https://github.com/alphagov/whitehall/blob/c67d53d80f9856549c2da1941a10dbb9170be494/lib/address_formatter/formatter.rb#L17
(key == "world_location" && value.strip == "United Kingdom" || value == "")
key == "world_location" && value.strip == "United Kingdom" || value == ""
end
end

Expand Down

0 comments on commit 8be5ab8

Please sign in to comment.