From c88e5edafe55d18bb36959fa048b8f536a6ed297 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Tue, 23 Apr 2024 11:32:27 +0200 Subject: [PATCH] Fix typos ``` codespell **/*.rb -w ``` --- lib/heathen/converter.rb | 2 +- lib/heathen/processor_methods/wkhtmltopdf.rb | 2 +- spec/lib/autoheathen/email_processor_spec.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/heathen/converter.rb b/lib/heathen/converter.rb index 11f064f..b5981c4 100644 --- a/lib/heathen/converter.rb +++ b/lib/heathen/converter.rb @@ -11,7 +11,7 @@ def initialize( logger: Logger.new(nil) ) # Converts the given document according to the action requested. # @param action [String] the conversion action to perform # @param content [String] the document body to be converted - # @param language [String] the document langauge (defaults to 'en') + # @param language [String] the document language (defaults to 'en') # @return [String] the converted document body def convert action, content, language='en' job = Job.new action, content, language diff --git a/lib/heathen/processor_methods/wkhtmltopdf.rb b/lib/heathen/processor_methods/wkhtmltopdf.rb index 4fa188c..27f3571 100644 --- a/lib/heathen/processor_methods/wkhtmltopdf.rb +++ b/lib/heathen/processor_methods/wkhtmltopdf.rb @@ -28,7 +28,7 @@ def _wkhtmltopdf_options(content) value = if meta.attributes.key?('content') unless (v = meta.attributes['content'].value.strip).size.zero? # Some wkhtmltopdf command line options such as `--custom-header KEY VALUE` allows for 2 values as params - # instead of the regular 1 param. In that case the meta content is splitted by `;` delimiter + # instead of the regular 1 param. In that case the meta content is split by `;` delimiter # https://wkhtmltopdf.org/usage/wkhtmltopdf.txt # # Ex: diff --git a/spec/lib/autoheathen/email_processor_spec.rb b/spec/lib/autoheathen/email_processor_spec.rb index 42d4ffb..195ce0e 100644 --- a/spec/lib/autoheathen/email_processor_spec.rb +++ b/spec/lib/autoheathen/email_processor_spec.rb @@ -34,7 +34,7 @@ expect(mail.from).to eq email.from expect(mail.to).to eq [to_address] expect(mail.subject).to eq "Fwd: Convert: please" - expect(mail.attachments.size).to eq 2 # includes unconvertable attachment + expect(mail.attachments.size).to eq 2 # includes unconvertible attachment expect(mail.attachments.map(&:filename)).to match_array %w[ test1.doc quickfox.pdf ] expect(mail.delivery_method.settings[:port]).to eq 25 expect(mail.delivery_method.settings[:address]).to eq 'localhost' @@ -54,7 +54,7 @@ expect(mail.from).to eq ['noreply@ifad.org'] expect(mail.to).to eq email.from expect(mail.subject).to eq "Re: Fwd: Convert: please" - expect(mail.attachments.size).to eq 1 # does not include unconvertable attachment + expect(mail.attachments.size).to eq 1 # does not include unconvertible attachment expect(mail.text_part.decoded.size).to be > 0 expect(mail.html_part.decoded.size).to be > 0 expect(mail.delivery_method.settings[:port]).to eq 25