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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 964946a4b83e913c0b28461e5a52ae1265c509bbe872a46af2fb3263eb3198b7
4
- data.tar.gz: 4b89c2375ea54fa62705dc10cbc181a4a0f82241cf8a7f689fda05892007a4bf
3
+ metadata.gz: 5b9c3708b4566f7736bd5823111b86fd9e5703f5ccd697a867929b71eeb3bd6e
4
+ data.tar.gz: b1ae2f1e27633e5993aebc8d5776e5ab2957905dacf86b443b6863c5f45e264e
5
5
  SHA512:
6
- metadata.gz: 51fd7a52568ffa55c67b0889e35fc526fe414622f4a8862782ab98f8a2f156cc0aaecaf910fc63509772b2def3a93c1c28387f385c89bbe608c03eeaffa81beb
7
- data.tar.gz: ec9493d37701209642d76e5a09bae026215284b07c98ced9b93305cbb3e12d692914389c853dbeb908df2bb842051209d78c1d0708fc973d41165cd76ce8b8f1
6
+ metadata.gz: b9f04e62f6eba957bf58ec535c8a7afff6383019a3fdf2dce8774289fc05515092f804848db661b70aa7e8c25c004d0da969061080162b692bb4707e82662896
7
+ data.tar.gz: d0667fe0fa4cf98b72eb8b12a85df225ec68d1f30471c19613f3a52838231e53714a9c80831b40719e2364e1e86d002377ac70dad8a867dfd103df8348d3bf3c
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Latexpdf
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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