texsc 0.4.0 → 0.4.1

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/.rubocop.yml +1 -1
  3. data/bin/texsc +8 -5
  4. data/texsc.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66cf2c3cd1fdf24062daf97f76e2a1d2a9bbc7496d4de4b110863fa9a05e34f7
4
- data.tar.gz: 9482805d7979f80530858c721bcccb1cc80f9b01a59edf3c79e320a22979a90a
3
+ metadata.gz: d8063e6182bac05328abe485e362722586fc8c8abc35a80c2446b389b3759924
4
+ data.tar.gz: 7c38981acf003c3c3c571a3d29f5383c03b801530cf882c47e4623192046ee4b
5
5
  SHA512:
6
- metadata.gz: 37f58dc30b1ccadd1edf187b5264d2f95d078c9502ab946711728c88f08bde644dd78a8285b25cec7f793ea5103cf5c8657e5b312fb04000068e1ed429bb19a6
7
- data.tar.gz: 7477be10ec95d87d4a39429fedb65fa132227afa3b14c5238a5e470eaf7e64f9248473cb92d9e3306c5d8f75ad0cb22cb88c2ef0b12075b09dd003d85941e94a
6
+ metadata.gz: '044273992290b54e58c86ddcbd8f378b011adc2ecefc86122bf95bd05486840b6dbc041694ac50cd3445cdb7eb161dcda7b4ea8619a070287540d53132ddaae1'
7
+ data.tar.gz: 2489a77e0cbcf9a2572b5e4a5c1855b7232c71a96f3bf722914d1b0a69c92be3ce5fe85e0363ddff86058ce45826a7bf806f5d1c89bef0a9b7c05e70ef2a59a5
@@ -11,7 +11,7 @@ Layout/EndOfLine:
11
11
  Style/MultilineTernaryOperator:
12
12
  Enabled: false
13
13
  Metrics/BlockLength:
14
- Max: 50
14
+ Max: 60
15
15
  Layout/AlignParameters:
16
16
  Enabled: false
17
17
  Layout/EmptyLineAfterGuardClause:
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.0'
24
+ VERSION = '0.4.1'
25
25
 
26
26
  STDOUT.sync = true
27
27
 
@@ -74,9 +74,12 @@ Options are:"
74
74
  end
75
75
  log.info("Checking #{f} (#{tex.length} chars)...")
76
76
  log.debug(
77
- tex.split("\n")
78
- .each_with_index.map { |t, i| format('%<pos>4d: %<line>s', pos: i + 1, line: t) }
79
- .join("\n")
77
+ tex.split("\n").each_with_index.map do |t, i|
78
+ if t.start_with?('---')
79
+ log.info("Line #{i + 1} starts with '---', this may lead to unexpected errors")
80
+ end
81
+ format('%<pos>4d: %<line>s', pos: i + 1, line: t)
82
+ end.join("\n")
80
83
  )
81
84
  cmd = [
82
85
  'aspell',
@@ -102,7 +105,7 @@ Options are:"
102
105
  log.info('aspell produced no output, hm...')
103
106
  else
104
107
  lines = out.split("\n")
105
- log.info("aspell produced #{lines.length} lines of output")
108
+ log.debug("aspell produced #{lines.length} lines of output")
106
109
  lines.each_with_index do |t, i|
107
110
  if t.start_with?('&')
108
111
  log.info("[#{i}] #{t}")
@@ -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.0'
35
+ s.version = '0.4.1'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texsc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko