latexpdf 0.4.4 → 0.4.5

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.
Files changed (22) hide show
  1. checksums.yaml +4 -4
  2. data/lib/latexpdf/pdf_generator.rb +4 -4
  3. data/lib/latexpdf/version.rb +1 -1
  4. data/test/dummy/log/test.log +36 -342
  5. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  6. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Al/Al8B-MlRXLmvveOkSiQtTH7Mnx87ww6TKPPkXQkDCfA.cache +1 -0
  7. data/test/dummy/tmp/cache/assets/sprockets/v3.0/El/Elvl8FhrIcCHSvOVJ4mlw98G_x77dIhDO7ncklgb9o8.cache +0 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Eo/EoGXUuweaJggMJEhq_PIGuHGezpQHVeyR5Tnle6g0Zk.cache +0 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvDM1j8-H1H6kEjVCsyIW8N2zla-aIp9q_OE9PVZtVw.cache +1 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OH/OHv3xxmOjKcBMS0Y_yTmyfrhpGoi7AbGMBAcCFsH1vg.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ol/OlBX9JIv9SAOmK2t35x1SYDx1sxCXF0yvqpna3WMyH0.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TG/TGzz_qJLZNCMGy25pS4Lm-8Vj71mxCyy5TNmGoF9mUk.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yr/YrZ0OIHu42cExs1kqngMA6ShVDKhfGmhyW-E9haNo5Y.cache +1 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpiWtnqpufka8lRtMznM6Ko0aWJrcH_j8cfZwdYmzNI.cache +1 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v3.0/jo/jozGBeLU1Q4eVAsw_A_nyY994iqcnwgTZWiFbVsYmBs.cache +0 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sU/sU_vk26h2xIJpI3d-zhVgF2iTwOCAFk7zHPYuvqWNk0.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sp/sp2aS0gBrj1ZVPgX0e8j11TaSSz3qpMGjtFv6soZ0KM.cache +0 -0
  21. data/test/latexpdf/pdf_generator_test.rb +2 -2
  22. metadata +36 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 116374bb6fc3670040f270aca98e42d15ec1e314
4
- data.tar.gz: 7d68a6ee817e3cd4a08007f81c8d83d90db9ae48
3
+ metadata.gz: ff3b83d3a7089c0adc00d94db93d331354913b9b
4
+ data.tar.gz: 0dae4756e9a7e9cea544e2261f3601053f493ea2
5
5
  SHA512:
6
- metadata.gz: 7545099cdabd7b5e3d72b9f2ccf42ae94e27ffb292f75e7f25ff1e75e31fbdc76ed7ebbfc7eacedd7d636b5111693c8a70e9a341473562992172adabb101b0ee
7
- data.tar.gz: 1d830bed031ee69ae103be08a2a0ad36dc880138080b2a903c48b96ad6a05f5b51254638489fb8c411130018c2ad0266acc75b9790a078f850efa44632ac114c
6
+ metadata.gz: 2708882b6ed18aaca6b8541b96c4755193c9d59ada028b1e347dea0aeb44a403437ea2c12c8f62967cdbe35b92f6bfb4de217d1f693267e1f396f198cc85b364
7
+ data.tar.gz: 678d981389bdd1d0d480203deed30331b969262926efc6e7b4040566d17e1538e44aed7058bc370f1daacb590f6c0c77b5130e72a186365d8bdd0e1069b16a11
@@ -14,10 +14,10 @@ module Latexpdf
14
14
 
15
15
  def generate
16
16
  write_tex
17
- (Latexpdf.configuration.passes - 1).times do
18
- run_tex generate_pdf: true
17
+ Latexpdf.configuration.passes.times do
18
+ run_tex
19
19
  end
20
- run_tex generate_pdf: false
20
+
21
21
  if pdf_exist?
22
22
  @pdf_file = target_pdf_file
23
23
  @content = File.read(pdf_file)
@@ -56,7 +56,7 @@ module Latexpdf
56
56
  "xelatex"
