texsc 0.4.3 → 0.5.0
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/README.md +2 -0
- data/bin/texsc +12 -2
- data/texsc.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08fb045de44fe6a3e9d660fd9231b172a26b7905d98241e39d3086d0d2c4f7d9'
|
4
|
+
data.tar.gz: e2c60a9cb1f3daecd4cf69478c81d427f75cc0629767d2193a6691e7ab83c216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcee7468fdd0ea4671873b1269e8095a9af24e325daeee1493f4d71c0495816686094b6ce32c1eae9bbd114da7c220165d28e86da907957d13439fca2c2dcd4a
|
7
|
+
data.tar.gz: 9d89d67e6d611e7f83e42df8b40058990052396cea5453bfd37d3e0e027de36fb82c942bb4b2ee2a173c5c89ed2fa67624252723728e3212d6186a59d01b6087
|
data/README.md
CHANGED
@@ -14,6 +14,8 @@
|
|
14
14
|
[](https://codecov.io/github/yegor256/texsc?branch=master)
|
15
15
|
[](https://hitsofcode.com/view/github/yegor256/texsc)
|
16
16
|
|
17
|
+
Read this blog post: [_Spell Check Your LaTeX Writings Using GNU Aspell_](https://www.yegor256.com/2020/10/06/latex-spell-checking.html)
|
18
|
+
|
17
19
|
This tool simplies the usage of [GNU aspell](http://aspell.net/)
|
18
20
|
(you must have it installed)
|
19
21
|
for spell-checking of LaTeX files.
|
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.
|
24
|
+
VERSION = '0.5.0'
|
25
25
|
|
26
26
|
STDOUT.sync = true
|
27
27
|
|
@@ -32,8 +32,18 @@ require 'slop'
|
|
32
32
|
|
33
33
|
begin
|
34
34
|
log = Loog::REGULAR
|
35
|
+
args = []
|
36
|
+
if File.exist?('.texsc')
|
37
|
+
cfg = File.new('.texsc')
|
38
|
+
body = File.read(cfg)
|
39
|
+
extra = body.split(/\s+/).map(&:strip)
|
40
|
+
args += extra
|
41
|
+
puts "Found #{body.split(/\n/).length} lines in #{File.absolute_path(cfg)}"
|
42
|
+
end
|
43
|
+
args += ARGV
|
44
|
+
|
35
45
|
begin
|
36
|
-
opts = Slop.parse(
|
46
|
+
opts = Slop.parse(args, strict: true, help: true) do |o|
|
37
47
|
o.banner = "Usage (#{VERSION}): texsc [options] files
|
38
48
|
Options are:"
|
39
49
|
o.string '--pws', 'The location of aspell.en.pws file'
|
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.
|
35
|
+
s.version = '0.5.0'
|
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'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: texsc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|