Skip to content

Commit

Permalink
allow more complex configuration structure and fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilgharbaoui committed Dec 30, 2021
1 parent 89d9fc8 commit ff47c9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/pronto/spell.rb
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/pronto/spell/version.rb
Expand Up @@ -2,6 +2,6 @@

module Pronto
module SpellVersion
VERSION = '0.11.0'
VERSION = '0.11.1'
end
end

0 comments on commit ff47c9a

Please sign in to comment.