57
57
  end
58
58
 
59
- def run_tex(generate_pdf: false)
59
+ def run_tex(generate_pdf: true)
60
60
  args = %w[-halt-on-error -shell-escape -interaction batchmode]
61
61
  args += %w[-no-pdf] unless generate_pdf
62
62
  args = args + ["#{target_tex_file}"]
@@ -1,3 +1,3 @@
1
1
  module Latexpdf
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
@@ -1,408 +1,102 @@
1
- -----------------------------------------------------------
2
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
3
- -----------------------------------------------------------
4
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:24:37 +0200
5
- Processing by TexController#example as PDF
6
- Rendered tex/example.pdf.tex (624.3ms)
7
- Completed 500 Internal Server Error in 635ms
8
- ---------------------------------------------------------
9
- RenderingTest: test_Generate_PDF_using_escaped_characters
10
- ---------------------------------------------------------
11
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:24:37 +0200
12
- Processing by TexController#example2 as PDF
13
- Rendered tex/example2.pdf.tex (637.1ms)
14
- Completed 500 Internal Server Error in 640ms
15
- -------------------------------------------------------------
16
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
17
- -------------------------------------------------------------
18
- -----------------------------------------------------------
19
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
20
- -----------------------------------------------------------
21
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:25:11 +0200
22
- Processing by TexController#example as PDF
23
- Rendered tex/example.pdf.tex (960.1ms)
24
- Completed 200 OK in 967ms (Views: 967.3ms)
25
- ---------------------------------------------------------
26
- RenderingTest: test_Generate_PDF_using_escaped_characters
27
- ---------------------------------------------------------
28
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:25:12 +0200
29
- Processing by TexController#example2 as PDF
30
- Rendered tex/example2.pdf.tex (930.6ms)
31
- Completed 200 OK in 933ms (Views: 932.4ms)
32
- -------------------------------------------------------------
33
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
34
- -------------------------------------------------------------
35
- ---------------------------------------------------------
36
- RenderingTest: test_Generate_PDF_using_escaped_characters
37
- ---------------------------------------------------------
38
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:26:07 +0200
39
- Processing by TexController#example2 as PDF
40
- Rendered tex/example2.pdf.tex (2732.4ms)
41
- Completed 200 OK in 2740ms (Views: 2740.2ms)
42
- -----------------------------------------------------------
43
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
44
- -----------------------------------------------------------
45
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:26:10 +0200
46
- Processing by TexController#example as PDF
47
- Rendered tex/example.pdf.tex (2727.6ms)
48
- Completed 200 OK in 2730ms (Views: 2729.5ms)
49
- -------------------------------------------------------------
50
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
51
- -------------------------------------------------------------
52
- -----------------------------------------------------------
53
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
54
- -----------------------------------------------------------
55
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:26:24 +0200
56
- Processing by TexController#example as PDF
57
- Rendered tex/example.pdf.tex (945.0ms)
58
- Completed 200 OK in 953ms (Views: 952.8ms)
59
- ---------------------------------------------------------
60
- RenderingTest: test_Generate_PDF_using_escaped_characters
61
- ---------------------------------------------------------
62
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:26:25 +0200
63
- Processing by TexController#example2 as PDF
64
- Rendered tex/example2.pdf.tex (947.0ms)
65
- Completed 200 OK in 949ms (Views: 949.1ms)
66
- -------------------------------------------------------------
67
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
68
- -------------------------------------------------------------
69
- -------------------------------------------------------------
70
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
71
- -------------------------------------------------------------
72
- -----------------------------------------------------------
73
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
74
- -----------------------------------------------------------
75
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:28:06 +0200
76
- Processing by TexController#example as PDF
77
- Rendered tex/example.pdf.tex (2696.9ms)
78
- Completed 200 OK in 2705ms (Views: 2704.5ms)
79
- ---------------------------------------------------------
80
- RenderingTest: test_Generate_PDF_using_escaped_characters
81
- ---------------------------------------------------------
82
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:28:09 +0200
83
- Processing by TexController#example2 as PDF
84
- Rendered tex/example2.pdf.tex (2725.3ms)
85
- Completed 200 OK in 2727ms (Views: 2727.3ms)
86
- -----------------------------------------------------------
87
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
88
- -----------------------------------------------------------
89
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:30:23 +0200
90
- Processing by TexController#example as PDF
91
- Rendered tex/example.pdf.tex (1118.0ms)
92
- Completed 200 OK in 1127ms (Views: 1126.8ms)
93
- ---------------------------------------------------------
94
- RenderingTest: test_Generate_PDF_using_escaped_characters
95
- ---------------------------------------------------------
96
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:30:24 +0200
97
- Processing by TexController#example2 as PDF
98
- Rendered tex/example2.pdf.tex (1172.1ms)
99
- Completed 200 OK in 1174ms (Views: 1174.0ms)
100
- -------------------------------------------------------------
101
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
102
- -------------------------------------------------------------
103
- -----------------------------------------------------------
104
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
105
- -----------------------------------------------------------
106
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:30:37 +0200
107
- Processing by TexController#example as PDF
108
- Rendered tex/example.pdf.tex (2934.3ms)
109
- Completed 200 OK in 2942ms (Views: 2941.3ms)
110
- ---------------------------------------------------------
111
- RenderingTest: test_Generate_PDF_using_escaped_characters
112
- ---------------------------------------------------------
113
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:30:40 +0200
114
- Processing by TexController#example2 as PDF
115
- Rendered tex/example2.pdf.tex (2894.2ms)
116
- Completed 200 OK in 2896ms (Views: 2896.4ms)
117
- -------------------------------------------------------------
118
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
119
- -------------------------------------------------------------
120
- -----------------------------------------------------------
121
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
122
- -----------------------------------------------------------
123
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:31:07 +0200
124
- Processing by TexController#example as PDF
125
- Rendered tex/example.pdf.tex (933.9ms)
126
- Completed 200 OK in 941ms (Views: 941.0ms)
127
- ---------------------------------------------------------
128
- RenderingTest: test_Generate_PDF_using_escaped_characters
129
- ---------------------------------------------------------
130
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:31:08 +0200
131
- Processing by TexController#example2 as PDF
132
- Rendered tex/example2.pdf.tex (927.0ms)
133
- Completed 200 OK in 929ms (Views: 929.0ms)
134
- -------------------------------------------------------------
135
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
136
- -------------------------------------------------------------
137
- -------------------------------------------------------------
138
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
139
- -------------------------------------------------------------
140
- -----------------------------------------------------------
141
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
142
- -----------------------------------------------------------
143
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:32:50 +0200
144
- Processing by TexController#example as PDF
145
- Rendered tex/example.pdf.tex (930.9ms)
146
- Completed 200 OK in 938ms (Views: 938.0ms)
147
- ---------------------------------------------------------
148
- RenderingTest: test_Generate_PDF_using_escaped_characters
149
- ---------------------------------------------------------
150
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:32:51 +0200
151
- Processing by TexController#example2 as PDF
152
- Rendered tex/example2.pdf.tex (937.2ms)
153
- Completed 200 OK in 939ms (Views: 939.3ms)
154
- -----------------------------------------------------------
155
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
156
- -----------------------------------------------------------
157
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:33:41 +0200
158
- Processing by TexController#example as PDF
159
- Rendered tex/example.pdf.tex (948.9ms)
160
- Completed 200 OK in 956ms (Views: 956.0ms)
161
- ---------------------------------------------------------
162
- RenderingTest: test_Generate_PDF_using_escaped_characters
163
- ---------------------------------------------------------
164
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:33:42 +0200
165
- Processing by TexController#example2 as PDF
166
- Rendered tex/example2.pdf.tex (1103.0ms)
167
- Completed 200 OK in 1105ms (Views: 1104.8ms)
168
- -------------------------------------------------------------
169
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
170
- -------------------------------------------------------------
171
1
  -------------------------------------------------------------
