texas 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/texas +6 -0
- data/contents/_chapter.md.erb +13 -0
- data/contents/_preambel.tex.erb +50 -0
- data/contents/master.tex.erb +7 -0
- data/lib/texas/build/base.rb +120 -0
- data/lib/texas/build/dry.rb +11 -0
- data/lib/texas/build/final.rb +7 -0
- data/lib/texas/build/task/add_default_templates_to_build_path.rb +22 -0
- data/lib/texas/build/task/base.rb +15 -0
- data/lib/texas/build/task/copy_contents_to_build_path.rb +31 -0
- data/lib/texas/build/task/open_pdf.rb +36 -0
- data/lib/texas/build/task/publish_pdf.rb +46 -0
- data/lib/texas/build/task/rewrite_marked_templates.rb +13 -0
- data/lib/texas/build/task/run_before_scripts.rb +22 -0
- data/lib/texas/build/task/run_master_template.rb +23 -0
- data/lib/texas/build.rb +15 -0
- data/lib/texas/core_ext/string.rb +132 -0
- data/lib/texas/core_ext.rb +1 -0
- data/lib/texas/option_parser.rb +175 -0
- data/lib/texas/runner.rb +71 -0
- data/lib/texas/task/base.rb +23 -0
- data/lib/texas/task/new.rb +18 -0
- data/lib/texas/task/watch.rb +39 -0
- data/lib/texas/task.rb +11 -0
- data/lib/texas/template/helper/base.rb +82 -0
- data/lib/texas/template/helper/info.rb +29 -0
- data/lib/texas/template/helper/md.rb +35 -0
- data/lib/texas/template/helper/tex.rb +83 -0
- data/lib/texas/template/helper.rb +6 -0
- data/lib/texas/template/runner/base.rb +70 -0
- data/lib/texas/template/runner/md.rb +16 -0
- data/lib/texas/template/runner/tex.rb +11 -0
- data/lib/texas/template/runner.rb +13 -0
- data/lib/texas/template.rb +62 -0
- data/lib/texas/version.rb +9 -0
- data/lib/texas.rb +18 -0
- data/spec/fixtures/basic/contents/contents.tex.erb +8 -0
- data/spec/fixtures/basic/figures/test_figure.png +0 -0
- data/spec/fixtures/basic-md/contents/contents.md.erb +1 -0
- data/spec/fixtures/basic-md/contents/contents.tex.should +3 -0
- data/spec/fixtures/basic-md/contents/input_template.md.erb +3 -0
- data/spec/fixtures/basic-tex/contents/contents.tex.erb +1 -0
- data/spec/fixtures/basic-tex/contents/contents.tex.should +1 -0
- data/spec/fixtures/basic-tex/contents/input_template.tex.erb +3 -0
- data/spec/fixtures/basic-tex/contents/input_template.tex.should +3 -0
- data/spec/fixtures/basic-tex/contents/unused_template.tex.erb +1 -0
- data/spec/fixtures/different-master-tex/contents/contents.tex.erb +1 -0
- data/spec/fixtures/different-master-tex/contents/contents.tex.should +1 -0
- data/spec/fixtures/different-master-tex/contents/master.tex.erb +9 -0
- data/spec/fixtures/different-master-tex/contents/master.tex.should +59 -0
- data/spec/fixtures/helper-methods-tex/contents/contents.tex.erb +7 -0
- data/spec/fixtures/helper-methods-tex/contents/contents.tex.should +7 -0
- data/spec/fixtures/helper-methods-tex/contents/input_template.tex.erb +5 -0
- data/spec/fixtures/helper-methods-tex/contents/input_template.tex.should +5 -0
- data/spec/fixtures/helper-methods-tex/contents/some_chapter/another_include.tex +1 -0
- data/spec/fixtures/helper-methods-tex/contents/some_chapter/test_include.tex.erb +7 -0
- data/spec/fixtures/helper-methods-tex/contents/some_chapter/test_include.tex.should +7 -0
- data/spec/fixtures/helper-methods-tex/contents/some_chapter.tex.erb +5 -0
- data/spec/fixtures/helper-methods-tex/contents/some_chapter.tex.should +5 -0
- data/spec/fixtures/helper-methods-tex/contents/template/helper/_some_partial.md.erb +1 -0
- data/spec/fixtures/helper-methods-tex/contents/template/helper/base.tex.erb +3 -0
- data/spec/fixtures/helper-methods-tex/contents/template/helper/base.tex.should +4 -0
- data/spec/fixtures/helper-methods-tex/contents/template/helper/info.md.erb +6 -0
- data/spec/fixtures/helper-methods-tex/contents/template/helper/info.tex.should +1 -0
- data/spec/fixtures/helper-methods-tex/contents/test_figure.tex.erb +1 -0
- data/spec/fixtures/helper-methods-tex/figures/test_figure.png +0 -0
- data/spec/fixtures/lib-helpers/contents/contents.tex.erb +3 -0
- data/spec/fixtures/lib-helpers/contents/contents.tex.should +3 -0
- data/spec/fixtures/lib-helpers/lib/helpers/document_helper.rb +7 -0
- data/spec/fixtures/lib-helpers/lib/init.rb +4 -0
- data/spec/fixtures/new/contents/contents.tex.erb +9 -0
- data/spec/fixtures/new/lib/helpers/document_helper.rb +11 -0
- data/spec/fixtures/new/lib/init.rb +4 -0
- data/spec/fixtures/prose/contents/chapter-1/01-some-scene.md +1 -0
- data/spec/fixtures/prose/contents/chapter-1/02-another-scene.md +1 -0
- data/spec/fixtures/prose/contents/chapter-1/03-and-another-scene.md +1 -0
- data/spec/fixtures/prose/contents/contents.md.erb +1 -0
- data/spec/fixtures/rerun/contents/contents.tex.erb +6 -0
- data/spec/fixtures/rerun/contents/contents.tex.should +4 -0
- data/spec/fixtures/texasrc/contents/contents.tex.erb +3 -0
- data/spec/fixtures/texasrc/contents/contents.tex.should +3 -0
- data/spec/spec_helper.rb +64 -0
- data/spec/texas/build_spec.rb +17 -0
- data/spec/texas/template/helper/info_spec.rb +41 -0
- data/spec/texas/template/runner_spec.rb +35 -0
- data/spec/texas/template_spec.rb +11 -0
- data/spec/texas_spec.rb +43 -0
- metadata +196 -0
metadata
ADDED
@@ -0,0 +1,196 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: texas
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- "Ren\xC3\xA9 F\xC3\xB6hring"
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2013-04-14 00:00:00 +02:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: term-ansicolor
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: listen
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rb-inotify
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 47
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
- 8
|
61
|
+
- 8
|
62
|
+
version: 0.8.8
|
63
|
+
type: :runtime
|
64
|
+
version_requirements: *id003
|
65
|
+
description: A tool for creating LaTex files from ERb templates and processing them into PDF format.
|
66
|
+
email: rf@bamaru.de
|
67
|
+
executables:
|
68
|
+
- texas
|
69
|
+
extensions: []
|
70
|
+
|
71
|
+
extra_rdoc_files: []
|
72
|
+
|
73
|
+
files:
|
74
|
+
- lib/texas/build/base.rb
|
75
|
+
- lib/texas/build/dry.rb
|
76
|
+
- lib/texas/build/final.rb
|
77
|
+
- lib/texas/build/task/add_default_templates_to_build_path.rb
|
78
|
+
- lib/texas/build/task/base.rb
|
79
|
+
- lib/texas/build/task/copy_contents_to_build_path.rb
|
80
|
+
- lib/texas/build/task/open_pdf.rb
|
81
|
+
- lib/texas/build/task/publish_pdf.rb
|
82
|
+
- lib/texas/build/task/rewrite_marked_templates.rb
|
83
|
+
- lib/texas/build/task/run_before_scripts.rb
|
84
|
+
- lib/texas/build/task/run_master_template.rb
|
85
|
+
- lib/texas/build.rb
|
86
|
+
- lib/texas/core_ext/string.rb
|
87
|
+
- lib/texas/core_ext.rb
|
88
|
+
- lib/texas/option_parser.rb
|
89
|
+
- lib/texas/runner.rb
|
90
|
+
- lib/texas/task/base.rb
|
91
|
+
- lib/texas/task/new.rb
|
92
|
+
- lib/texas/task/watch.rb
|
93
|
+
- lib/texas/task.rb
|
94
|
+
- lib/texas/template/helper/base.rb
|
95
|
+
- lib/texas/template/helper/info.rb
|
96
|
+
- lib/texas/template/helper/md.rb
|
97
|
+
- lib/texas/template/helper/tex.rb
|
98
|
+
- lib/texas/template/helper.rb
|
99
|
+
- lib/texas/template/runner/base.rb
|
100
|
+
- lib/texas/template/runner/md.rb
|
101
|
+
- lib/texas/template/runner/tex.rb
|
102
|
+
- lib/texas/template/runner.rb
|
103
|
+
- lib/texas/template.rb
|
104
|
+
- lib/texas/version.rb
|
105
|
+
- lib/texas.rb
|
106
|
+
- spec/fixtures/basic/contents/contents.tex.erb
|
107
|
+
- spec/fixtures/basic/figures/test_figure.png
|
108
|
+
- spec/fixtures/basic-md/contents/contents.md.erb
|
109
|
+
- spec/fixtures/basic-md/contents/contents.tex.should
|
110
|
+
- spec/fixtures/basic-md/contents/input_template.md.erb
|
111
|
+
- spec/fixtures/basic-tex/contents/contents.tex.erb
|
112
|
+
- spec/fixtures/basic-tex/contents/contents.tex.should
|
113
|
+
- spec/fixtures/basic-tex/contents/input_template.tex.erb
|
114
|
+
- spec/fixtures/basic-tex/contents/input_template.tex.should
|
115
|
+
- spec/fixtures/basic-tex/contents/unused_template.tex.erb
|
116
|
+
- spec/fixtures/different-master-tex/contents/contents.tex.erb
|
117
|
+
- spec/fixtures/different-master-tex/contents/contents.tex.should
|
118
|
+
- spec/fixtures/different-master-tex/contents/master.tex.erb
|
119
|
+
- spec/fixtures/different-master-tex/contents/master.tex.should
|
120
|
+
- spec/fixtures/helper-methods-tex/contents/contents.tex.erb
|
121
|
+
- spec/fixtures/helper-methods-tex/contents/contents.tex.should
|
122
|
+
- spec/fixtures/helper-methods-tex/contents/input_template.tex.erb
|
123
|
+
- spec/fixtures/helper-methods-tex/contents/input_template.tex.should
|
124
|
+
- spec/fixtures/helper-methods-tex/contents/some_chapter/another_include.tex
|
125
|
+
- spec/fixtures/helper-methods-tex/contents/some_chapter/test_include.tex.erb
|
126
|
+
- spec/fixtures/helper-methods-tex/contents/some_chapter/test_include.tex.should
|
127
|
+
- spec/fixtures/helper-methods-tex/contents/some_chapter.tex.erb
|
128
|
+
- spec/fixtures/helper-methods-tex/contents/some_chapter.tex.should
|
129
|
+
- spec/fixtures/helper-methods-tex/contents/template/helper/_some_partial.md.erb
|
130
|
+
- spec/fixtures/helper-methods-tex/contents/template/helper/base.tex.erb
|
131
|
+
- spec/fixtures/helper-methods-tex/contents/template/helper/base.tex.should
|
132
|
+
- spec/fixtures/helper-methods-tex/contents/template/helper/info.md.erb
|
133
|
+
- spec/fixtures/helper-methods-tex/contents/template/helper/info.tex.should
|
134
|
+
- spec/fixtures/helper-methods-tex/contents/test_figure.tex.erb
|
135
|
+
- spec/fixtures/helper-methods-tex/figures/test_figure.png
|
136
|
+
- spec/fixtures/lib-helpers/contents/contents.tex.erb
|
137
|
+
- spec/fixtures/lib-helpers/contents/contents.tex.should
|
138
|
+
- spec/fixtures/lib-helpers/lib/helpers/document_helper.rb
|
139
|
+
- spec/fixtures/lib-helpers/lib/init.rb
|
140
|
+
- spec/fixtures/new/contents/contents.tex.erb
|
141
|
+
- spec/fixtures/new/lib/helpers/document_helper.rb
|
142
|
+
- spec/fixtures/new/lib/init.rb
|
143
|
+
- spec/fixtures/prose/contents/chapter-1/01-some-scene.md
|
144
|
+
- spec/fixtures/prose/contents/chapter-1/02-another-scene.md
|
145
|
+
- spec/fixtures/prose/contents/chapter-1/03-and-another-scene.md
|
146
|
+
- spec/fixtures/prose/contents/contents.md.erb
|
147
|
+
- spec/fixtures/rerun/contents/contents.tex.erb
|
148
|
+
- spec/fixtures/rerun/contents/contents.tex.should
|
149
|
+
- spec/fixtures/texasrc/contents/contents.tex.erb
|
150
|
+
- spec/fixtures/texasrc/contents/contents.tex.should
|
151
|
+
- spec/spec_helper.rb
|
152
|
+
- spec/texas/build_spec.rb
|
153
|
+
- spec/texas/template/helper/info_spec.rb
|
154
|
+
- spec/texas/template/runner_spec.rb
|
155
|
+
- spec/texas/template_spec.rb
|
156
|
+
- spec/texas_spec.rb
|
157
|
+
- bin/texas
|
158
|
+
- contents/_chapter.md.erb
|
159
|
+
- contents/_preambel.tex.erb
|
160
|
+
- contents/master.tex.erb
|
161
|
+
has_rdoc: true
|
162
|
+
homepage: http://github.com/rrrene/texas
|
163
|
+
licenses: []
|
164
|
+
|
165
|
+
post_install_message:
|
166
|
+
rdoc_options: []
|
167
|
+
|
168
|
+
require_paths:
|
169
|
+
- lib
|
170
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ">="
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
hash: 3
|
176
|
+
segments:
|
177
|
+
- 0
|
178
|
+
version: "0"
|
179
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
+
none: false
|
181
|
+
requirements:
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
hash: 3
|
185
|
+
segments:
|
186
|
+
- 0
|
187
|
+
version: "0"
|
188
|
+
requirements:
|
189
|
+
- none
|
190
|
+
rubyforge_project:
|
191
|
+
rubygems_version: 1.6.2
|
192
|
+
signing_key:
|
193
|
+
specification_version: 3
|
194
|
+
summary: A tool for creating LaTex files from ERb templates.
|
195
|
+
test_files: []
|
196
|
+
|