rubbr 1.0.1 → 1.0.2

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.
@@ -1,3 +1,7 @@
1
+ == 1.0.1 / 2008-02-28
2
+
3
+ * Exit program on errors and sort warnings
4
+
1
5
  == 1.0.1 / 2008-02-10
2
6
 
3
7
  * Many small bugfixes and code refactorings
data/README.txt CHANGED
@@ -1,6 +1,7 @@
1
1
  = rubbr
2
2
 
3
- * http://rubbr.rubyforge.org
3
+ * http://rubyforge.org/projects/rubbr/
4
+ * by Eivind Uggedal <eu@redflavor.com>
4
5
 
5
6
  == DESCRIPTION:
6
7
 
@@ -48,7 +49,7 @@ gem install rubbr
48
49
 
49
50
  (The MIT License)
50
51
 
51
- Copyright (c) 2008 Eivind Uggedal
52
+ Copyright (c) 2008 Eivind Uggedal <eu@redflavor.com>
52
53
 
53
54
  Permission is hereby granted, free of charge, to any person obtaining
54
55
  a copy of this software and associated documentation files (the
@@ -2,7 +2,7 @@ require 'optparse'
2
2
  $:.unshift File.dirname(__FILE__)
3
3
 
4
4
  module Rubbr
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
 
7
7
  autoload :Options, 'rubbr/options'
8
8
  autoload :Cli, 'rubbr/cli'
@@ -52,6 +52,7 @@ module Rubbr
52
52
  @errors.each do |message|
53
53
  error message
54
54
  end
55
+ exit
55
56
  end
56
57
  end
57
58
  end
@@ -7,12 +7,12 @@ module Rubbr
7
7
 
8
8
  def run
9
9
  disable_stdinn do
10
- messages = /^(Overfull|Underfull|No file|Package \w+ Warning:)/
10
+ messages = /^(Overfull|Underfull|No file|Package \w+ Warning:|LaTeX Warning:)/
11
11
  run = `#@executable #@input_file`
12
- @warnings = run.grep(messages)
12
+ @warnings = run.grep(messages).sort
13
13
  lines = run.split("\n")
14
14
  while lines.shift
15
- if lines.first =~ /^!/
15
+ if lines.first =~ /^!/ # LaTeX Error, processing halted
16
16
  3.times { @errors << lines.shift }
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubbr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eivind Uggedal
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-10 00:00:00 +01:00
12
+ date: 2008-02-28 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -59,7 +59,7 @@ files:
59
59
  - lib/rubbr/viewer/pdf.rb
60
60
  - lib/rubbr/viewer/dvi.rb
61
61
  has_rdoc: true
62
- homepage: http://rubbr.rubyforge.org
62
+ homepage: http://rubyforge.org/projects/rubbr/
63
63
  post_install_message:
64
64
  rdoc_options:
65
65
  - --main