texsc 0.4.0 → 0.4.1
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/.rubocop.yml +1 -1
- data/bin/texsc +8 -5
- data/texsc.gemspec +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: d8063e6182bac05328abe485e362722586fc8c8abc35a80c2446b389b3759924
|
|
4
|
+
data.tar.gz: 7c38981acf003c3c3c571a3d29f5383c03b801530cf882c47e4623192046ee4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '044273992290b54e58c86ddcbd8f378b011adc2ecefc86122bf95bd05486840b6dbc041694ac50cd3445cdb7eb161dcda7b4ea8619a070287540d53132ddaae1'
|
|
7
|
+
data.tar.gz: 2489a77e0cbcf9a2572b5e4a5c1855b7232c71a96f3bf722914d1b0a69c92be3ce5fe85e0363ddff86058ce45826a7bf806f5d1c89bef0a9b7c05e70ef2a59a5
|
data/.rubocop.yml
CHANGED
data/bin/texsc
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
# SOFTWARE.
|
|
23
23
|
|
|
24
|
-
VERSION = '0.4.
|
|
24
|
+
VERSION = '0.4.1'
|
|
25
25
|
|
|
26
26
|
STDOUT.sync = true
|
|
27
27
|
|
|
@@ -74,9 +74,12 @@ Options are:"
|
|
|
74
74
|
end
|
|
75
75
|
log.info("Checking #{f} (#{tex.length} chars)...")
|
|
76
76
|
log.debug(
|
|
77
|
-
tex.split("\n")
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
tex.split("\n").each_with_index.map do |t, i|
|
|
78
|
+
if t.start_with?('---')
|
|
79
|
+
log.info("Line #{i + 1} starts with '---', this may lead to unexpected errors")
|
|
80
|
+
end
|
|
81
|
+
format('%<pos>4d: %<line>s', pos: i + 1, line: t)
|
|
82
|
+
end.join("\n")
|
|
80
83
|
)
|
|
81
84
|
cmd = [
|
|
82
85
|
'aspell',
|
|
@@ -102,7 +105,7 @@ Options are:"
|
|
|
102
105
|
log.info('aspell produced no output, hm...')
|
|
103
106
|
else
|
|
104
107
|
lines = out.split("\n")
|
|
105
|
-
log.
|
|
108
|
+
log.debug("aspell produced #{lines.length} lines of output")
|
|
106
109
|
lines.each_with_index do |t, i|
|
|
107
110
|
if t.start_with?('&')
|
|
108
111
|
log.info("[#{i}] #{t}")
|
data/texsc.gemspec
CHANGED
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
|
32
32
|
s.rubygems_version = '2.2'
|
|
33
33
|
s.required_ruby_version = '>= 2.3'
|
|
34
34
|
s.name = 'texsc'
|
|
35
|
-
s.version = '0.4.
|
|
35
|
+
s.version = '0.4.1'
|
|
36
36
|
s.license = 'MIT'
|
|
37
37
|
s.summary = 'Spell Checker for LaTeX'
|
|
38
38
|
s.description = 'Simple command-line spell checker for LaTeX documents'
|