trex 1.0.4 → 1.0.5
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.
- data/lib/trex.rb +12 -5
- metadata +11 -7
data/lib/trex.rb
CHANGED
@@ -247,12 +247,19 @@ class TReX
|
|
247
247
|
|
248
248
|
# ------------------------------------------------------------------------
|
249
249
|
def spell_check
|
250
|
-
|
250
|
+
require 'tempfile'
|
251
|
+
self.check_source
|
252
|
+
|
253
|
+
detexed = Tempfile.new(@options.source)
|
251
254
|
# strip all the latex commands using detex
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
`
|
255
|
+
`detex #{@options.source} > #{detexed.path}`
|
256
|
+
|
257
|
+
# run the spellchecker
|
258
|
+
output = `atdtool #{detexed.path}`
|
259
|
+
output = output.gsub(detexed.path, File.basename(@options.source))
|
260
|
+
|
261
|
+
detexed.unlink
|
262
|
+
|
256
263
|
puts output
|
257
264
|
end
|
258
265
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-05-29 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: term-ansicolor
|
18
|
-
requirement:
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,7 +23,12 @@ dependencies:
|
|
23
23
|
version: 1.0.7
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements:
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ! '>='
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 1.0.7
|
27
32
|
description: trex is script simplifying the compilation of latex files by creating
|
28
33
|
proper human-readable error output with repeating patterns. Unlike the original
|
29
34
|
latex output which is oververbosified.
|
@@ -34,8 +39,7 @@ extensions: []
|
|
34
39
|
extra_rdoc_files: []
|
35
40
|
files:
|
36
41
|
- lib/trex.rb
|
37
|
-
-
|
38
|
-
YmluL3RyZXg=
|
42
|
+
- bin/trex
|
39
43
|
homepage: https://github.com/dh83/trex
|
40
44
|
licenses: []
|
41
45
|
post_install_message:
|
@@ -56,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
60
|
version: '0'
|
57
61
|
requirements: []
|
58
62
|
rubyforge_project:
|
59
|
-
rubygems_version: 1.8.
|
63
|
+
rubygems_version: 1.8.23
|
60
64
|
signing_key:
|
61
65
|
specification_version: 3
|
62
66
|
summary: Automate compilation of LaTeX documents, making the output human-readable.
|