latexpdf 0.5.0 → 0.5.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 +7 -1
- data/lib/latexpdf/version.rb +1 -1
- data/test/dummy/log/development.log +0 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b9c3708b4566f7736bd5823111b86fd9e5703f5ccd697a867929b71eeb3bd6e
|
4
|
+
data.tar.gz: b1ae2f1e27633e5993aebc8d5776e5ab2957905dacf86b443b6863c5f45e264e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9f04e62f6eba957bf58ec535c8a7afff6383019a3fdf2dce8774289fc05515092f804848db661b70aa7e8c25c004d0da969061080162b692bb4707e82662896
|
7
|
+
data.tar.gz: d0667fe0fa4cf98b72eb8b12a85df225ec68d1f30471c19613f3a52838231e53714a9c80831b40719e2364e1e86d002377ac70dad8a867dfd103df8348d3bf3c
|
data/lib/latexpdf/railtie.rb
CHANGED
@@ -3,10 +3,16 @@ 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(:tex)
|
8
|
+
rescue Mime::Type::InvalidMimeType
|
9
|
+
Mime::Type.register('application/x-tex', :tex)
|
10
|
+
end
|
11
|
+
|
6
12
|
ActionView::Template.register_template_handler :tex, ActionView::Template::Handlers::Tex
|
7
13
|
Latexpdf.configure do |c|
|
8
14
|
c.build_path = Rails.configuration.paths['tmp'].first
|
9
15
|
end
|
10
16
|
end
|
11
17
|
end
|
12
|
-
end
|
18
|
+
end
|
data/lib/latexpdf/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: latexpdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthijs Ooms
|
@@ -177,6 +177,7 @@ files:
|
|
177
177
|
- test/dummy/config/locales/en.yml
|
178
178
|
- test/dummy/config/routes.rb
|
179
179
|
- test/dummy/config/spring.rb
|
180
|
+
- test/dummy/log/development.log
|
180
181
|
- test/dummy/log/test.log
|
181
182
|
- test/dummy/public/404.html
|
182
183
|
- test/dummy/public/422.html
|
@@ -269,6 +270,7 @@ test_files:
|
|
269
270
|
- test/dummy/public/apple-touch-icon-precomposed.png
|
270
271
|
- test/dummy/public/robots.txt
|
271
272
|
- test/dummy/log/test.log
|
273
|
+
- test/dummy/log/development.log
|
272
274
|
- test/dummy/tmp/development_secret.txt
|
273
275
|
- test/integration/config_test.rb
|
274
276
|
- test/integration/rendering_test.rb
|