latexpdf 0.4.6 → 0.4.7
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.
- checksums.yaml +4 -4
- data/lib/latexpdf/pdf_generator.rb +2 -13
- data/lib/latexpdf/version.rb +1 -1
- data/test/dummy/log/test.log +85 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13038c7ebb6a96fbf3196ea9cbeefc48af0f5ecb
|
|
4
|
+
data.tar.gz: 3f8e58ca1331096731a9d59b381c2d6295925f77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4b7898d6cece0065f8cf78667713501dc757c61c4f0d31f89f9f1af6e2f1feefa3dc50347692806a5969cd1a1e5d15c3630c8073e322eb710f3dac325baca82
|
|
7
|
+
data.tar.gz: 37fc6c838821c127a9af957c64ef08d9234ea0832a0d8f7355fa1b4dca58ea8eea7e8186ed8de876fb83f4c9c3d865086c7b2b59098d8772db35c6bc43d2389a
|
|
@@ -65,23 +65,12 @@ module Latexpdf
|
|
|
65
65
|
args += %w[-no-pdf] unless generate_pdf
|
|
66
66
|
args = args + ["#{target_tex_file}"]
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
end
|
|
68
|
+
cmd = "cd #{build_path} && #{tex_command} #{args.join(' ')}"
|
|
69
|
+
result = system cmd, [:out, :err] => "/dev/null"
|
|
71
70
|
|
|
72
71
|
raise LatexpdfError.new "Tex failed:\n#{tex_log}" unless result
|
|
73
72
|
end
|
|
74
73
|
|
|
75
|
-
def exec_in_build_path
|
|
76
|
-
orig_dir = Dir.pwd
|
|
77
|
-
begin
|
|
78
|
-
Dir.chdir build_path
|
|
79
|
-
yield
|
|
80
|
-
ensure
|
|
81
|
-
Dir.chdir orig_dir
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
|
|
85
74
|
def tex_log
|
|
86
75
|
@errors ||= File.read(tex_log_file)
|
|
87
76
|
end
|
data/lib/latexpdf/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
|
@@ -185,3 +185,88 @@ Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-06-02 17:53:31 +0200
|
|
|
185
185
|
Processing by TexController#example2 as PDF
|
|
186
186
|
Rendered tex/example2.pdf.tex (1788.7ms)
|
|
187
187
|
Completed 200 OK in 1791ms (Views: 1790.8ms)
|
|
188
|
+
---------------------------------------------------------
|
|
189
|
+
RenderingTest: test_Generate_PDF_using_escaped_characters
|
|
190
|
+
---------------------------------------------------------
|
|
191
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-09-12 15:41:06 +0200
|
|
192
|
+
Processing by TexController#example2 as PDF
|
|
193
|
+
Rendered tex/example2.pdf.tex (1351.3ms)
|
|
194
|
+
Completed 200 OK in 1360ms (Views: 1360.1ms)
|
|
195
|
+
-----------------------------------------------------------
|
|
196
|
+
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
|
197
|
+
-----------------------------------------------------------
|
|
198
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-09-12 15:41:08 +0200
|
|
199
|
+
Processing by TexController#example as PDF
|
|
200
|
+
Rendered tex/example.pdf.tex (1152.6ms)
|
|
201
|
+
Completed 200 OK in 1155ms (Views: 1154.5ms)
|
|
202
|
+
-------------------------------------------------------------
|
|
203
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
|
204
|
+
-------------------------------------------------------------
|
|
205
|
+
---------------------------------------------------------
|
|
206
|
+
RenderingTest: test_Generate_PDF_using_escaped_characters
|
|
207
|
+
---------------------------------------------------------
|
|
208
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-09-12 15:42:49 +0200
|
|
209
|
+
Processing by TexController#example2 as PDF
|
|
210
|
+
Rendered tex/example2.pdf.tex (4.3ms)
|
|
211
|
+
Completed 500 Internal Server Error in 18ms
|
|
212
|
+
-----------------------------------------------------------
|
|
213
|
+
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
|
214
|
+
-----------------------------------------------------------
|
|
215
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-09-12 15:42:49 +0200
|
|
216
|
+
Processing by TexController#example as PDF
|
|
217
|
+
Rendered tex/example.pdf.tex (2.2ms)
|
|
218
|
+
Completed 500 Internal Server Error in 3ms
|
|
219
|
+
-------------------------------------------------------------
|
|
220
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
|
221
|
+
-------------------------------------------------------------
|
|
222
|
+
-------------------------------------------------------------
|
|
223
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
|
224
|
+
-------------------------------------------------------------
|
|
225
|
+
---------------------------------------------------------
|
|
226
|
+
RenderingTest: test_Generate_PDF_using_escaped_characters
|
|
227
|
+
---------------------------------------------------------
|
|
228
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-09-12 15:43:25 +0200
|
|
229
|
+
Processing by TexController#example2 as PDF
|
|
230
|
+
Rendered tex/example2.pdf.tex (13.7ms)
|
|
231
|
+
Completed 500 Internal Server Error in 21ms
|
|
232
|
+
-----------------------------------------------------------
|
|
233
|
+
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
|
234
|
+
-----------------------------------------------------------
|
|
235
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-09-12 15:43:25 +0200
|
|
236
|
+
Processing by TexController#example as PDF
|
|
237
|
+
Rendered tex/example.pdf.tex (4.7ms)
|
|
238
|
+
Completed 500 Internal Server Error in 6ms
|
|
239
|
+
---------------------------------------------------------
|
|
240
|
+
RenderingTest: test_Generate_PDF_using_escaped_characters
|
|
241
|
+
---------------------------------------------------------
|
|
242
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-09-12 15:45:34 +0200
|
|
243
|
+
Processing by TexController#example2 as PDF
|
|
244
|
+
Rendered tex/example2.pdf.tex (7.6ms)
|
|
245
|
+
Completed 500 Internal Server Error in 14ms
|
|
246
|
+
-----------------------------------------------------------
|
|
247
|
+
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
|
248
|
+
-----------------------------------------------------------
|
|
249
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-09-12 15:45:34 +0200
|
|
250
|
+
Processing by TexController#example as PDF
|
|
251
|
+
Rendered tex/example.pdf.tex (4.9ms)
|
|
252
|
+
Completed 500 Internal Server Error in 6ms
|
|
253
|
+
-------------------------------------------------------------
|
|
254
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
|
255
|
+
-------------------------------------------------------------
|
|
256
|
+
---------------------------------------------------------
|
|
257
|
+
RenderingTest: test_Generate_PDF_using_escaped_characters
|
|
258
|
+
---------------------------------------------------------
|
|
259
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-09-12 15:55:03 +0200
|
|
260
|
+
Processing by TexController#example2 as PDF
|
|
261
|
+
Rendered tex/example2.pdf.tex (1203.8ms)
|
|
262
|
+
Completed 200 OK in 1213ms (Views: 1212.9ms)
|
|
263
|
+
-----------------------------------------------------------
|
|
264
|
+
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
|
265
|
+
-----------------------------------------------------------
|
|
266
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-09-12 15:55:04 +0200
|
|
267
|
+
Processing by TexController#example as PDF
|
|
268
|
+
Rendered tex/example.pdf.tex (1333.8ms)
|
|
269
|
+
Completed 200 OK in 1337ms (Views: 1336.4ms)
|
|
270
|
+
-------------------------------------------------------------
|
|
271
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
|
272
|
+
-------------------------------------------------------------
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: latexpdf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthijs Ooms
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|