be9-rubbr 1.1.6.1 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 41d82b61216f18899e55c37b81547f93e519a78a
4
+ data.tar.gz: 31ffbcd9b44fab72c62302451fe33cced0cc5e26
5
+ SHA512:
6
+ metadata.gz: 3b749ab747785f394192b5974e77cd0703861fad015bb9132d2a118ad8baaf94015dc65900da748a6de719d20cf6a7db0415ed139762b506af22c1ded244613f
7
+ data.tar.gz: 4843223ff4cc4286a467abfe457270a10e95b443db5edeb06d51c2053fe32ca49d7a2c43a357b1bda469a7d5842435b1430431dec88e698bb237dba1ce2b3e8e
@@ -1,4 +1,8 @@
1
1
 
2
+ == 1.1.7 / 2016-02-08 (by be9)
3
+
4
+ * Added support for the XeLaTeX engine (cypok)
5
+
2
6
  == 1.1.6.1 / 2013-06-05 (by be9)
3
7
 
4
8
  * Fix modern Ruby support (cypok)
@@ -17,6 +17,7 @@ lib/rubbr/builder/ps.rb
17
17
  lib/rubbr/builder/dvi.rb
18
18
  lib/rubbr/runner/ps2pdf.rb
19
19
  lib/rubbr/runner/pdflatex.rb
20
+ lib/rubbr/runner/xelatex.rb
20
21
  lib/rubbr/runner/latex.rb
21
22
  lib/rubbr/runner/dvips.rb
22
23
  lib/rubbr/runner/bibtex.rb
data/README.txt CHANGED
@@ -12,7 +12,7 @@ Build LaTeX documents.
12
12
  Usage: rubbr [options]
13
13
  -f, --format [FORMAT] Select output format (dvi, ps, pdf)
14
14
  -F, --force Force rebuild (even if files not changed)
15
- -e, --engine [ENGINE] Select processing engine (latex, pdflatex)
15
+ -e, --engine [ENGINE] Select processing engine (latex, pdflatex, xelatex)
16
16
  -d, --display Display the document
17
17
  -s, --spell Spell check source files
18
18
  -l, --loop Go into a build loop
@@ -2,7 +2,7 @@ require 'optparse'
2
2
  $:.unshift File.dirname(__FILE__)
3
3
 
4
4
  module Rubbr
5
- VERSION = '1.1.6.1'
5
+ VERSION = '1.1.7'
6
6
 
7
7
  autoload :Options, 'rubbr/options'
8
8
  autoload :OS, 'rubbr/os'
@@ -36,8 +36,8 @@ module Rubbr
36
36
  @@cmd_opts[:force] = true
37
37
  end
38
38
 
39
- opts.on('-e', '--engine [ENGINE]', [:pdflatex, :ps, :pdf],
40
- 'Select processing engine (latex, pdflatex)') do |engine|
39
+ opts.on('-e', '--engine [ENGINE]', [:latex, :pdflatex, :xelatex],
40
+ 'Select processing engine (latex, pdflatex, xelatex)') do |engine|
41
41
  @@cmd_opts[:engine] = engine
42
42
  end
43
43
 
@@ -73,7 +73,8 @@ module Rubbr
73
73
  end
74
74
 
75
75
  def self.do_build
76
- if Rubbr.options[:engine] == :pdflatex
76
+ case Rubbr.options[:engine]
77
+ when :pdflatex, :xelatex
77
78
  Rubbr::Builder::Tex.build
78
79
  else
79
80
  case Rubbr.options[:format]
@@ -15,6 +15,9 @@ module Rubbr
15
15
  when :pdflatex
16
16
  @output_format = :pdf
17
17
  preprocessor = Rubbr::Runner::PdfLaTeX
18
+ when :xelatex
19
+ @output_format = :pdf
20
+ preprocessor = Rubbr::Runner::XeLaTeX
18
21
  else
19
22
  @output_format = :dvi
20
23
  preprocessor = Rubbr::Runner::LaTeX
@@ -89,7 +89,7 @@ module Rubbr
89
89
  end
90
90
  end
91
91
 
92
- %w(latex bibtex dvips ps2pdf pdflatex).each do
92
+ %w(latex bibtex dvips ps2pdf pdflatex xelatex).each do
93
93
  |f| require File.dirname(__FILE__) + "/runner/#{f}"
94
94
  end
95
95
  end
@@ -0,0 +1,9 @@
1
+ module Rubbr
2
+ module Runner
3
+ class XeLaTeX < Base
4
+ def initialize(input_file, executable='xelatex')
5
+ super
6
+ end
7
+ end
8
+ end
9
+ end
@@ -3,7 +3,8 @@ module Rubbr
3
3
 
4
4
  # View the spesified format.
5
5
  def self.view
6
- if Rubbr.options[:engine] == :pdflatex
6
+ case Rubbr.options[:engine]
7
+ when :pdflatex, :xelatex
7
8
  Rubbr::Viewer::Pdf.new.launch
8
9
  else
9
10
  case Rubbr.options[:format]
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.name = "be9-rubbr"
7
7
  s.version = Rubbr::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.authors = ["Eivind Uggedal", "Oleg Dashevskii"]
9
+ s.authors = ["Eivind Uggedal", "Oleg Dashevskii", "Vladimir Parfinenko"]
10
10
  s.email = ["olegdashevskii@gmail.com"]
11
11
  s.homepage = "http://github.com/be9/rubbr"
12
12
  s.summary = %q{LaTeX builder}
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: be9-rubbr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6.1
5
- prerelease:
4
+ version: 1.1.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Eivind Uggedal
9
8
  - Oleg Dashevskii
9
+ - Vladimir Parfinenko
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-05 00:00:00.000000000 Z
13
+ date: 2016-02-10 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Build LaTeX documents.
16
16
  email:
@@ -20,7 +20,7 @@ executables:
20
20
  extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
- - .gitignore
23
+ - ".gitignore"
24
24
  - Gemfile
25
25
  - History.txt
26
26
  - Manifest.txt
@@ -42,6 +42,7 @@ files:
42
42
  - lib/rubbr/runner/latex.rb
43
43
  - lib/rubbr/runner/pdflatex.rb
44
44
  - lib/rubbr/runner/ps2pdf.rb
45
+ - lib/rubbr/runner/xelatex.rb
45
46
  - lib/rubbr/scm.rb
46
47
  - lib/rubbr/scm/git.rb
47
48
  - lib/rubbr/scm/mercurial.rb
@@ -54,26 +55,25 @@ files:
54
55
  - rubbr.gemspec
55
56
  homepage: http://github.com/be9/rubbr
56
57
  licenses: []
58
+ metadata: {}
57
59
  post_install_message:
58
60
  rdoc_options: []
59
61
  require_paths:
60
62
  - lib
61
63
  required_ruby_version: !ruby/object:Gem::Requirement
62
- none: false
63
64
  requirements:
64
- - - ! '>='
65
+ - - ">="
65
66
  - !ruby/object:Gem::Version
66
67
  version: '0'
67
68
  required_rubygems_version: !ruby/object:Gem::Requirement
68
- none: false
69
69
  requirements:
70
- - - ! '>='
70
+ - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
74
  rubyforge_project: rubbr
75
- rubygems_version: 1.8.24
75
+ rubygems_version: 2.4.5.1
76
76
  signing_key:
77
- specification_version: 3
77
+ specification_version: 4
78
78
  summary: LaTeX builder
79
79
  test_files: []