172
2
  ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
173
3
  -------------------------------------------------------------
174
- ---------------------------------------------------------
175
- RenderingTest: test_Generate_PDF_using_escaped_characters
176
- ---------------------------------------------------------
177
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:35:50 +0200
178
- Processing by TexController#example2 as PDF
179
- Rendered tex/example2.pdf.tex (2740.6ms)
180
- Completed 200 OK in 2749ms (Views: 2749.2ms)
181
- -----------------------------------------------------------
182
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
183
- -----------------------------------------------------------
184
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:35:52 +0200
185
- Processing by TexController#example as PDF
186
- Rendered tex/example.pdf.tex (2712.3ms)
187
- Completed 200 OK in 2714ms (Views: 2714.2ms)
188
- -------------------------------------------------------------
189
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
190
- -------------------------------------------------------------
191
- -----------------------------------------------------------
192
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
193
- -----------------------------------------------------------
194
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:37:28 +0200
195
- Processing by TexController#example as PDF
196
- Rendered tex/example.pdf.tex (949.8ms)
197
- Completed 200 OK in 958ms (Views: 958.1ms)
198
- ---------------------------------------------------------
199
- RenderingTest: test_Generate_PDF_using_escaped_characters
200
- ---------------------------------------------------------
201
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:37:29 +0200
202
- Processing by TexController#example2 as PDF
203
- Rendered tex/example2.pdf.tex (942.9ms)
204
- Completed 200 OK in 945ms (Views: 944.9ms)
205
4
  -----------------------------------------------------------
