macaw 0.0.1 → 0.0.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -16
- data/Gemfile +4 -0
- data/Gemfile.lock +27 -0
- data/LICENSE.txt +1 -1
- data/README.md +82 -0
- data/Rakefile +132 -0
- data/bin/macaw +308 -0
- data/lib/macaw.rb +2 -3
- data/lib/macaw/i18n/de.yml +171 -0
- data/lib/macaw/i18n/en.yml +157 -0
- data/lib/macaw/i18n/es.yml +159 -0
- data/lib/macaw/i18n/fr.yml +160 -0
- data/lib/macaw/i18n/it.yml +157 -0
- data/lib/macaw/i18n/pt-BR.yml +154 -0
- data/lib/macaw/i18n/pt.yml +155 -0
- data/lib/macaw/i18n/ru.yml +159 -0
- data/lib/macaw/i18n/tr.yml +148 -0
- data/lib/macaw/rules/animate.rb +26 -0
- data/lib/macaw/rules/biber.rb +8 -0
- data/lib/macaw/rules/bibtex.rb +8 -0
- data/lib/macaw/rules/clean.rb +10 -0
- data/lib/macaw/rules/dvipdfm.rb +9 -0
- data/lib/macaw/rules/dvipdfmx.rb +9 -0
- data/lib/macaw/rules/dvips.rb +9 -0
- data/lib/macaw/rules/dvipsps2pdf.rb +10 -0
- data/lib/macaw/rules/frontespizio.rb +14 -0
- data/lib/macaw/rules/indent.rb +36 -0
- data/lib/macaw/rules/latex.rb +17 -0
- data/lib/macaw/rules/lmkclean.rb +13 -0
- data/lib/macaw/rules/lualatex.rb +17 -0
- data/lib/macaw/rules/lualatexmk.rb +17 -0
- data/lib/macaw/rules/luatex.rb +17 -0
- data/lib/macaw/rules/make.rb +9 -0
- data/lib/macaw/rules/makeglossaries.rb +9 -0
- data/lib/macaw/rules/makeindex.rb +16 -0
- data/lib/macaw/rules/nomencl.rb +17 -0
- data/lib/macaw/rules/pdflatex.rb +17 -0
- data/lib/macaw/rules/pdflatexmk.rb +17 -0
- data/lib/macaw/rules/pdftex.rb +16 -0
- data/lib/macaw/rules/ps2pdf.rb +16 -0
- data/lib/macaw/rules/sketch.rb +14 -0
- data/lib/macaw/rules/songidx.rb +8 -0
- data/lib/macaw/rules/sumatrapdf.rb +10 -0
- data/lib/macaw/rules/tex.rb +9 -0
- data/lib/macaw/rules/texcount.rb +9 -0
- data/lib/macaw/rules/xdvipdfmx.rb +9 -0
- data/lib/macaw/rules/xelatex.rb +16 -0
- data/lib/macaw/rules/xelatexmk.rb +14 -0
- data/lib/macaw/rules/xetex.rb +15 -0
- data/lib/macaw/version.rb +2 -2
- data/macaw.gemspec +24 -17
- data/test/test_macaw.rb +8 -0
- metadata +133 -30
@@ -0,0 +1,16 @@
|
|
1
|
+
# XeLaTeX rule for arara
|
2
|
+
# author: Marco Daniel
|
3
|
+
# last edited by: Paulo Cereda
|
4
|
+
# requires arara 3.0+
|
5
|
+
class Macaw
|
6
|
+
def xelatex(action, shell=nil, synctex=nil, options=nil)
|
7
|
+
Macaw.system [
|
8
|
+
'xelatex',
|
9
|
+
"--interaction=#{action}",
|
10
|
+
"--#{shell ? '' : 'no-'}shell-escape",
|
11
|
+
"--synctex=#{syntex ? 1 : 0}",
|
12
|
+
options,
|
13
|
+
~@file
|
14
|
+
]
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# LaTeXmk with XeLaTeX rule for arara
|
2
|
+
# author: Brent Longborough
|
3
|
+
# requires arara 3.0+
|
4
|
+
class Macaw
|
5
|
+
def xelatexmk(action, shell=nil, synctex=nil, style=nil)
|
6
|
+
Macaw.system [
|
7
|
+
"latexmk -e '$pdflatex=q/xelatex%O%S/' --interaction=#{action} --synctex=#{synctex ? 1 : 0} --#{shell ? '' : 'no-'}shell-escape",
|
8
|
+
options,
|
9
|
+
style ? "-e '$makeindex=q/makeindex %O -s #{style}.ist -o %D %S/'" : nil,
|
10
|
+
'-pdf',
|
11
|
+
~@file
|
12
|
+
]
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# XeLaTeX rule for arara
|
2
|
+
# author: Paulo Cereda
|
3
|
+
# requires arara 3.0+
|
4
|
+
class Macaw
|
5
|
+
def xetex(action, shell=nil, synctex=nil, options=nil)
|
6
|
+
Macaw.system [
|
7
|
+
'xetex',
|
8
|
+
"--interaction=#{action}",
|
9
|
+
"--#{shell ? '' : 'no-'}shell-escape",
|
10
|
+
"--synctex=#{synctex ? 1 : 0}",
|
11
|
+
options,
|
12
|
+
~@file
|
13
|
+
]
|
14
|
+
end
|
15
|
+
end
|
data/lib/macaw/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
VERSION =
|
1
|
+
class Macaw
|
2
|
+
VERSION = "0.0.40"
|
3
3
|
end
|
data/macaw.gemspec
CHANGED
@@ -1,24 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
1
2
|
lib = File.expand_path('../lib', __FILE__)
|
2
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
|
4
4
|
require 'macaw/version'
|
5
5
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "macaw"
|
8
|
+
spec.version = Macaw::VERSION
|
9
|
+
spec.executables << 'macaw'
|
10
|
+
spec.authors = ["Emiliano Heyns"]
|
11
|
+
spec.email = ["Emiliano.Heyns@iris-advies.com"]
|
12
|
+
spec.description = %q{Ruby Arara}
|
13
|
+
spec.summary = %q{Ruby Arara}
|
14
|
+
spec.homepage = ""
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files`.split($/)
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
spec.required_ruby_version = '>= 1.9'
|
15
22
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
gem.require_paths = ['lib']
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
spec.add_development_dependency 'java_properties'
|
20
26
|
|
21
|
-
|
22
|
-
|
23
|
-
|
27
|
+
spec.add_runtime_dependency 'json_pure'
|
28
|
+
spec.add_runtime_dependency 'require_all'
|
29
|
+
spec.add_runtime_dependency 'os'
|
30
|
+
spec.add_runtime_dependency 'i18n'
|
24
31
|
end
|
data/test/test_macaw.rb
ADDED
metadata
CHANGED
@@ -1,73 +1,175 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: macaw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Emiliano Heyns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: java_properties
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: json_pure
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
53
60
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
55
|
-
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: require_all
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: os
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: i18n
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Ruby Arara
|
56
112
|
email:
|
57
|
-
-
|
58
|
-
executables:
|
113
|
+
- Emiliano.Heyns@iris-advies.com
|
114
|
+
executables:
|
115
|
+
- macaw
|
59
116
|
extensions: []
|
60
117
|
extra_rdoc_files: []
|
61
118
|
files:
|
62
|
-
- .gitignore
|
119
|
+
- ".gitignore"
|
63
120
|
- Gemfile
|
121
|
+
- Gemfile.lock
|
64
122
|
- LICENSE.txt
|
65
123
|
- README.md
|
66
124
|
- Rakefile
|
125
|
+
- bin/macaw
|
67
126
|
- lib/macaw.rb
|
127
|
+
- lib/macaw/i18n/de.yml
|
128
|
+
- lib/macaw/i18n/en.yml
|
129
|
+
- lib/macaw/i18n/es.yml
|
130
|
+
- lib/macaw/i18n/fr.yml
|
131
|
+
- lib/macaw/i18n/it.yml
|
132
|
+
- lib/macaw/i18n/pt-BR.yml
|
133
|
+
- lib/macaw/i18n/pt.yml
|
134
|
+
- lib/macaw/i18n/ru.yml
|
135
|
+
- lib/macaw/i18n/tr.yml
|
136
|
+
- lib/macaw/rules/animate.rb
|
137
|
+
- lib/macaw/rules/biber.rb
|
138
|
+
- lib/macaw/rules/bibtex.rb
|
139
|
+
- lib/macaw/rules/clean.rb
|
140
|
+
- lib/macaw/rules/dvipdfm.rb
|
141
|
+
- lib/macaw/rules/dvipdfmx.rb
|
142
|
+
- lib/macaw/rules/dvips.rb
|
143
|
+
- lib/macaw/rules/dvipsps2pdf.rb
|
144
|
+
- lib/macaw/rules/frontespizio.rb
|
145
|
+
- lib/macaw/rules/indent.rb
|
146
|
+
- lib/macaw/rules/latex.rb
|
147
|
+
- lib/macaw/rules/lmkclean.rb
|
148
|
+
- lib/macaw/rules/lualatex.rb
|
149
|
+
- lib/macaw/rules/lualatexmk.rb
|
150
|
+
- lib/macaw/rules/luatex.rb
|
151
|
+
- lib/macaw/rules/make.rb
|
152
|
+
- lib/macaw/rules/makeglossaries.rb
|
153
|
+
- lib/macaw/rules/makeindex.rb
|
154
|
+
- lib/macaw/rules/nomencl.rb
|
155
|
+
- lib/macaw/rules/pdflatex.rb
|
156
|
+
- lib/macaw/rules/pdflatexmk.rb
|
157
|
+
- lib/macaw/rules/pdftex.rb
|
158
|
+
- lib/macaw/rules/ps2pdf.rb
|
159
|
+
- lib/macaw/rules/sketch.rb
|
160
|
+
- lib/macaw/rules/songidx.rb
|
161
|
+
- lib/macaw/rules/sumatrapdf.rb
|
162
|
+
- lib/macaw/rules/tex.rb
|
163
|
+
- lib/macaw/rules/texcount.rb
|
164
|
+
- lib/macaw/rules/xdvipdfmx.rb
|
165
|
+
- lib/macaw/rules/xelatex.rb
|
166
|
+
- lib/macaw/rules/xelatexmk.rb
|
167
|
+
- lib/macaw/rules/xetex.rb
|
68
168
|
- lib/macaw/version.rb
|
69
169
|
- macaw.gemspec
|
70
|
-
|
170
|
+
- test/test.tex
|
171
|
+
- test/test_macaw.rb
|
172
|
+
homepage: ''
|
71
173
|
licenses:
|
72
174
|
- MIT
|
73
175
|
metadata: {}
|
@@ -77,19 +179,20 @@ require_paths:
|
|
77
179
|
- lib
|
78
180
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
181
|
requirements:
|
80
|
-
- -
|
182
|
+
- - ">="
|
81
183
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
184
|
+
version: '1.9'
|
83
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
186
|
requirements:
|
85
|
-
- -
|
187
|
+
- - ">="
|
86
188
|
- !ruby/object:Gem::Version
|
87
189
|
version: '0'
|
88
190
|
requirements: []
|
89
191
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.
|
192
|
+
rubygems_version: 2.2.2
|
91
193
|
signing_key:
|
92
194
|
specification_version: 4
|
93
|
-
summary:
|
94
|
-
test_files:
|
95
|
-
|
195
|
+
summary: Ruby Arara
|
196
|
+
test_files:
|
197
|
+
- test/test.tex
|
198
|
+
- test/test_macaw.rb
|