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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b6deda219b32192b1fe5e45f132b7934b5ad45b740afaaf0f582dfe7f95ed66
4
- data.tar.gz: 7b5d2422f6ce0d1ac22bd6866b51307076c60a076dd76f341fb046079a6eb0ac
3
+ metadata.gz: 3a3a1d56fc6525a8e45f6639d7200dff764ea3bf471c5fc95f352d44b4098a67
4
+ data.tar.gz: d50f210a0c0cb45ee3d25c87b62fbb9fc294b42742adadda1d0deac71ecfddec
5
5
  SHA512:
6
- metadata.gz: 26234dd41a223e8c7b1aa5b5583cecc785f3d754d9699c1de180b2f9032f3c9b4015f3541b3379c5fab4e7a5ebe223050b5aa6fccb27bff0bde965ce833efaf0
7
- data.tar.gz: aa717117ae014281191d66cb4db382609840545c866dcbe438d972d5334a7c638b20eef211b3ba2d439304acc3a68bf9962533883c1786b18300a6c70b1b8bcc
6
+ metadata.gz: 713921591d9a55ecff8f2a8fe7831634a4ca02f5b5287a6035db0ae084a04b5098e297bc7dcc54770260d95288374ca54afb5f04251ceb0582b740be28416ef3
7
+ data.tar.gz: c9b012d287d9ff93d7985f06731c3c71d51d3801c9ec4a5bc364bd22ddd297b132416fa607f412fabca2c978fd7621b23e07535444308b266027b049081a2afb
@@ -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
- begin
7
- Mime::Type.lookup("application/x-tex")
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 "tex", ActionView::Template::Handlers::Tex
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
@@ -1,3 +1,3 @@
1
1
  module Latexpdf
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -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.0
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 00:00:00.000000000 Z
11
+ date: 2024-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails