Skip to content

Commit

Permalink
Merge pull request #12 from DFE-Digital/update-deps
Browse files Browse the repository at this point in the history
Maintenance updates
  • Loading branch information
paulrobertlloyd authored Jul 20, 2021
2 parents 629b6e2 + 81523b1 commit 6bf9bce
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 43 deletions.
80 changes: 40 additions & 40 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,71 +8,71 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.3.4)
activesupport (6.1.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
ast (2.4.1)
concurrent-ruby (1.1.7)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
ast (2.4.2)
concurrent-ruby (1.1.9)
diff-lcs (1.4.4)
i18n (1.8.5)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
minitest (5.14.2)
parallel (1.19.2)
parser (2.7.2.0)
minitest (5.14.4)
parallel (1.20.1)
parser (3.0.2.0)
ast (~> 2.4.1)
rack (2.2.3)
rainbow (3.0.0)
rake (13.0.1)
rake (13.0.6)
redcarpet (3.5.1)
regexp_parser (1.8.2)
rexml (3.2.4)
regexp_parser (2.1.1)
rexml (3.2.5)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.0)
rubocop (0.87.1)
rspec-support (3.10.2)
rubocop (1.15.0)
parallel (~> 1.10)
parser (>= 2.7.1.1)
parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.7)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 0.1.0, < 1.0)
rubocop-ast (>= 1.5.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (0.8.0)
parser (>= 2.7.1.5)
rubocop-govuk (3.17.2)
rubocop (= 0.87.1)
rubocop-ast (= 0.8.0)
rubocop-rails (= 2.8.1)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.6.0)
parser (>= 3.0.1.1)
rubocop-govuk (4.0.0)
rubocop (~> 1.15.0)
rubocop-ast (~> 1.6.0)
rubocop-rails (~> 2.10.0)
rubocop-rake (= 0.5.1)
rubocop-rspec (= 1.42.0)
rubocop-rails (2.8.1)
rubocop-rspec (~> 2.3.0)
rubocop-rails (2.10.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 0.87.0)
rubocop (>= 1.7.0, < 2.0)
rubocop-rake (0.5.1)
rubocop
rubocop-rspec (1.42.0)
rubocop (>= 0.87.0)
ruby-progressbar (1.10.1)
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
unicode-display_width (1.7.0)
zeitwerk (2.4.0)
rubocop-rspec (2.3.0)
rubocop (~> 1.0)
rubocop-ast (>= 1.1.0)
ruby-progressbar (1.11.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
unicode-display_width (2.0.0)
zeitwerk (2.4.2)

PLATFORMS
ruby
Expand Down
2 changes: 1 addition & 1 deletion govuk_markdown.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
spec.summary = "Convert Markdown into GOV.UK styled HTML"
spec.description = "Convert Markdown into GOV.UK styled HTML"
spec.homepage = "https://github.com/DFE-Digital/govuk_markdown"
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
Expand Down
5 changes: 3 additions & 2 deletions lib/govuk_markdown/renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ def paragraph(text)
end

def list(contents, list_type)
if list_type == :unordered
case list_type
when :unordered
<<~HTML
<ul class="govuk-list govuk-list--bullet">
#{contents}
</ul>
HTML
elsif list_type == :ordered
when :ordered
<<~HTML
<ol class="govuk-list govuk-list--number">
#{contents}
Expand Down

0 comments on commit 6bf9bce

Please sign in to comment.