texqc 0.7.2 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/bin/texqc +12 -8
- data/texqc.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: 9c12e0ba9d77a13db9351a12a90b3cbf7e810395f4bfdc76554379dc11482cac
|
4
|
+
data.tar.gz: 9a3cbce31372740a8fd4536292d344ba215c88ee94fd41ff7287af71b98c06ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5962c8ea292889abf464d25369aafc397e2421c30b7df570d9867cecf38bcb2bec886bdd3cb55ee7f20517fb97611c286bff7dfb9a6512638049a89cc012748
|
7
|
+
data.tar.gz: 62259304c62075c3f8fdd359fe43f43984f60d08323e3303ccc19e6557059b3143e49c6f1ba3d13f0e7b76056ac17e7a3346f85f24b0ff702b98d08a797b87e8
|
data/README.md
CHANGED
@@ -32,6 +32,11 @@ $ texqc article
|
|
32
32
|
If any warnings were reported by LaTeX, you will get a short list of them
|
33
33
|
and the exit code will be non-zero (very convenient for your CI/CD scripts).
|
34
34
|
|
35
|
+
To make configuration easier, you can create `.texqc` file next to your
|
36
|
+
`.tex` file and place all your command line configuration options over there,
|
37
|
+
each one on its own line. You can also have a global configuration file
|
38
|
+
at `~/.texqc`, which will be read first.
|
39
|
+
|
35
40
|
## How to contribute
|
36
41
|
|
37
42
|
Read [these guidelines](https://www.yegor256.com/2014/04/15/github-guidelines.html).
|
data/bin/texqc
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.8.0'
|
25
25
|
|
26
26
|
STDOUT.sync = true
|
27
27
|
|
@@ -43,15 +43,19 @@ class Errors
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
|
47
|
-
|
46
|
+
def config(path)
|
47
|
+
f = File.expand_path(path)
|
48
48
|
args = []
|
49
|
-
if File.exist?(
|
50
|
-
|
51
|
-
args
|
52
|
-
puts "Found #{args.length} lines in #{File.absolute_path(cfg)}"
|
49
|
+
if File.exist?(f)
|
50
|
+
args += File.readlines(f).map(&:strip)
|
51
|
+
puts "Found #{args.length} lines in #{File.absolute_path(f)}"
|
53
52
|
end
|
54
|
-
args
|
53
|
+
args
|
54
|
+
end
|
55
|
+
|
56
|
+
begin
|
57
|
+
log = Loog::REGULAR
|
58
|
+
args = config('~/.texqc') + config('.texqc') + ARGV
|
55
59
|
|
56
60
|
begin
|
57
61
|
opts = Slop.parse(args, strict: true, help: true) do |o|
|
data/texqc.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 = 'texqc'
|
35
|
-
s.version = '0.
|
35
|
+
s.version = '0.8.0'
|
36
36
|
s.license = 'MIT'
|
37
37
|
s.summary = 'Quality Control of Your LaTeX Build'
|
38
38
|
s.description = 'Run it after you compile your LaTeX document'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: texqc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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: 2021-
|
11
|
+
date: 2021-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|