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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/bin/texsc +12 -2
  4. data/texsc.gemspec +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 287fe4226d8590443fd5fdc6e6f1484f958ebc59fa995b144dd3810e96eb7568
4
- data.tar.gz: 5a4cc39bd64baece9b719e30e181c7362ace4c6768562d117a8501aed0efc46f
3
+ metadata.gz: '08fb045de44fe6a3e9d660fd9231b172a26b7905d98241e39d3086d0d2c4f7d9'
4
+ data.tar.gz: e2c60a9cb1f3daecd4cf69478c81d427f75cc0629767d2193a6691e7ab83c216
5
5
  SHA512:
6
- metadata.gz: 6ca3c9aa54f93f8cc592f89210889fb85c7d2078c461465d0fd0a20189a95852ab50524fbf267c443d7eca8ba4264c9d8fec1fcd19e9897928ee0b524c095430
7
- data.tar.gz: 23481f20b3e4be353df48a77ec4fab49f689465b9fc2f92b8ff3c2ca557136a6969bb65ae7ffc1c7129128aeb5464d93efb341b3bd85bcd41b8413c67a714d05
6
+ metadata.gz: bcee7468fdd0ea4671873b1269e8095a9af24e325daeee1493f4d71c0495816686094b6ce32c1eae9bbd114da7c220165d28e86da907957d13439fca2c2dcd4a
7
+ data.tar.gz: 9d89d67e6d611e7f83e42df8b40058990052396cea5453bfd37d3e0e027de36fb82c942bb4b2ee2a173c5c89ed2fa67624252723728e3212d6186a59d01b6087
data/README.md CHANGED
@@ -14,6 +14,8 @@
14
14
  [![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/texsc.svg)](https://codecov.io/github/yegor256/texsc?branch=master)
15
15
  [![Hits-of-Code](https://hitsofcode.com/github/yegor256/texsc)](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.4.3'
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(ARGV, strict: true, help: true) do |o|
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'
@@ -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.3'
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.3
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-09-27 00:00:00.000000000 Z
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace