latexpdf 0.5.1 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/latexpdf/railtie.rb +1 -3
- data/lib/latexpdf/version.rb +1 -1
- data/test/dummy/Rakefile +1 -1
- data/test/dummy/app/assets/config/manifest.js +1 -0
- data/test/dummy/app/assets/stylesheets/application.css +2 -2
- data/test/dummy/app/controllers/tex_controller.rb +2 -2
- data/test/dummy/app/views/layouts/application.html.erb +2 -1
- data/test/dummy/bin/rails +3 -3
- data/test/dummy/bin/rake +2 -2
- data/test/dummy/bin/setup +18 -10
- data/test/dummy/config/application.rb +21 -22
- data/test/dummy/config/boot.rb +3 -3
- data/test/dummy/config/environment.rb +1 -1
- data/test/dummy/config/environments/development.rb +44 -9
- data/test/dummy/config/environments/production.rb +59 -51
- data/test/dummy/config/environments/test.rb +36 -10
- data/test/dummy/config/initializers/content_security_policy.rb +21 -24
- data/test/dummy/config/initializers/filter_parameter_logging.rb +6 -2
- data/test/dummy/config/initializers/inflections.rb +4 -4
- data/test/dummy/config/locales/en.yml +13 -15
- data/test/dummy/config.ru +2 -1
- data/test/dummy/log/test.log +132 -69
- data/test/dummy/tmp/local_secret.txt +1 -0
- data/test/latexpdf/configuration_test.rb +2 -2
- data/test/latexpdf/escaper_test.rb +1 -1
- metadata +56 -59
- data/test/dummy/README.md +0 -24
- data/test/dummy/config/credentials.yml.enc +0 -1
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -5
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -9
- data/test/dummy/config/spring.rb +0 -6
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/public/robots.txt +0 -1
- data/test/dummy/tmp/development_secret.txt +0 -1
@@ -1,14 +1,14 @@
|
|
1
|
-
# Files in the config/locales directory are used for internationalization
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Files in the config/locales directory are used for internationalization and
|
2
|
+
# are automatically loaded by Rails. If you want to use locales other than
|
3
|
+
# English, add the necessary files in this directory.
|
4
4
|
#
|
5
5
|
# To use the locales, use `I18n.t`:
|
6
6
|
#
|
7
|
-
# I18n.t
|
7
|
+
# I18n.t "hello"
|
8
8
|
#
|
9
9
|
# In views, this is aliased to just `t`:
|
10
10
|
#
|
11
|
-
# <%= t(
|
11
|
+
# <%= t("hello") %>
|
12
12
|
#
|
13
13
|
# To use a different locale, set it with `I18n.locale`:
|
14
14
|
#
|
@@ -16,18 +16,16 @@
|
|
16
16
|
#
|
17
17
|
# This would use the information in config/locales/es.yml.
|
18
18
|
#
|
19
|
-
#
|
20
|
-
#
|
19
|
+
# To learn more about the API, please read the Rails Internationalization guide
|
20
|
+
# at https://guides.rubyonrails.org/i18n.html.
|
21
21
|
#
|
22
|
-
#
|
22
|
+
# Be aware that YAML interprets the following case-insensitive strings as
|
23
|
+
# booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings
|
24
|
+
# must be quoted to be interpreted as strings. For example:
|
23
25
|
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
27
|
-
# 'true': 'foo'
|
28
|
-
#
|
29
|
-
# To learn more, please read the Rails Internationalization guide
|
30
|
-
# available at https://guides.rubyonrails.org/i18n.html.
|
26
|
+
# en:
|
27
|
+
# "yes": yup
|
28
|
+
# enabled: "ON"
|
31
29
|
|
32
30
|
en:
|
33
31
|
hello: "Hello world"
|
data/test/dummy/config.ru
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -1,153 +1,216 @@
|
|
1
|
+
-------------------------------------------------------------
|
2
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
3
|
+
-------------------------------------------------------------
|
4
|
+
---------------------------------------------------------------
|
5
|
+
RenderingTest: test_Generate_PDF_using_non_printable_characters
|
6
|
+
---------------------------------------------------------------
|
7
|
+
Started GET "/tex/example3.pdf" for 127.0.0.1 at 2024-02-11 16:52:31 +0100
|
8
|
+
Processing by TexController#example3 as PDF
|
9
|
+
Rendering tex/example3.pdf.tex
|
10
|
+
Rendered tex/example3.pdf.tex (Duration: 1856.1ms | Allocations: 1023)
|
11
|
+
Completed 200 OK in 1858ms (Views: 1857.5ms | Allocations: 3215)
|
12
|
+
---------------------------------------------------------
|
13
|
+
RenderingTest: test_Generate_PDF_using_escaped_characters
|
14
|
+
---------------------------------------------------------
|
15
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2024-02-11 16:52:33 +0100
|
16
|
+
Processing by TexController#example2 as PDF
|
17
|
+
Rendering tex/example2.pdf.tex
|
18
|
+
Rendered tex/example2.pdf.tex (Duration: 1857.4ms | Allocations: 760)
|
19
|
+
Completed 200 OK in 1858ms (Views: 1857.8ms | Allocations: 970)
|
1
20
|
-----------------------------------------------------------
|
2
21
|
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
3
22
|
-----------------------------------------------------------
|
4
|
-
Started GET "/tex/example.pdf" for 127.0.0.1 at
|
23
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2024-02-11 16:52:35 +0100
|
5
24
|
Processing by TexController#example as PDF
|
6
25
|
Rendering tex/example.pdf.tex
|
7
|
-
Rendered tex/example.pdf.tex (Duration:
|
8
|
-
Completed
|
26
|
+
Rendered tex/example.pdf.tex (Duration: 1840.1ms | Allocations: 704)
|
27
|
+
Completed 200 OK in 1841ms (Views: 1840.5ms | Allocations: 959)
|
9
28
|
---------------------------------------------------------------
|
10
29
|
RenderingTest: test_Generate_PDF_using_non_printable_characters
|
11
30
|
---------------------------------------------------------------
|
12
|
-
Started GET "/tex/example3.pdf" for 127.0.0.1 at
|
31
|
+
Started GET "/tex/example3.pdf" for 127.0.0.1 at 2024-02-11 16:52:48 +0100
|
13
32
|
Processing by TexController#example3 as PDF
|
14
33
|
Rendering tex/example3.pdf.tex
|
15
|
-
Rendered tex/example3.pdf.tex (Duration:
|
16
|
-
Completed
|
34
|
+
Rendered tex/example3.pdf.tex (Duration: 754.5ms | Allocations: 850)
|
35
|
+
Completed 200 OK in 756ms (Views: 756.0ms | Allocations: 3042)
|
36
|
+
-----------------------------------------------------------
|
37
|
+
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
38
|
+
-----------------------------------------------------------
|
39
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2024-02-11 16:52:49 +0100
|
40
|
+
Processing by TexController#example as PDF
|
41
|
+
Rendering tex/example.pdf.tex
|
42
|
+
Rendered tex/example.pdf.tex (Duration: 772.3ms | Allocations: 520)
|
43
|
+
Completed 200 OK in 773ms (Views: 772.7ms | Allocations: 780)
|
17
44
|
---------------------------------------------------------
|
18
45
|
RenderingTest: test_Generate_PDF_using_escaped_characters
|
19
46
|
---------------------------------------------------------
|
20
|
-
Started GET "/tex/example2.pdf" for 127.0.0.1 at
|
47
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2024-02-11 16:52:50 +0100
|
21
48
|
Processing by TexController#example2 as PDF
|
22
49
|
Rendering tex/example2.pdf.tex
|
23
|
-
Rendered tex/example2.pdf.tex (Duration:
|
24
|
-
Completed
|
50
|
+
Rendered tex/example2.pdf.tex (Duration: 740.8ms | Allocations: 577)
|
51
|
+
Completed 200 OK in 741ms (Views: 741.2ms | Allocations: 780)
|
52
|
+
-------------------------------------------------------------
|
53
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
54
|
+
-------------------------------------------------------------
|
25
55
|
-------------------------------------------------------------
|
26
56
|
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
27
57
|
-------------------------------------------------------------
|
58
|
+
---------------------------------------------------------------
|
59
|
+
RenderingTest: test_Generate_PDF_using_non_printable_characters
|
60
|
+
---------------------------------------------------------------
|
61
|
+
Started GET "/tex/example3.pdf" for 127.0.0.1 at 2024-02-11 16:53:04 +0100
|
62
|
+
Processing by TexController#example3 as PDF
|
63
|
+
Rendering tex/example3.pdf.tex
|
64
|
+
Rendered tex/example3.pdf.tex (Duration: 1109.9ms | Allocations: 835)
|
65
|
+
Completed 200 OK in 1111ms (Views: 1111.4ms | Allocations: 3026)
|
66
|
+
---------------------------------------------------------
|
67
|
+
RenderingTest: test_Generate_PDF_using_escaped_characters
|
68
|
+
---------------------------------------------------------
|
69
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2024-02-11 16:53:06 +0100
|
70
|
+
Processing by TexController#example2 as PDF
|
71
|
+
Rendering tex/example2.pdf.tex
|
72
|
+
Rendered tex/example2.pdf.tex (Duration: 1113.7ms | Allocations: 639)
|
73
|
+
Completed 200 OK in 1114ms (Views: 1114.1ms | Allocations: 851)
|
28
74
|
-----------------------------------------------------------
|
29
75
|
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
30
76
|
-----------------------------------------------------------
|
31
|
-
Started GET "/tex/example.pdf" for 127.0.0.1 at
|
77
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2024-02-11 16:53:07 +0100
|
32
78
|
Processing by TexController#example as PDF
|
33
79
|
Rendering tex/example.pdf.tex
|
34
|
-
Rendered tex/example.pdf.tex (Duration:
|
35
|
-
Completed
|
80
|
+
Rendered tex/example.pdf.tex (Duration: 1105.5ms | Allocations: 581)
|
81
|
+
Completed 200 OK in 1106ms (Views: 1105.9ms | Allocations: 835)
|
36
82
|
---------------------------------------------------------
|
37
83
|
RenderingTest: test_Generate_PDF_using_escaped_characters
|
38
84
|
---------------------------------------------------------
|
39
|
-
Started GET "/tex/example2.pdf" for 127.0.0.1 at
|
85
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2024-02-11 16:53:20 +0100
|
40
86
|
Processing by TexController#example2 as PDF
|
41
87
|
Rendering tex/example2.pdf.tex
|
42
|
-
Rendered tex/example2.pdf.tex (Duration:
|
43
|
-
Completed
|
44
|
-
|
45
|
-
RenderingTest:
|
46
|
-
|
47
|
-
Started GET "/tex/
|
48
|
-
Processing by TexController#
|
49
|
-
Rendering tex/
|
50
|
-
Rendered tex/
|
51
|
-
Completed
|
88
|
+
Rendered tex/example2.pdf.tex (Duration: 1121.2ms | Allocations: 767)
|
89
|
+
Completed 200 OK in 1125ms (Views: 1124.6ms | Allocations: 5619)
|
90
|
+
-----------------------------------------------------------
|
91
|
+
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
92
|
+
-----------------------------------------------------------
|
93
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2024-02-11 16:53:21 +0100
|
94
|
+
Processing by TexController#example as PDF
|
95
|
+
Rendering tex/example.pdf.tex
|
96
|
+
Rendered tex/example.pdf.tex (Duration: 1117.8ms | Allocations: 581)
|
97
|
+
Completed 200 OK in 1118ms (Views: 1118.3ms | Allocations: 839)
|
52
98
|
---------------------------------------------------------------
|
53
99
|
RenderingTest: test_Generate_PDF_using_non_printable_characters
|
54
100
|
---------------------------------------------------------------
|
55
|
-
Started GET "/tex/example3.pdf" for 127.0.0.1 at
|
101
|
+
Started GET "/tex/example3.pdf" for 127.0.0.1 at 2024-02-11 16:53:22 +0100
|
56
102
|
Processing by TexController#example3 as PDF
|
57
103
|
Rendering tex/example3.pdf.tex
|
58
|
-
Rendered tex/example3.pdf.tex (Duration:
|
59
|
-
Completed
|
104
|
+
Rendered tex/example3.pdf.tex (Duration: 1112.6ms | Allocations: 694)
|
105
|
+
Completed 200 OK in 1113ms (Views: 1112.8ms | Allocations: 856)
|
106
|
+
-------------------------------------------------------------
|
107
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
108
|
+
-------------------------------------------------------------
|
60
109
|
---------------------------------------------------------
|
61
110
|
RenderingTest: test_Generate_PDF_using_escaped_characters
|
62
111
|
---------------------------------------------------------
|
63
|
-
Started GET "/tex/example2.pdf" for 127.0.0.1 at
|
112
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2024-02-11 16:53:44 +0100
|
64
113
|
Processing by TexController#example2 as PDF
|
65
114
|
Rendering tex/example2.pdf.tex
|
66
|
-
Rendered tex/example2.pdf.tex (Duration:
|
67
|
-
Completed
|
115
|
+
Rendered tex/example2.pdf.tex (Duration: 1111.0ms | Allocations: 780)
|
116
|
+
Completed 200 OK in 1115ms (Views: 1114.7ms | Allocations: 5630)
|
68
117
|
-----------------------------------------------------------
|
69
118
|
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
70
119
|
-----------------------------------------------------------
|
71
|
-
Started GET "/tex/example.pdf" for 127.0.0.1 at
|
120
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2024-02-11 16:53:45 +0100
|
72
121
|
Processing by TexController#example as PDF
|
73
122
|
Rendering tex/example.pdf.tex
|
74
|
-
Rendered tex/example.pdf.tex (Duration:
|
75
|
-
Completed 200 OK in
|
123
|
+
Rendered tex/example.pdf.tex (Duration: 1111.9ms | Allocations: 581)
|
124
|
+
Completed 200 OK in 1112ms (Views: 1112.3ms | Allocations: 839)
|
125
|
+
---------------------------------------------------------------
|
126
|
+
RenderingTest: test_Generate_PDF_using_non_printable_characters
|
127
|
+
---------------------------------------------------------------
|
128
|
+
Started GET "/tex/example3.pdf" for 127.0.0.1 at 2024-02-11 16:53:46 +0100
|
129
|
+
Processing by TexController#example3 as PDF
|
130
|
+
Rendering tex/example3.pdf.tex
|
131
|
+
Rendered tex/example3.pdf.tex (Duration: 1120.8ms | Allocations: 693)
|
132
|
+
Completed 200 OK in 1121ms (Views: 1121.0ms | Allocations: 853)
|
133
|
+
-------------------------------------------------------------
|
134
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
135
|
+
-------------------------------------------------------------
|
136
|
+
-------------------------------------------------------------
|
137
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
138
|
+
-------------------------------------------------------------
|
139
|
+
---------------------------------------------------------------
|
140
|
+
RenderingTest: test_Generate_PDF_using_non_printable_characters
|
141
|
+
---------------------------------------------------------------
|
142
|
+
Started GET "/tex/example3.pdf" for 127.0.0.1 at 2024-02-11 16:56:29 +0100
|
143
|
+
Processing by TexController#example3 as PDF
|
144
|
+
Rendering tex/example3.pdf.tex
|
145
|
+
Rendered tex/example3.pdf.tex (Duration: 1108.7ms | Allocations: 823)
|
146
|
+
Completed 200 OK in 1110ms (Views: 1110.3ms | Allocations: 3014)
|
76
147
|
-----------------------------------------------------------
|
77
148
|
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
78
149
|
-----------------------------------------------------------
|
79
|
-
Started GET "/tex/example.pdf" for 127.0.0.1 at
|
150
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2024-02-11 16:56:30 +0100
|
80
151
|
Processing by TexController#example as PDF
|
81
152
|
Rendering tex/example.pdf.tex
|
82
|
-
Rendered tex/example.pdf.tex (Duration:
|
83
|
-
Completed 200 OK in
|
153
|
+
Rendered tex/example.pdf.tex (Duration: 1117.7ms | Allocations: 582)
|
154
|
+
Completed 200 OK in 1118ms (Views: 1118.1ms | Allocations: 844)
|
84
155
|
---------------------------------------------------------
|
85
156
|
RenderingTest: test_Generate_PDF_using_escaped_characters
|
86
157
|
---------------------------------------------------------
|
87
|
-
Started GET "/tex/example2.pdf" for 127.0.0.1 at
|
158
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2024-02-11 16:56:31 +0100
|
88
159
|
Processing by TexController#example2 as PDF
|
89
160
|
Rendering tex/example2.pdf.tex
|
90
|
-
Rendered tex/example2.pdf.tex (Duration:
|
91
|
-
Completed 200 OK in
|
92
|
-
---------------------------------------------------------------
|
93
|
-
RenderingTest: test_Generate_PDF_using_non_printable_characters
|
94
|
-
---------------------------------------------------------------
|
95
|
-
Started GET "/tex/example3.pdf" for 127.0.0.1 at 2019-11-26 12:02:34 +0100
|
96
|
-
Processing by TexController#example3 as PDF
|
97
|
-
Rendering tex/example3.pdf.tex
|
98
|
-
Rendered tex/example3.pdf.tex (Duration: 1197.2ms | Allocations: 741)
|
99
|
-
Completed 200 OK in 1198ms (Views: 1197.7ms | Allocations: 1076)
|
161
|
+
Rendered tex/example2.pdf.tex (Duration: 1105.6ms | Allocations: 637)
|
162
|
+
Completed 200 OK in 1106ms (Views: 1106.0ms | Allocations: 841)
|
100
163
|
-----------------------------------------------------------
|
101
164
|
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
102
165
|
-----------------------------------------------------------
|
103
|
-
Started GET "/tex/example.pdf" for 127.0.0.1 at
|
166
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2024-02-11 16:57:44 +0100
|
104
167
|
Processing by TexController#example as PDF
|
105
168
|
Rendering tex/example.pdf.tex
|
106
|
-
Rendered tex/example.pdf.tex (Duration:
|
107
|
-
Completed 200 OK in
|
169
|
+
Rendered tex/example.pdf.tex (Duration: 1847.9ms | Allocations: 904)
|
170
|
+
Completed 200 OK in 1852ms (Views: 1851.5ms | Allocations: 5810)
|
108
171
|
---------------------------------------------------------
|
109
172
|
RenderingTest: test_Generate_PDF_using_escaped_characters
|
110
173
|
---------------------------------------------------------
|
111
|
-
Started GET "/tex/example2.pdf" for 127.0.0.1 at
|
174
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2024-02-11 16:57:46 +0100
|
112
175
|
Processing by TexController#example2 as PDF
|
113
176
|
Rendering tex/example2.pdf.tex
|
114
|
-
Rendered tex/example2.pdf.tex (Duration:
|
115
|
-
Completed 200 OK in
|
177
|
+
Rendered tex/example2.pdf.tex (Duration: 1878.3ms | Allocations: 775)
|
178
|
+
Completed 200 OK in 1879ms (Views: 1878.7ms | Allocations: 983)
|
116
179
|
---------------------------------------------------------------
|
117
180
|
RenderingTest: test_Generate_PDF_using_non_printable_characters
|
118
181
|
---------------------------------------------------------------
|
119
|
-
Started GET "/tex/example3.pdf" for 127.0.0.1 at
|
182
|
+
Started GET "/tex/example3.pdf" for 127.0.0.1 at 2024-02-11 16:57:48 +0100
|
120
183
|
Processing by TexController#example3 as PDF
|
121
184
|
Rendering tex/example3.pdf.tex
|
122
|
-
Rendered tex/example3.pdf.tex (Duration:
|
123
|
-
Completed 200 OK in
|
185
|
+
Rendered tex/example3.pdf.tex (Duration: 1852.7ms | Allocations: 815)
|
186
|
+
Completed 200 OK in 1853ms (Views: 1852.9ms | Allocations: 975)
|
124
187
|
-------------------------------------------------------------
|
125
188
|
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
126
189
|
-------------------------------------------------------------
|
127
|
-
---------------------------------------------------------
|
128
|
-
RenderingTest: test_Generate_PDF_using_escaped_characters
|
129
|
-
---------------------------------------------------------
|
130
|
-
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2019-11-26 12:03:52 +0100
|
131
|
-
Processing by TexController#example2 as PDF
|
132
|
-
Rendering tex/example2.pdf.tex
|
133
|
-
Rendered tex/example2.pdf.tex (Duration: 2897.7ms | Allocations: 1175)
|
134
|
-
Completed 200 OK in 2901ms (Views: 2900.9ms | Allocations: 3107)
|
135
190
|
---------------------------------------------------------------
|
136
191
|
RenderingTest: test_Generate_PDF_using_non_printable_characters
|
137
192
|
---------------------------------------------------------------
|
138
|
-
Started GET "/tex/example3.pdf" for 127.0.0.1 at
|
193
|
+
Started GET "/tex/example3.pdf" for 127.0.0.1 at 2024-02-12 10:00:11 +0100
|
139
194
|
Processing by TexController#example3 as PDF
|
140
195
|
Rendering tex/example3.pdf.tex
|
141
|
-
Rendered tex/example3.pdf.tex (Duration:
|
142
|
-
Completed 200 OK in
|
196
|
+
Rendered tex/example3.pdf.tex (Duration: 816.6ms | Allocations: 850)
|
197
|
+
Completed 200 OK in 818ms (Views: 818.3ms | Allocations: 3042)
|
198
|
+
---------------------------------------------------------
|
199
|
+
RenderingTest: test_Generate_PDF_using_escaped_characters
|
200
|
+
---------------------------------------------------------
|
201
|
+
Started GET "/tex/example2.pdf" for 127.0.0.1 at 2024-02-12 10:00:12 +0100
|
202
|
+
Processing by TexController#example2 as PDF
|
203
|
+
Rendering tex/example2.pdf.tex
|
204
|
+
Rendered tex/example2.pdf.tex (Duration: 751.9ms | Allocations: 577)
|
205
|
+
Completed 200 OK in 753ms (Views: 752.6ms | Allocations: 787)
|
143
206
|
-----------------------------------------------------------
|
144
207
|
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
145
208
|
-----------------------------------------------------------
|
146
|
-
Started GET "/tex/example.pdf" for 127.0.0.1 at
|
209
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2024-02-12 10:00:13 +0100
|
147
210
|
Processing by TexController#example as PDF
|
148
211
|
Rendering tex/example.pdf.tex
|
149
|
-
Rendered tex/example.pdf.tex (Duration:
|
150
|
-
Completed 200 OK in
|
212
|
+
Rendered tex/example.pdf.tex (Duration: 744.5ms | Allocations: 520)
|
213
|
+
Completed 200 OK in 745ms (Views: 745.1ms | Allocations: 773)
|
151
214
|
-------------------------------------------------------------
|
152
215
|
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
153
216
|
-------------------------------------------------------------
|
@@ -0,0 +1 @@
|
|
1
|
+
28bf8e16133af1ec77a3cf4ae9a13ad4a7bac3388fab79374af5a86b2fc558aaf1a045a7313bee50eb10e6ba0774f59812d1b9100cb9d930ef178e41958b5f2c
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "test_helper"
|
2
2
|
|
3
3
|
module Latexpdf
|
4
|
-
class ConfigurationTest <
|
4
|
+
class ConfigurationTest < Minitest::Test
|
5
5
|
def test_implement_passes_configuration
|
6
6
|
assert_equal 2, Configuration.new.passes
|
7
7
|
end
|
@@ -13,4 +13,4 @@ module Latexpdf
|
|
13
13
|
assert_equal "Latexpdf", config.logger.progname
|
14
14
|
end
|
15
15
|
end
|
16
|
-
end
|
16
|
+
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
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthijs Ooms
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,28 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 7.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: 7.1.3
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sprockets-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.4.2
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.4.2
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: minitest
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
47
|
+
version: 5.22.2
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
54
|
+
version: 5.22.2
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: minitest-reporters
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +72,14 @@ dependencies:
|
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
75
|
+
version: '13.1'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
82
|
+
version: '13.1'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: simplecov
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +128,14 @@ dependencies:
|
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
131
|
+
version: '2.1'
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
138
|
+
version: '2.1'
|
125
139
|
description: Latexpdf is a renderer for rails which compiles Tex files with ERB to
|
126
140
|
a PDF using xelatex by default so that it supports Unicode.
|
127
141
|
email:
|
@@ -143,7 +157,6 @@ files:
|
|
143
157
|
- lib/latexpdf/pdf_generator.rb
|
144
158
|
- lib/latexpdf/railtie.rb
|
145
159
|
- lib/latexpdf/version.rb
|
146
|
-
- test/dummy/README.md
|
147
160
|
- test/dummy/Rakefile
|
148
161
|
- test/dummy/app/assets/config/manifest.js
|
149
162
|
- test/dummy/app/assets/stylesheets/application.css
|
@@ -161,23 +174,17 @@ files:
|
|
161
174
|
- test/dummy/config.ru
|
162
175
|
- test/dummy/config/application.rb
|
163
176
|
- test/dummy/config/boot.rb
|
164
|
-
- test/dummy/config/credentials.yml.enc
|
165
177
|
- test/dummy/config/environment.rb
|
166
178
|
- test/dummy/config/environments/development.rb
|
167
179
|
- test/dummy/config/environments/production.rb
|
168
180
|
- test/dummy/config/environments/test.rb
|
169
181
|
- test/dummy/config/initializers/application_controller_renderer.rb
|
170
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
171
182
|
- test/dummy/config/initializers/content_security_policy.rb
|
172
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
173
183
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
174
184
|
- test/dummy/config/initializers/inflections.rb
|
175
185
|
- test/dummy/config/initializers/mime_types.rb
|
176
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
177
186
|
- test/dummy/config/locales/en.yml
|
178
187
|
- test/dummy/config/routes.rb
|
179
|
-
- test/dummy/config/spring.rb
|
180
|
-
- test/dummy/log/development.log
|
181
188
|
- test/dummy/log/test.log
|
182
189
|
- test/dummy/public/404.html
|
183
190
|
- test/dummy/public/422.html
|
@@ -185,8 +192,7 @@ files:
|
|
185
192
|
- test/dummy/public/apple-touch-icon-precomposed.png
|
186
193
|
- test/dummy/public/apple-touch-icon.png
|
187
194
|
- test/dummy/public/favicon.ico
|
188
|
-
- test/dummy/
|
189
|
-
- test/dummy/tmp/development_secret.txt
|
195
|
+
- test/dummy/tmp/local_secret.txt
|
190
196
|
- test/integration/config_test.rb
|
191
197
|
- test/integration/rendering_test.rb
|
192
198
|
- test/latexpdf/configuration_test.rb
|
@@ -203,7 +209,7 @@ homepage: https://github.com/mjooms/latexpdf
|
|
203
209
|
licenses:
|
204
210
|
- MIT
|
205
211
|
metadata: {}
|
206
|
-
post_install_message:
|
212
|
+
post_install_message:
|
207
213
|
rdoc_options:
|
208
214
|
- "--main=README.rdoc"
|
209
215
|
require_paths:
|
@@ -219,66 +225,57 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
225
|
- !ruby/object:Gem::Version
|
220
226
|
version: '0'
|
221
227
|
requirements: []
|
222
|
-
|
223
|
-
|
224
|
-
signing_key:
|
228
|
+
rubygems_version: 3.4.6
|
229
|
+
signing_key:
|
225
230
|
specification_version: 4
|
226
231
|
summary: A Tex template to PDF generator
|
227
232
|
test_files:
|
228
|
-
- test/
|
229
|
-
- test/
|
230
|
-
- test/
|
231
|
-
- test/dummy/app/jobs/application_job.rb
|
233
|
+
- test/dummy/Rakefile
|
234
|
+
- test/dummy/app/assets/config/manifest.js
|
235
|
+
- test/dummy/app/assets/stylesheets/application.css
|
232
236
|
- test/dummy/app/controllers/application_controller.rb
|
233
237
|
- test/dummy/app/controllers/tex_controller.rb
|
238
|
+
- test/dummy/app/helpers/application_helper.rb
|
239
|
+
- test/dummy/app/jobs/application_job.rb
|
240
|
+
- test/dummy/app/views/layouts/application.html.erb
|
234
241
|
- test/dummy/app/views/tex/example.pdf.tex
|
235
242
|
- test/dummy/app/views/tex/example2.pdf.tex
|
236
243
|
- test/dummy/app/views/tex/example3.pdf.tex
|
237
|
-
- test/dummy/
|
238
|
-
- test/dummy/app/assets/config/manifest.js
|
239
|
-
- test/dummy/app/assets/stylesheets/application.css
|
240
|
-
- test/dummy/app/helpers/application_helper.rb
|
244
|
+
- test/dummy/bin/rails
|
241
245
|
- test/dummy/bin/rake
|
242
246
|
- test/dummy/bin/setup
|
243
|
-
- test/dummy/bin/rails
|
244
|
-
- test/dummy/config/routes.rb
|
245
|
-
- test/dummy/config/locales/en.yml
|
246
|
-
- test/dummy/config/environments/production.rb
|
247
|
-
- test/dummy/config/environments/development.rb
|
248
|
-
- test/dummy/config/environments/test.rb
|
249
|
-
- test/dummy/config/spring.rb
|
250
|
-
- test/dummy/config/environment.rb
|
251
247
|
- test/dummy/config/application.rb
|
252
|
-
- test/dummy/config/credentials.yml.enc
|
253
248
|
- test/dummy/config/boot.rb
|
249
|
+
- test/dummy/config/environment.rb
|
250
|
+
- test/dummy/config/environments/development.rb
|
251
|
+
- test/dummy/config/environments/production.rb
|
252
|
+
- test/dummy/config/environments/test.rb
|
254
253
|
- test/dummy/config/initializers/application_controller_renderer.rb
|
255
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
256
|
-
- test/dummy/config/initializers/mime_types.rb
|
257
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
258
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
259
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
260
254
|
- test/dummy/config/initializers/content_security_policy.rb
|
255
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
261
256
|
- test/dummy/config/initializers/inflections.rb
|
257
|
+
- test/dummy/config/initializers/mime_types.rb
|
258
|
+
- test/dummy/config/locales/en.yml
|
259
|
+
- test/dummy/config/routes.rb
|
262
260
|
- test/dummy/config.ru
|
263
|
-
- test/dummy/
|
264
|
-
- test/dummy/
|
265
|
-
- test/dummy/public/favicon.ico
|
261
|
+
- test/dummy/log/test.log
|
262
|
+
- test/dummy/public/404.html
|
266
263
|
- test/dummy/public/422.html
|
267
|
-
- test/dummy/public/apple-touch-icon.png
|
268
264
|
- test/dummy/public/500.html
|
269
|
-
- test/dummy/public/404.html
|
270
265
|
- test/dummy/public/apple-touch-icon-precomposed.png
|
271
|
-
- test/dummy/public/
|
272
|
-
- test/dummy/
|
273
|
-
- test/dummy/
|
274
|
-
- test/dummy/tmp/development_secret.txt
|
266
|
+
- test/dummy/public/apple-touch-icon.png
|
267
|
+
- test/dummy/public/favicon.ico
|
268
|
+
- test/dummy/tmp/local_secret.txt
|
275
269
|
- test/integration/config_test.rb
|
276
270
|
- test/integration/rendering_test.rb
|
277
|
-
- test/
|
278
|
-
- test/latexpdf/latexpdf_test.rb
|
271
|
+
- test/latexpdf/configuration_test.rb
|
279
272
|
- test/latexpdf/escaper_test.rb
|
273
|
+
- test/latexpdf/latexpdf_error_test.rb
|
274
|
+
- test/latexpdf/latexpdf_test.rb
|
280
275
|
- test/latexpdf/logger_test.rb
|
281
|
-
- test/latexpdf/configuration_test.rb
|
282
276
|
- test/latexpdf/pdf_generator_test.rb
|
283
|
-
- test/
|
277
|
+
- test/test_helper.rb
|
278
|
+
- test/testdata/empty.tex
|
279
|
+
- test/testdata/invalid_tex.tex
|
280
|
+
- test/testdata/minimal.tex
|
284
281
|
- Rakefile
|
data/test/dummy/README.md
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
@@ -1 +0,0 @@
|
|
1
|
-
at+JRX1ngewxk270DMOHbbhn1Oe+bcVTOuXg4SgY1QjjG87tElfVcI2LhEmVZYG3XCNjw9CdO+jTiwnwymasvEfM7THsQYFw4Dbz9rF2bZXRF2jkiHkTXj/skLrtEOmK8vy1tEKf1p1dVXXVIG9DFmmPDmrNAOEo1hpmocl0clZEIPQLzGr125hcStH03YXXMnwTuJdEroZc6MsmtIpx2Z0F977z9HS5mCqhXeECEflhFrHVh0EJDsFyZ+JU14IytjERHb3nREOYUdB8mpTLOmW0I4VrelDMGiM410ChLSKbadVk9xgwF8TVLrjiU/Rxy3fV2ccTLRzn838n5NxUJU4IIDiqNDcz0v15+5XYkDSjo8olf40Rm7+v6LMMZWhkrux+YxZ4xqEVpBV2dzF99Vbozv+4LZpjtsqB--Dz95BDOi0o9WX3v3--+Hpi8Q/hMA6tgI4hxbi1FA==
|