texqc 0.7.2 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -0
  3. data/bin/texqc +12 -8
  4. data/texqc.gemspec +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a45c96dead075d82d5c86397f0597369942d19c3e65bf533088fde4c5626d8f
4
- data.tar.gz: d7a0cf0d6ce2fad0171e714d393369c7bf92cfb2cc6e22eaf084cc417429bf2e
3
+ metadata.gz: 9c12e0ba9d77a13db9351a12a90b3cbf7e810395f4bfdc76554379dc11482cac
4
+ data.tar.gz: 9a3cbce31372740a8fd4536292d344ba215c88ee94fd41ff7287af71b98c06ce
5
5
  SHA512:
6
- metadata.gz: b6dd41d12942e6333f314da22372b9d2c1551d3fdf3a18c914c0a3306add080afcfce724720aba3b587691ef5534f3f86e3987516e61fe8b3eafd8b4d3bfe549
7
- data.tar.gz: '08785e406ce6c27301acfa29bf52dc27ed9e29b6ca3b42ca54397233283cde5d480d70a449a4b47ba6ad14e4670404e1b2eb851011111c5526fd6631e260afd9'
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.7.2'
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
- begin
47
- log = Loog::REGULAR
46
+ def config(path)
47
+ f = File.expand_path(path)
48
48
  args = []
49
- if File.exist?('.texqc')
50
- cfg = File.new('.texqc')
51
- args += File.readlines(cfg).map(&:strip)
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 += ARGV
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.7.2'
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.7.2
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-08-16 00:00:00.000000000 Z
11
+ date: 2021-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace