latexpdf 0.6.0 → 0.6.1
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/railtie.rb +3 -5
- data/lib/latexpdf/version.rb +1 -1
- data/test/dummy/log/test.log +27 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a3a1d56fc6525a8e45f6639d7200dff764ea3bf471c5fc95f352d44b4098a67
|
|
4
|
+
data.tar.gz: d50f210a0c0cb45ee3d25c87b62fbb9fc294b42742adadda1d0deac71ecfddec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 713921591d9a55ecff8f2a8fe7831634a4ca02f5b5287a6035db0ae084a04b5098e297bc7dcc54770260d95288374ca54afb5f04251ceb0582b740be28416ef3
|
|
7
|
+
data.tar.gz: c9b012d287d9ff93d7985f06731c3c71d51d3801c9ec4a5bc364bd22ddd297b132416fa607f412fabca2c978fd7621b23e07535444308b266027b049081a2afb
|
data/lib/latexpdf/railtie.rb
CHANGED
|
@@ -3,13 +3,11 @@ require "action_view/template_handlers/tex"
|
|
|
3
3
|
module Latexpdf
|
|
4
4
|
class Railtie < Rails::Railtie
|
|
5
5
|
config.to_prepare do
|
|
6
|
-
|
|
7
|
-
Mime::Type.
|
|
8
|
-
rescue Mime::Type::InvalidMimeType
|
|
9
|
-
Mime::Type.register('application/x-tex', "tex")
|
|
6
|
+
unless Mime.valid_symbols?([:tex])
|
|
7
|
+
Mime::Type.register('application/x-tex', :tex)
|
|
10
8
|
end
|
|
11
9
|
|
|
12
|
-
ActionView::Template.register_template_handler
|
|
10
|
+
ActionView::Template.register_template_handler :tex, ActionView::Template::Handlers::Tex
|
|
13
11
|
Latexpdf.configure do |c|
|
|
14
12
|
c.build_path = Rails.configuration.paths['tmp'].first
|
|
15
13
|
end
|
data/lib/latexpdf/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
|
@@ -187,3 +187,30 @@ Completed 200 OK in 1853ms (Views: 1852.9ms | Allocations: 975)
|
|
|
187
187
|
-------------------------------------------------------------
|
|
188
188
|
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
|
189
189
|
-------------------------------------------------------------
|
|
190
|
+
---------------------------------------------------------------
|
|
191
|
+
RenderingTest: test_Generate_PDF_using_non_printable_characters
|
|
192
|
+
---------------------------------------------------------------
|
|
193
|
+
Started GET "/tex/example3.pdf" for 127.0.0.1 at 2024-02-12 10:00:11 +0100
|
|
194
|
+
Processing by TexController#example3 as PDF
|
|
195
|
+
Rendering tex/example3.pdf.tex
|
|
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)
|
|
206
|
+
-----------------------------------------------------------
|
|
207
|
+
RenderingTest: test_Generate_PDF_on_the_fly_in_a_controller
|
|
208
|
+
-----------------------------------------------------------
|
|
209
|
+
Started GET "/tex/example.pdf" for 127.0.0.1 at 2024-02-12 10:00:13 +0100
|
|
210
|
+
Processing by TexController#example as PDF
|
|
211
|
+
Rendering tex/example.pdf.tex
|
|
212
|
+
Rendered tex/example.pdf.tex (Duration: 744.5ms | Allocations: 520)
|
|
213
|
+
Completed 200 OK in 745ms (Views: 745.1ms | Allocations: 773)
|
|
214
|
+
-------------------------------------------------------------
|
|
215
|
+
ConfigTest: test_Build_path_is_Rails_temporary_dir_by_default
|
|
216
|
+
-------------------------------------------------------------
|
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.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthijs Ooms
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-02-
|
|
11
|
+
date: 2024-02-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|