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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/clausewitz/spelling/checker.rb +6 -3
- data/lib/clausewitz/spelling/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bdb7cb630ffb69c6c904bd3a8ac5b90676c7cb0b
|
|
4
|
+
data.tar.gz: bcc18e315989ccdfd77f27afcdd7cce7cd27e3ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b1963d4add3a2337398fc58719e5c1b1a8e6f4cf2ab31eefd1b6a47051a38d5c6b3ca4c420782b893663fc40383dbd0434d1ff0d4ea335894fac1a674c45091
|
|
7
|
+
data.tar.gz: 2f192276da8f74c6b8a80cdf1382cad78afdb7dc6a5fc64f6c6ee400d5ca8c3e34a1342420c1bac1b3fe9778a65acd1369b8c71167bfe5795891f3ab23851974
|
data/Gemfile.lock
CHANGED
|
@@ -98,11 +98,14 @@ module Clausewitz; module Spelling
|
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
def load_file(file_path)
|
|
101
|
-
|
|
102
|
-
|
|
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(
|
|
108
|
+
YAML.load(contents)
|
|
106
109
|
end
|
|
107
110
|
|
|
108
111
|
def not_word?(word)
|