clausewitz-spelling 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f8c556909a39c8688c055fa38b876b59d453c0c
4
- data.tar.gz: 1a580f4bc9a6daa78d5a17ad929f363b20b159d8
3
+ metadata.gz: 4014a78444b4229f57cc23e9bc8d02fbdb31acae
4
+ data.tar.gz: b7fe59713b71f23c3ffed9d297c1af91a8d667b3
5
5
  SHA512:
6
- metadata.gz: 3bffe4c8fc273e9f1e429885d2e8d3ca3d7169800999593adea3e09fd9aff507dedf14fa11a945251dce89f0b31a1c774574ab7971d6764f99f99365350fbd02
7
- data.tar.gz: 34c8ae8e4830ea1fc4a901e017324caf2b6ebc5f56d71392910b11b36fe1947e456c6fd244f40242916db8ac9f69dcc8d54d5ef6dc36c1ea2b835d3bfa3a8cf9
6
+ metadata.gz: 6f9f4a9c0cf05519b35122469c938a1a2bc99a059222c19007d86afc59a7bbdf9bcc9bcea510a9295df0c73886a45859e68cea4b19fcdb52cfcfd58b2c7dc843
7
+ data.tar.gz: e247e1f39f9867fd518525860e67975e172474f0a23a754fa4412e66c35c42c504452650dc8dbb2bf2ea331e1e89d45e3077e9030a5282e8ffb9a1426b2c42ab
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clausewitz-spelling (0.1.8)
4
+ clausewitz-spelling (0.1.9)
5
5
  colorize
6
6
  damerau-levenshtein
7
7
  ffi-aspell
@@ -83,7 +83,7 @@ module Clausewitz; module Spelling
83
83
  def check_entry(key, text)
84
84
  misspellings = []
85
85
  text = preprocess_entry(text)
86
- text.split(' ').each_with_index do |word, index|
86
+ text.split(/(\s|—)/).each_with_index do |word, index|
87
87
  unless check_word(word) || misspellings.any? { |ms| ms.misspelled_word == word }
88
88
  misspellings << CheckResult.new(word, suggest_words(word))
89
89
  end
@@ -1,5 +1,5 @@
1
1
  module Clausewitz
2
2
  module Spelling
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clausewitz-spelling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Chappell