From ff47c9af243593dbcba2ae9fea0779b2fac06acc Mon Sep 17 00:00:00 2001 From: Khalil Gharbaoui Date: Thu, 30 Dec 2021 06:31:03 +0100 Subject: [PATCH] allow more complex configuration structure and fix readme --- README.md | 2 +- lib/pronto/spell.rb | 4 ++-- lib/pronto/spell/version.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 71af164..edb7a83 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ You'll need to install Aspell: ## Configuration -In order to change configuration, you need to create `.pronto_spell.yaml` file in your project root directory. Awailable options are: +In order to change configuration, you need to create `.pronto_spell.yml` file in your project root directory. Awailable options are: ```YAML suggestion_mode: 'fast' # default diff --git a/lib/pronto/spell.rb b/lib/pronto/spell.rb index 79829cd..5fee086 100644 --- a/lib/pronto/spell.rb +++ b/lib/pronto/spell.rb @@ -9,13 +9,13 @@ class Spell < Runner def ignored_words @ignored_words ||= begin - Set.new(spelling_config['ignored_words'].to_a.map(&:downcase)) + Set.new(spelling_config['ignored_words'].to_a.flatten.map(&:downcase)) end end def keywords @keywords ||= begin - Set.new(spelling_config['only_lines_matching'].to_a.map(&:downcase)) + Set.new(spelling_config['only_lines_matching'].to_a.flatten.map(&:downcase)) end end diff --git a/lib/pronto/spell/version.rb b/lib/pronto/spell/version.rb index 8b9453b..0c315c7 100644 --- a/lib/pronto/spell/version.rb +++ b/lib/pronto/spell/version.rb @@ -2,6 +2,6 @@ module Pronto module SpellVersion - VERSION = '0.11.0' + VERSION = '0.11.1' end end