206
5
  RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
207
6
  -----------------------------------------------------------
208
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:39:08 +0200
7
+ Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-06-01 10:27:19 +0200
209
8
  Processing by TexController#example as PDF
210
- Rendered tex/example.pdf.tex (929.4ms)
211
- Completed 200 OK in 937ms (Views: 936.6ms)
9
+ Rendered tex/example.pdf.tex (1739.8ms)
10
+ Completed 200 OK in 1749ms (Views: 1748.8ms)
212
11
  ---------------------------------------------------------
213
12
  RenderingTest: test_Generate_PDF_using_escaped_characters
214
13
  ---------------------------------------------------------
215
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:39:09 +0200
14
+ Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-06-01 10:27:20 +0200
216
15
  Processing by TexController#example2 as PDF
217
- Rendered tex/example2.pdf.tex (939.0ms)
218
- Completed 200 OK in 941ms (Views: 940.9ms)
219
- -------------------------------------------------------------
220
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
221
- -------------------------------------------------------------
16
+ Rendered tex/example2.pdf.tex (1780.4ms)
17
+ Completed 200 OK in 1783ms (Views: 1782.5ms)
222
18
  -----------------------------------------------------------
223
19
  RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
224
20
  -----------------------------------------------------------
225
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:39:22 +0200
21
+ Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-06-01 14:00:52 +0200
226
22
  Processing by TexController#example as PDF
227
- Rendered tex/example.pdf.tex (2881.1ms)
228
- Completed 200 OK in 2889ms (Views: 2888.7ms)
23
+ Rendered tex/example.pdf.tex (2201.3ms)
24
+ Completed 200 OK in 2211ms (Views: 2211.2ms)
229
25
  ---------------------------------------------------------
230
26
  RenderingTest: test_Generate_PDF_using_escaped_characters
231
27
  ---------------------------------------------------------
232
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:39:25 +0200
28
+ Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-06-01 14:00:55 +0200
233
29
  Processing by TexController#example2 as PDF
234
- Rendered tex/example2.pdf.tex (2736.1ms)
235
- Completed 200 OK in 2738ms (Views: 2738.3ms)
30
+ Rendered tex/example2.pdf.tex (1826.4ms)
31
+ Completed 200 OK in 1829ms (Views: 1828.4ms)
236
32
  -------------------------------------------------------------
