clausewitz-spelling 0.2.22 → 0.2.27
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/.gitignore +1 -0
- data/lib/clausewitz/localisation.rb +8 -6
- data/lib/clausewitz/spelling/version.rb +1 -1
- metadata +2 -3
- data/Gemfile.lock +0 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a28f1faa2e01d95274ce82d731c3a162ab0e0caddc8962ef6d951e74cffbdf3e
|
4
|
+
data.tar.gz: 13be706c9dbc35fc590190cd00ff7e010ac525ab52586e96ba51226ee2ddb01f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2c114a03c4723a0fa8bed3f0cefc2614405066bb5bd45b925d53115431454b57727b68452bb4c7a2777e4b64fe4155a5956393afa114bada1aeeca9e40792eb
|
7
|
+
data.tar.gz: 416e4fda16f0165fbe8ae46c2717214b773ed514faa864970db8b8a0aac332e5685ede46d3445df47024e1d5152caef949e3cd3da55a0511d5ab51b212d835b5
|
data/.gitignore
CHANGED
@@ -92,17 +92,19 @@ module Clausewitz
|
|
92
92
|
errors = ["Cannot parse loc key without a langauge being set!"]
|
93
93
|
fail(UnparseableFileError, errors)
|
94
94
|
end
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
95
|
+
contents[current_lang] ||= {}
|
96
|
+
if line =~ /^\s*#\s*spellcheck_ignore:\s*\w+/
|
97
|
+
current_ignores = contents[current_lang]["spellcheck_ignore"] || ""
|
98
|
+
ignore_section = line.split(/:\d*\s*/)[1]
|
99
|
+
ignore_section = ignore_section.strip.delete_prefix('"').delete_suffix('"')
|
100
|
+
new_ignores = ignore_section.split(',').map { |key| key.strip.delete_prefix('"').delete_suffix('"') }
|
101
|
+
current_ignores = (current_ignores.split(',') + new_ignores).uniq
|
102
|
+
contents[current_lang]["spellcheck_ignore"] = current_ignores.join(",")
|
100
103
|
end
|
101
104
|
next if line.empty? || line =~ /^#/
|
102
105
|
key, value = line.split(/\s/, 2)
|
103
106
|
key.gsub!(/:(\d+)?$/, '')
|
104
107
|
value.gsub!(/(^"|"$)/, '')
|
105
|
-
contents[current_lang] ||= {}
|
106
108
|
contents[current_lang][key] = value
|
107
109
|
end
|
108
110
|
contents
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clausewitz-spelling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Chappell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -150,7 +150,6 @@ files:
|
|
150
150
|
- ".travis.yml"
|
151
151
|
- CODE_OF_CONDUCT.md
|
152
152
|
- Gemfile
|
153
|
-
- Gemfile.lock
|
154
153
|
- LICENSE.txt
|
155
154
|
- README.md
|
156
155
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
clausewitz-spelling (0.2.22)
|
5
|
-
colorize
|
6
|
-
damerau-levenshtein
|
7
|
-
ffi-hunspell-wtchappell
|
8
|
-
optimist
|
9
|
-
pragmatic_tokenizer
|
10
|
-
|
11
|
-
GEM
|
12
|
-
remote: https://rubygems.org/
|
13
|
-
specs:
|
14
|
-
coderay (1.1.3)
|
15
|
-
colorize (0.8.1)
|
16
|
-
damerau-levenshtein (1.3.3)
|
17
|
-
diff-lcs (1.4.4)
|
18
|
-
ffi (1.15.4)
|
19
|
-
ffi-hunspell-wtchappell (0.4.0)
|
20
|
-
ffi (~> 1.0)
|
21
|
-
method_source (1.0.0)
|
22
|
-
optimist (3.0.1)
|
23
|
-
pragmatic_tokenizer (3.2.0)
|
24
|
-
unicode
|
25
|
-
pry (0.14.1)
|
26
|
-
coderay (~> 1.1)
|
27
|
-
method_source (~> 1.0)
|
28
|
-
rake (10.5.0)
|
29
|
-
rspec (3.10.0)
|
30
|
-
rspec-core (~> 3.10.0)
|
31
|
-
rspec-expectations (~> 3.10.0)
|
32
|
-
rspec-mocks (~> 3.10.0)
|
33
|
-
rspec-core (3.10.1)
|
34
|
-
rspec-support (~> 3.10.0)
|
35
|
-
rspec-expectations (3.10.1)
|
36
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
37
|
-
rspec-support (~> 3.10.0)
|
38
|
-
rspec-mocks (3.10.2)
|
39
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
-
rspec-support (~> 3.10.0)
|
41
|
-
rspec-support (3.10.3)
|
42
|
-
unicode (0.4.4.4)
|
43
|
-
|
44
|
-
PLATFORMS
|
45
|
-
x86_64-linux
|
46
|
-
|
47
|
-
DEPENDENCIES
|
48
|
-
bundler
|
49
|
-
clausewitz-spelling!
|
50
|
-
pry
|
51
|
-
rake (~> 10.0)
|
52
|
-
rspec (~> 3.0)
|
53
|
-
|
54
|
-
BUNDLED WITH
|
55
|
-
2.2.33
|