clausewitz-spelling 0.2.25 → 0.2.26

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
  SHA256:
3
- metadata.gz: 1f7e39cd76819182d30bb0952d5aadf7776e49738fbb387fdef751e84c2aaccb
4
- data.tar.gz: 45cdc976f758a82104b191fb2c7b17cd858ec93202608474bcbf67f9471dd878
3
+ metadata.gz: 1b51dfbd6fcaa781574f64e62a9390c0d47a12bf28830c060d190033a67a37f9
4
+ data.tar.gz: 0eb737a3f10d07e7cce4d56fcad43b8f6fcd756fd89c7a29ca9286e2730d5c46
5
5
  SHA512:
6
- metadata.gz: d7df9d71568f3544006b832b0e5abf856801c3860c34bc5b31eeb13e4507c518cace1912710d71ae61a6d971ac28c1a65f9f7aa0a17bef815f67a3bc2593aa60
7
- data.tar.gz: '09697d91e78ee19ea73333356835003829b81be1c961994efb33d55d586837aa6be0288daa71da5dad74ece66d7c88cc1893699e981a679a5cc48f4712b37f82'
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
- return UnparseableFileResult.new(filepath, e.errors)
68
- rescue => e
69
- return UnparseableFileResult.new(filepath, e)
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
@@ -1,5 +1,5 @@
1
1
  module Clausewitz
2
2
  module Spelling
3
- VERSION = "0.2.25"
3
+ VERSION = "0.2.26"
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.2.25
4
+ version: 0.2.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Chappell