237
33
  ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
238
34
  -------------------------------------------------------------
239
35
  ---------------------------------------------------------
240
36
  RenderingTest: test_Generate_PDF_using_escaped_characters
241
37
  ---------------------------------------------------------
242
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:40:01 +0200
38
+ Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-06-01 14:02:59 +0200
243
39
  Processing by TexController#example2 as PDF
244
- Rendered tex/example2.pdf.tex (2792.3ms)
245
- Completed 200 OK in 2800ms (Views: 2800.2ms)
40
+ Rendered tex/example2.pdf.tex (3645.1ms)
41
+ Completed 200 OK in 3655ms (Views: 3654.3ms)
246
42
  -----------------------------------------------------------
247
43
  RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
248
44
  -----------------------------------------------------------
249
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:40:04 +0200
45
+ Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-06-01 14:03:03 +0200
250
46
  Processing by TexController#example as PDF
251
- Rendered tex/example.pdf.tex (2715.8ms)
252
- Completed 200 OK in 2718ms (Views: 2717.7ms)
47
+ Rendered tex/example.pdf.tex (3722.1ms)
48
+ Completed 200 OK in 3724ms (Views: 3723.7ms)
253
49
  -------------------------------------------------------------
254
50
  ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
255
51
  -------------------------------------------------------------
256
- ---------------------------------------------------------
257
- RenderingTest: test_Generate_PDF_using_escaped_characters
258
- ---------------------------------------------------------
259
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:40:30 +0200
260
- Processing by TexController#example2 as PDF
261
- Rendered tex/example2.pdf.tex (2740.6ms)
262
- Completed 200 OK in 2748ms (Views: 2747.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-05-30 18:40:33 +0200
267
- Processing by TexController#example as PDF
268
- Rendered tex/example.pdf.tex (2776.9ms)
269
- Completed 200 OK in 2779ms (Views: 2778.9ms)
270
52
  -------------------------------------------------------------
271
53
  ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
272
54
  -------------------------------------------------------------
273
55
  -----------------------------------------------------------
274
56
  RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
275
57
  -----------------------------------------------------------
276
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:40:54 +0200
58
+ Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-06-01 14:03:52 +0200
277
59
  Processing by TexController#example as PDF
278
- Rendered tex/example.pdf.tex (2730.4ms)
279
- Completed 200 OK in 2740ms (Views: 2739.8ms)
60
+ Rendered tex/example.pdf.tex (3927.3ms)
61
+ Completed 200 OK in 3938ms (Views: 3937.4ms)
280
62
  ---------------------------------------------------------
281
63
  RenderingTest: test_Generate_PDF_using_escaped_characters
282
64
  ---------------------------------------------------------
283
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:40:56 +0200
65
+ Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-06-01 14:03:55 +0200
284
66
  Processing by TexController#example2 as PDF
285
- Rendered tex/example2.pdf.tex (2749.1ms)
286
- Completed 200 OK in 2751ms (Views: 2751.2ms)
287
- -------------------------------------------------------------
288
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
289
- -------------------------------------------------------------
290
- -------------------------------------------------------------
291
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
292
- -------------------------------------------------------------
293
- ---------------------------------------------------------
294
- RenderingTest: test_Generate_PDF_using_escaped_characters
295
- ---------------------------------------------------------
296
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:41:42 +0200
297
- Processing by TexController#example2 as PDF
298
- Rendered tex/example2.pdf.tex (929.4ms)
299
- Completed 200 OK in 937ms (Views: 936.8ms)
300
- -----------------------------------------------------------
301
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
302
- -----------------------------------------------------------
303
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:41:43 +0200
304
- Processing by TexController#example as PDF
305
- Rendered tex/example.pdf.tex (913.1ms)
306
- Completed 200 OK in 915ms (Views: 914.9ms)
307
- -----------------------------------------------------------
308
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
309
- -----------------------------------------------------------
310
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:41:50 +0200
311
- Processing by TexController#example as PDF
312
- Rendered tex/example.pdf.tex (934.6ms)
313
- Completed 200 OK in 943ms (Views: 942.6ms)
314
- ---------------------------------------------------------
315
- RenderingTest: test_Generate_PDF_using_escaped_characters
316
- ---------------------------------------------------------
317
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:41:51 +0200
318
- Processing by TexController#example2 as PDF
319
- Rendered tex/example2.pdf.tex (921.4ms)
320
- Completed 200 OK in 924ms (Views: 923.7ms)
321
- -------------------------------------------------------------
322
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
323
- -------------------------------------------------------------
324
- -----------------------------------------------------------
325
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
326
- -----------------------------------------------------------
327
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 18:47:01 +0200
328
- Processing by TexController#example as PDF
329
- Rendered tex/example.pdf.tex (1094.4ms)
330
- Completed 200 OK in 1102ms (Views: 1101.7ms)
331
- ---------------------------------------------------------
332
- RenderingTest: test_Generate_PDF_using_escaped_characters
333
- ---------------------------------------------------------
334
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 18:47:02 +0200
335
- Processing by TexController#example2 as PDF
336
- Rendered tex/example2.pdf.tex (933.3ms)
337
- Completed 200 OK in 935ms (Views: 935.1ms)
338
- -------------------------------------------------------------
339
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
340
- -------------------------------------------------------------
341
- ---------------------------------------------------------
342
- RenderingTest: test_Generate_PDF_using_escaped_characters
343
- ---------------------------------------------------------
344
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 20:13:38 +0200
345
- Processing by TexController#example2 as PDF
346
- Rendered tex/example2.pdf.tex (958.3ms)
347
- Completed 200 OK in 966ms (Views: 965.6ms)
348
- -----------------------------------------------------------
349
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
350
- -----------------------------------------------------------
351
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 20:13:39 +0200
352
- Processing by TexController#example as PDF
353
- Rendered tex/example.pdf.tex (936.9ms)
354
- Completed 200 OK in 940ms (Views: 939.7ms)
355
- -------------------------------------------------------------
356
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
357
- -------------------------------------------------------------
358
- -------------------------------------------------------------
359
- ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
360
- -------------------------------------------------------------
361
- ---------------------------------------------------------
362
- RenderingTest: test_Generate_PDF_using_escaped_characters
363
- ---------------------------------------------------------
364
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 20:17:32 +0200
365
- Processing by TexController#example2 as PDF
366
- Rendered tex/example2.pdf.tex (2714.3ms)
367
- Completed 200 OK in 2721ms (Views: 2721.1ms)
368
- -----------------------------------------------------------
369
- RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
370
- -----------------------------------------------------------
371
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 20:17:35 +0200
372
- Processing by TexController#example as PDF
373
- Rendered tex/example.pdf.tex (2826.5ms)
374
- Completed 200 OK in 2829ms (Views: 2828.5ms)
67
+ Rendered tex/example2.pdf.tex (3622.0ms)
68
+ Completed 200 OK in 3624ms (Views: 3624.0ms)
375
69
  -------------------------------------------------------------
376
70
  ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
377
71
  -------------------------------------------------------------
378
72
  -----------------------------------------------------------
379
73
  RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
380
74
  -----------------------------------------------------------
381
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 20:33:04 +0200
75
+ Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-06-01 14:26:36 +0200
382
76
  Processing by TexController#example as PDF
383
- Rendered tex/example.pdf.tex (1096.3ms)
384
- Completed 200 OK in 1104ms (Views: 1103.8ms)
77
+ Rendered tex/example.pdf.tex (3698.1ms)
78
+ Completed 200 OK in 3707ms (Views: 3706.9ms)
385
79
  ---------------------------------------------------------
386
80
  RenderingTest: test_Generate_PDF_using_escaped_characters
387
81
  ---------------------------------------------------------
388
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 20:33:06 +0200
82
+ Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-06-01 14:26:40 +0200
389
83
  Processing by TexController#example2 as PDF
390
- Rendered tex/example2.pdf.tex (929.5ms)
391
- Completed 200 OK in 931ms (Views: 931.2ms)
84
+ Rendered tex/example2.pdf.tex (4082.0ms)
85
+ Completed 200 OK in 4085ms (Views: 4085.0ms)
392
86
  -----------------------------------------------------------
393
87
  RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
394
88
  -----------------------------------------------------------
395
- Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-05-30 20:35:08 +0200
89
+ Started GET "/tex/example.pdf" for 127.0.0.1 at 2016-06-01 14:27:00 +0200
396
90
  Processing by TexController#example as PDF
397
- Rendered tex/example.pdf.tex (2700.8ms)
398
- Completed 200 OK in 2710ms (Views: 2710.0ms)
91
+ Rendered tex/example.pdf.tex (1223.5ms)
92
+ Completed 200 OK in 1232ms (Views: 1231.3ms)
399
93
  ---------------------------------------------------------
400
94
  RenderingTest: test_Generate_PDF_using_escaped_characters
401
95
  ---------------------------------------------------------
402
- Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-05-30 20:35:11 +0200
96
+ Started GET "/tex/example2.pdf" for 127.0.0.1 at 2016-06-01 14:27:01 +0200
403
97
  Processing by TexController#example2 as PDF
404
- Rendered tex/example2.pdf.tex (2698.0ms)
405
- Completed 200 OK in 2700ms (Views: 2699.9ms)
98
+ Rendered tex/example2.pdf.tex (1201.5ms)
99
+ Completed 200 OK in 1203ms (Views: 1202.9ms)
406
100
  -------------------------------------------------------------
407
101
  ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
408
102
  -------------------------------------------------------------
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TT
@@ -0,0 +1 @@
1
+ "%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=93902ba9be958ea697873edae159cdc470211bd8c2b939ae303aba14e18bf150:ET
@@ -0,0 +1 @@
1
+ "%Ѱč@�����6H�uZoX�Z�gbh0W��V
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"9file-digest://app/assets/stylesheets/application.css;TTI")file-digest://app/assets/stylesheets;TT
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=c87c9ccdd07de9828f7f7d5aa23764f1cfc554f22e682fb7d6ce41e5c0e0b956:ET
@@ -0,0 +1 @@
1
+ "%�W\�yho9S���ƫ˥��)|�~���(���
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=06b90b83bbaac1dfd68de9c50878994eea7a69a94d0b122e6b8d4e9d6cc66f94:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=98cd4cc444a449286875aa32504b1eb7c21f3f00d75d45943262079070f2c6ef:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"8file-digest://app/assets/javascripts/application.js;TTI")file-digest://app/assets/javascripts;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI")file-digest://app/assets/javascripts;TT
@@ -36,9 +36,9 @@ module Latexpdf
36
36
  config.passes = 3
