clausewitz-spelling 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fe5607f890e917c52c705331ae170913c81e9e1
4
- data.tar.gz: 525fc451e839d70cc63a3434b0a63491e178fa36
3
+ metadata.gz: bdb7cb630ffb69c6c904bd3a8ac5b90676c7cb0b
4
+ data.tar.gz: bcc18e315989ccdfd77f27afcdd7cce7cd27e3ba
5
5
  SHA512:
6
- metadata.gz: 03c51ad5fa406ad1e501c12d7446e39dd0121ead8d6d9513c9f44b21f102cbe36065c90be91389f9bbf4573a28316a16a654b9423247376fc39f8d418b11bc4c
7
- data.tar.gz: 1f11af2e76dcf7a3f691884a6607e2f196f95fdc9635c62e660fe3e5c88d0cf97f9df09ffefb8043f859dc2649ed9afd2a5150328de8a401b48927bed88d38e3
6
+ metadata.gz: 5b1963d4add3a2337398fc58719e5c1b1a8e6f4cf2ab31eefd1b6a47051a38d5c6b3ca4c420782b893663fc40383dbd0434d1ff0d4ea335894fac1a674c45091
7
+ data.tar.gz: 2f192276da8f74c6b8a80cdf1382cad78afdb7dc6a5fc64f6c6ee400d5ca8c3e34a1342420c1bac1b3fe9778a65acd1369b8c71167bfe5795891f3ab23851974
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clausewitz-spelling (0.1.3)
4
+ clausewitz-spelling (0.1.4)
5
5
  colorize
6
6
  damerau-levenshtein
7
7
  ffi-aspell
@@ -98,11 +98,14 @@ module Clausewitz; module Spelling
98
98
  end
99
99
 
100
100
  def load_file(file_path)
101
- f = File.read(file_path)
102
- f = f.lines.map do |line|
101
+ contents = nil
102
+ File.open(file_path, 'r:UTF-8') do |f|
103
+ contents = f.read
104
+ end
105
+ contents = contents.lines.map do |line|
103
106
  smudge_key(line)
104
107
  end.join("\n")
105
- YAML.load(f)
108
+ YAML.load(contents)
106
109
  end
107
110
 
108
111
  def not_word?(word)
@@ -1,5 +1,5 @@
1
1
  module Clausewitz
2
2
  module Spelling
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Chappell