clausewitz-spelling 0.2.25 → 0.2.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clausewitz/localisation.rb +2 -2
- data/lib/clausewitz/spelling/checker.rb +4 -4
- data/lib/clausewitz/spelling/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b51dfbd6fcaa781574f64e62a9390c0d47a12bf28830c060d190033a67a37f9
|
4
|
+
data.tar.gz: 0eb737a3f10d07e7cce4d56fcad43b8f6fcd756fd89c7a29ca9286e2730d5c46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 997b76c766a1e994c9fb6fef67dcc7fbeb84cbe2863aa224c3777a14f5d765b1a3bb5bd3f68189f7e3cb35102f85feda50c32df703a6ce12b2b9d478a66ccf57
|
7
|
+
data.tar.gz: 05c9ab60bca2f9e4e3025ff0cc4ba9432aeb5234aebebed375f67fc8630a4fa5db5ad75cf758e409a3bbd46700fea51ea079f26ba00e857c3445cb368c93fa06
|
@@ -94,11 +94,11 @@ module Clausewitz
|
|
94
94
|
end
|
95
95
|
contents[current_lang] ||= {}
|
96
96
|
if line =~ /^\s*#\s*spellcheck_ignore:\s*\w+/
|
97
|
-
current_ignores = contents[current_lang]["spellcheck_ignore"] ||
|
97
|
+
current_ignores = contents[current_lang]["spellcheck_ignore"] || ""
|
98
98
|
ignore_section = line.split(/:\d*\s*/)[1]
|
99
99
|
ignore_section = ignore_section.strip.delete_prefix('"').delete_suffix('"')
|
100
100
|
new_ignores = ignore_section.split(',').map { |key| key.strip.delete_prefix('"').delete_suffix('"') }
|
101
|
-
current_ignores = (current_ignores + new_ignores).uniq
|
101
|
+
current_ignores = (current_ignores.split(',') + new_ignores).uniq
|
102
102
|
contents[current_lang]["spellcheck_ignore"] = current_ignores.join(",")
|
103
103
|
end
|
104
104
|
next if line.empty? || line =~ /^#/
|
@@ -63,10 +63,10 @@ module Clausewitz; module Spelling
|
|
63
63
|
|
64
64
|
begin
|
65
65
|
contents = Clausewitz::Localisation.parse_file(filepath)
|
66
|
-
rescue Clausewitz::Localisation::UnparseableFileError => e
|
67
|
-
|
68
|
-
rescue => e
|
69
|
-
|
66
|
+
#rescue Clausewitz::Localisation::UnparseableFileError => e
|
67
|
+
# return UnparseableFileResult.new(filepath, e.errors)
|
68
|
+
#rescue => e
|
69
|
+
# return UnparseableFileResult.new(filepath, e)
|
70
70
|
end
|
71
71
|
|
72
72
|
changed_keys = Set.new
|