37
37
  end
38
38
 
39
- subject.expects(:run_tex).with({generate_pdf: true}).twice
40
- subject.expects(:run_tex).with({generate_pdf: false}).once
39
+ subject.expects(:run_tex).times(3)
41
40
 
41
+ #since run_tex is mocked, an error occurs
42
42
  e = assert_raises LatexpdfError do
43
43
  subject.generate
44
44
  end
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
4
+ version: 0.4.5
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-05-30 00:00:00.000000000 Z
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -182,6 +182,22 @@ files:
182
182
  - test/dummy/public/422.html
183
183
  - test/dummy/public/500.html
184
184
  - test/dummy/public/favicon.ico
185
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
186
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Al/Al8B-MlRXLmvveOkSiQtTH7Mnx87ww6TKPPkXQkDCfA.cache
187
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/El/Elvl8FhrIcCHSvOVJ4mlw98G_x77dIhDO7ncklgb9o8.cache
188
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Eo/EoGXUuweaJggMJEhq_PIGuHGezpQHVeyR5Tnle6g0Zk.cache
189
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvDM1j8-H1H6kEjVCsyIW8N2zla-aIp9q_OE9PVZtVw.cache
190
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/OH/OHv3xxmOjKcBMS0Y_yTmyfrhpGoi7AbGMBAcCFsH1vg.cache
191
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
192
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Ol/OlBX9JIv9SAOmK2t35x1SYDx1sxCXF0yvqpna3WMyH0.cache
193
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/TG/TGzz_qJLZNCMGy25pS4Lm-8Vj71mxCyy5TNmGoF9mUk.cache
194
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Yr/YrZ0OIHu42cExs1kqngMA6ShVDKhfGmhyW-E9haNo5Y.cache
195
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpiWtnqpufka8lRtMznM6Ko0aWJrcH_j8cfZwdYmzNI.cache
196
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
197
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/jo/jozGBeLU1Q4eVAsw_A_nyY994iqcnwgTZWiFbVsYmBs.cache
198
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
199
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sU/sU_vk26h2xIJpI3d-zhVgF2iTwOCAFk7zHPYuvqWNk0.cache
200
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sp/sp2aS0gBrj1ZVPgX0e8j11TaSSz3qpMGjtFv6soZ0KM.cache
185
201
  - test/integration/config_test.rb
