texqc 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06a73d1f91892dc04f7e1b4864346b7e5e70f87d8dc6aca2a2f8de5b72553d0c
4
- data.tar.gz: f85a2583d3420b2fc796bf2d58b24e13fa1423d431ab4123b7a300ba4ecad77a
3
+ metadata.gz: 2099f8e3d8d378158ce5b1496910bacebc2c94dc34bab46497ee2f8705a1f8de
4
+ data.tar.gz: 5c9eabdcb8918403c336f983d8411a4a63ad0d14644b69169487b13b4bb294c4
5
5
  SHA512:
6
- metadata.gz: 24c93433d17e8c14990ac23610301bc29657491ec60e87df33e1c302e4c53185f4f84e8b1602a8a65b8a46939bcc0c58fc51eeb697c7dc2766c8e0f0d4674bed
7
- data.tar.gz: 7f84739d8dc5ec803a555c8d586d0688f752cc36ec9fe14614565db2c3d265d250f03821214343d3396342f08066b6bdc566cfc29e487222d97ff8a3d8d5daef
6
+ metadata.gz: 272973773f24946901bb376ff47a747cbd01adc3be02fdb077275fa18cdc96f2fe0c32a8a9ff686d835a355bdef708190ec6e9d9985cf9ffc8282ed0c0b20fd4
7
+ data.tar.gz: dbbbd7523655d391f429389fbb049a6bd842c1f2a47cab12c2825ea9929fe2454b03004dbc5b18fc4e00e73aaeba129194ad15102f4731993c2fb00e9627e1d6
data/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  [![Build Status](https://travis-ci.org/yegor256/texqc.svg)](https://travis-ci.org/yegor256/texqc)
9
9
  [![PDD status](http://www.0pdd.com/svg?name=yegor256/texqc)](http://www.0pdd.com/p?name=yegor256/texqc)
10
10
  [![Gem Version](https://badge.fury.io/rb/texqc.svg)](http://badge.fury.io/rb/texqc)
11
- [![Maintainability](https://api.codeclimate.com/v1/badges/7593273bfae71f87ea8c/maintainability)](https://codeclimate.com/github/yegor256/texqc/maintainability)
11
+ [![Maintainability](https://api.codeclimate.com/v1/badges/393fd78703d72cfbe84f/maintainability)](https://codeclimate.com/github/yegor256/texqc/maintainability)
12
12
 
13
13
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/takes/texqc/master/LICENSE.txt)
14
14
  [![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/texqc.svg)](https://codecov.io/github/yegor256/texqc?branch=master)
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.1.0'
24
+ VERSION = '0.2.0'
25
25
 
26
26
  STDOUT.sync = true
27
27
 
@@ -57,11 +57,7 @@ Options are:"
57
57
  errors = 0
58
58
  f = "#{opts.arguments[0]}.log"
59
59
  File.readlines(f).each do |t|
60
- if t.include?('Underfull')
61
- errors += 1
62
- puts t
63
- end
64
- if t.include?('Overfull')
60
+ if t.start_with?('Underfull ', 'Overfull ', 'LaTeX Warning: ')
65
61
  errors += 1
66
62
  puts t
67
63
  end
@@ -31,3 +31,16 @@ Feature: Command Line Processing
31
31
  Then I run bin/texqc with "article"
32
32
  Then Exit code is not zero
33
33
  And Stdout contains "1 LaTeX processing errors"
34
+
35
+ Scenario: Bad LaTeX log output checked with LaTeX warning
36
+ Given I have a "article.tex" file with content:
37
+ """
38
+ \documentclass{article}
39
+ \begin{document}
40
+ test\label{xxx}test\label{xxx}
41
+ \end{document}
42
+ """
43
+ When I run bash with "pdflatex article.tex"
44
+ Then I run bin/texqc with "article"
45
+ Then Exit code is not zero
46
+ And Stdout contains "1 LaTeX processing errors"
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="314px" height="314px" viewBox="0 0 314 314" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>Group 2</title>
4
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="Group">
6
+ <circle id="Oval" fill="#053C5E" cx="157" cy="157" r="157"></circle>
7
+ <polygon id="Rectangle" fill="#2C2B2B" points="0 234 212 234 212 302 0 302"></polygon>
8
+ <text id="texqc" font-family="CourierNewPS-BoldMT, Courier New" font-size="50" font-weight="bold" fill="#FFFFFF">
9
+ <tspan x="28" y="282">texqc</tspan>
10
+ </text>
11
+ <path d="M135.676765,111.215287 C135.211714,113.540467 132.770932,120.688823 130.252813,127.100603 C127.734621,133.512383 125.2898,140.431445 124.819828,142.476214 C123.6868,147.405663 121.517836,147.185477 119.69487,141.95608 C116.899865,133.938362 105.171362,111.043501 103.859129,111.043501 C100.420089,111.043501 101.508757,114.986149 109.1771,130.30227 C113.739327,139.414532 118.032086,147.448041 118.716515,148.15443 C120.694817,150.196115 120.172626,154.319657 117.358599,158.877992 C113.567467,165.019055 107.570942,183.721189 108.054206,187.896804 C108.804956,194.383204 112.436054,192.210274 113.355359,184.724515 C114.48376,175.535577 120.945556,159.641154 124.897459,156.333653 C127.109021,154.482778 128.268636,151.905536 128.573284,148.163978 C128.818001,145.157747 131.906711,135.560972 135.437115,126.837819 C138.96752,118.114666 141.511492,110.079835 141.090434,108.982574 C139.755727,105.504315 136.554941,106.824333 135.676765,111.215287 M174.714659,126.841564 C169.37392,129.699438 169.197653,130.049915 167.452978,141.283475 C165.577352,153.360398 165.225112,168.513913 166.548289,180.203784 L167.566817,189.202501 L161.346213,191.9541 C154.601949,194.937416 150.91195,200.302465 153.156708,203.861146 C155.104824,206.949562 157.09025,206.70198 157.571826,203.310532 C158.083734,199.706169 166.097413,193.204052 170.29418,192.987978 C172.116999,192.894116 173.522874,191.717021 173.97823,189.903529 C174.383277,188.290613 177.740353,184.944554 181.438431,182.467858 C188.546172,177.707551 194.317883,170.450278 194.317883,166.273341 C194.317883,162.684548 189.493165,158.361603 185.487795,158.361603 C180.701636,158.361603 180.027195,155.239403 183.731222,150.229385 C188.308065,144.038966 188.284856,130.867646 183.690534,127.147387 C179.896537,124.075276 179.885006,124.074836 174.714659,126.841564 M182.67318,134.240439 C184.752542,140.153164 174.808961,161.185104 171.588639,157.68562 C169.868715,155.81653 172.863122,135.012708 175.266374,132.134564 C177.872553,129.013319 181.163896,129.949075 182.67318,134.240439 M184.854262,162.269586 C190.589839,163.855621 189.673839,167.881335 181.645765,176.371155 C177.281618,180.986262 173.904933,183.573859 173.371946,182.711474 C172.876636,181.91012 172.127869,176.711937 171.707987,171.159972 L170.944531,161.065463 L176.209475,161.200234 C179.105172,161.274339 182.995308,161.755548 184.854262,162.269586 M132.642184,172.492256 C131.593837,175.224098 133.152917,177.288844 136.264027,177.288844 C139.014965,177.288844 139.431396,176.221769 138.067531,172.667568 C137.039234,169.987871 133.645289,169.878218 132.642184,172.492256 M203.781503,185.840798 C203.781503,187.657595 209.264724,193.512152 210.966361,193.512152 C212.534035,193.512152 211.991059,187.391138 210.270768,185.670847 C208.092403,183.492409 203.781503,183.605293 203.781503,185.840798" id="Fill-6" fill="#427B8A" fill-rule="nonzero"></path>
12
+ </g>
13
+ </g>
14
+ </svg>
@@ -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.1.0'
35
+ s.version = '0.2.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.1.0
4
+ version: 0.2.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-08-02 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace
@@ -149,6 +149,7 @@ files:
149
149
  - features/gem_package.feature
150
150
  - features/step_definitions/steps.rb
151
151
  - features/support/env.rb
152
+ - logo.svg
152
153
  - texqc.gemspec
153
154
  homepage: http://github.com/yegor256/texqc
154
155
  licenses: