Skip to content

Commit

Permalink
Upgrade html-pipeline to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
coord-e committed Feb 8, 2024
1 parent 6b20799 commit e899ee3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## lastest(master branch)
- Dependencies
- Upgrade html-pipeline to v3

## v0.8.0
- Upgrade Rails to v7.0
- Support Ruby 3.2
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/kuroko2/job_definitions_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def first_line(text)
end

def markdown_format(text)
pipeline = HTML::Pipeline.new([HTML::Pipeline::MarkdownFilter])
pipeline = HTMLPipeline.new(convert_filter: HTMLPipeline::ConvertFilter::MarkdownFilter.new)
raw(pipeline.call(text)[:output].to_s)
end

Expand Down
2 changes: 1 addition & 1 deletion kuroko2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Gem::Specification.new do |s|
s.add_dependency 'omniauth-google-oauth2', '>= 1.0.0'
s.add_dependency 'omniauth-rails_csrf_protection'

s.add_dependency 'html-pipeline'
s.add_dependency 'html-pipeline', '>= 3'
s.add_dependency 'commonmarker', '>= 0.17.8'
s.add_dependency 'font-awesome-rails'
s.add_dependency 'rinku'
Expand Down
3 changes: 2 additions & 1 deletion lib/kuroko2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
require 'aws-sdk-cloudwatchlogs'
require 'retryable'
require 'faraday'
require 'html/pipeline'
require 'html_pipeline'
require 'html_pipeline/convert_filter/markdown_filter'
require 'hipchat'
require 'omniauth-google-oauth2'
require 'omniauth/rails_csrf_protection'
Expand Down

0 comments on commit e899ee3

Please sign in to comment.