186
202
  - test/integration/rendering_test.rb
187
203
  - test/latexpdf/configuration_test.rb
@@ -220,8 +236,6 @@ signing_key:
220
236
  specification_version: 4
221
237
  summary: A Tex template to PDF generator
222
238
  test_files:
223
- - test/dummy/README.rdoc
224
- - test/dummy/Rakefile
225
239
  - test/dummy/app/assets/javascripts/application.js
226
240
  - test/dummy/app/assets/stylesheets/application.css
227
241
  - test/dummy/app/controllers/application_controller.rb
@@ -259,6 +273,24 @@ test_files:
259
273
  - test/dummy/public/422.html
260
274
  - test/dummy/public/500.html
261
275
  - test/dummy/public/favicon.ico
276
+ - test/dummy/Rakefile
277
+ - test/dummy/README.rdoc
278
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
279
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Al/Al8B-MlRXLmvveOkSiQtTH7Mnx87ww6TKPPkXQkDCfA.cache
280
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/El/Elvl8FhrIcCHSvOVJ4mlw98G_x77dIhDO7ncklgb9o8.cache
281
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Eo/EoGXUuweaJggMJEhq_PIGuHGezpQHVeyR5Tnle6g0Zk.cache
282
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpiWtnqpufka8lRtMznM6Ko0aWJrcH_j8cfZwdYmzNI.cache
283
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
284
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvDM1j8-H1H6kEjVCsyIW8N2zla-aIp9q_OE9PVZtVw.cache
285
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/jo/jozGBeLU1Q4eVAsw_A_nyY994iqcnwgTZWiFbVsYmBs.cache
286
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/OH/OHv3xxmOjKcBMS0Y_yTmyfrhpGoi7AbGMBAcCFsH1vg.cache
287
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
288
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Ol/OlBX9JIv9SAOmK2t35x1SYDx1sxCXF0yvqpna3WMyH0.cache
289
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
290
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sp/sp2aS0gBrj1ZVPgX0e8j11TaSSz3qpMGjtFv6soZ0KM.cache
291
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sU/sU_vk26h2xIJpI3d-zhVgF2iTwOCAFk7zHPYuvqWNk0.cache
292
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/TG/TGzz_qJLZNCMGy25pS4Lm-8Vj71mxCyy5TNmGoF9mUk.cache
293
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Yr/YrZ0OIHu42cExs1kqngMA6ShVDKhfGmhyW-E9haNo5Y.cache
262
294
  - test/integration/config_test.rb
263
295
  - test/integration/rendering_test.rb
264
296
  - test/latexpdf/configuration_test.rb