Skip to content

Commit

Permalink
Add Vandamme gem for changelog parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Nov 9, 2023
1 parent d5e66de commit 1163dff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ gem "asciidoctor"
gem "github-linguist"
gem 'rexml'
gem 'appsignal'
gem 'vandamme', github: 'ecosyste-ms/vandamme'

group :development, :test do
gem "debug", platforms: %i[ mri mingw x64_mingw ]
Expand Down
9 changes: 9 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
GIT
remote: https://github.com/ecosyste-ms/vandamme.git
revision: 27c8682ca8aeb32369d74fd7357b553848df0b92
specs:
vandamme (0.0.13)
commonmarker
github-markup

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -330,6 +338,7 @@ DEPENDENCIES
twitter-text
typhoeus
tzinfo-data
vandamme!
web-console
webmock
wikicloth
Expand Down
1 change: 1 addition & 0 deletions app/models/archive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def changelog
raw: raw,
html: html,
plain: Nokogiri::HTML(html).try(:text),
parsed: Vandamme::Parser.new(changelog: raw).parse,
extension: File.extname(changelog_file),
language: language
}
Expand Down

0 comments on commit 1163dff

Please sign in to comment.