prawn-rails 1.2.0 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -7
  3. data/README.md +36 -13
  4. data/lib/prawn-rails.rb +13 -2
  5. data/lib/prawn-rails/document.rb +5 -4
  6. data/lib/prawn-rails/rails_helper.rb +22 -11
  7. data/lib/prawn-rails/renderer.rb +2 -11
  8. data/lib/prawn-rails/version.rb +1 -1
  9. data/test/dummy_app/app/assets/config/manifest.js +3 -0
  10. data/test/dummy_app/app/controllers/reports_controller.rb +21 -2
  11. data/test/dummy_app/app/views/reports/custom.pdf.prawn +3 -0
  12. data/test/dummy_app/app/views/reports/custom_disposition.pdf.prawn +3 -0
  13. data/test/dummy_app/app/views/reports/custom_filename.pdf.prawn +3 -0
  14. data/test/dummy_app/config/application.rb +0 -7
  15. data/test/dummy_app/config/routes.rb +5 -0
  16. data/test/dummy_app/log/test.log +436 -76
  17. data/test/dummy_app/tmp/cache/assets/sprockets/{v3.0/Ac/AcCgT9z272BU3f9VmSXyH6aXg0-fBwSzc8apjB9C0T4.cache → v4.0.0/0o/0og-K-ORl6wO02dgU3z8beSXSGOCdnEFcX6KEtXqG2Q.cache} +0 -0
  18. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/2V/2VONmeO4ClBgY1gjdZLYo9wQjDG9Ef9sAuwWVxceLEk.cache +1 -0
  19. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/34/34uQaon4nFa_kXcNF-1ac-QhL_HKtstSnb2pGjYCb6w.cache +1 -0
  20. data/test/dummy_app/tmp/cache/assets/sprockets/{v3.0 → v4.0.0}/3N/3NnKgR2TsTI1qCXKZpts0uJzp2dRJcoYp3nnFU6YE4o.cache +0 -0
  21. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/43/43Xh_xLNBt5kEi4-pWc5m0pFDLIhkNAxyiBf-3E2UJw.cache +1 -0
  22. data/test/dummy_app/tmp/cache/assets/sprockets/{v3.0 → v4.0.0}/4O/4O6Anm3R8aSIVfMhGtp5tZK3x17fcY1SbWoDN_6hb-o.cache +0 -0
  23. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/8x/8x5zY49XOU4gtdILE9T8l00lhs-lUJ6zzl5hyxjaFzw.cache +0 -0
  24. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/AT/ATEwOxnm0kBLQ6bdeFkXutl92AMg1dA40zmBqy2f2Ng.cache +0 -0
  25. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Ag/AgeZ6zQVNy2sDfEUqjxoVLoCsGo6rA27SUQoJFjqCqY.cache +1 -0
  26. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Dj/DjIeso8fWA-cG6Y9zSr3T0rPtpS6V73u3Q234QgSLa8.cache +1 -0
  27. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Do/Do83AoOat5W-c1g7piDGy2GMmffsY6JY0Qfuh5PY3GM.cache +2 -0
  28. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/E_/E_ZbvXNGsLYdwZdD1F159gQCYVGJrWgaip0GlUx9B68.cache +1 -0
  29. data/test/dummy_app/tmp/cache/assets/sprockets/{v3.0 → v4.0.0}/LR/LRLaw7viwBb9Mi_VFZxGbKIooy8Fqf1aB_iOTETsMyc.cache +0 -0
  30. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Lk/LkuzadDEF5r9a_QBFvWJ5krc5aerVbxs4zJ19iztB38.cache +0 -0
  31. data/test/dummy_app/tmp/cache/assets/sprockets/{v3.0 → v4.0.0}/Mj/MjwYGG9GkHD1fwwH2bg66EBYl3zCA_mqeDF9otey4-U.cache +0 -0
  32. data/test/dummy_app/tmp/cache/assets/sprockets/{v3.0/EG/EGPvvBJ-Qo0bhB9ro0HZH9s4Ln-PNqgz-uYTi5tV_88.cache → v4.0.0/Uc/UcQ6dMoNX10N68Sv8qxPf7kahPOJ5pqzYWkbjDKyF1k.cache} +0 -0
  33. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/cp/cp36yIX2yPJBfhw6EA0u-BWnvFazmGC8zKxglna59TI.cache +1 -0
  34. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/dt/dteXKuRtjT5JiLleDPqnTNJFalNEbck9vA19hE6rGyw.cache +1 -0
  35. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/hy/hyxqCkBWzkpfHLCqW3YJeQq93KRADVcxEEMz0o0We_w.cache +0 -0
  36. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/k6/k6DfQWIBNnOJUNVvE59mXcoCzMB9D6i0p1WuJZGANoQ.cache +1 -0
  37. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/kR/kRjL0yRqyeZXZk93BSxxJULpCv-rJ3QvC23X4W94RNA.cache +0 -0
  38. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/pv/pv6tV3CDkIAmLXdU8EPLlNEkXAKJPufVD4VP30o4fWo.cache +2 -0
  39. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/vt/vtslB-h9sglaV55iVgO8l86UBTtzDnuA6qzCy-vzujk.cache +0 -0
  40. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/xD/xDLUWV68gWaS7IJWKWBAPzLcA0ALSjQHns0tsk0zY3s.cache +0 -0
  41. data/test/integration/prawn_rails_test.rb +52 -25
  42. data/test/prawn_rails_test.rb +7 -2
  43. data/test/test_helper.rb +10 -0
  44. metadata +124 -55
  45. data/lib/prawn-rails/engine.rb +0 -14
  46. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/-T/-Ty2Lif1RQ31LfQ3sdBLOYNu3fwjefNQWZXg61o7S0Q.cache +0 -1
  47. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/-m/-mGgwBQ39pkjNoHzuM7XVbFYsHOyv_6SOM_CmI-kLnw.cache +0 -0
  48. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/3j/3jV3hjwp5k_C7riQHMv6rtrQUfKwPXzFkJ32sUJuN_E.cache +0 -0
  49. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/7b/7bJ7ytF6vF1igkdeslMStlJ0FX-qsua3IF_1YPq8oCw.cache +0 -1
  50. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/SJ/SJ3C0iDdYBBG_yOrab-Sw62moViXQPI90mwV-VCda_o.cache +0 -0
  51. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/ie/ieDr67bZ5kFv-ENcBz8Q7TiuRQETGYgdgzYHyXqVcoI.cache +0 -0
  52. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/qW/qWT2nJzx5CDYl-mSJ0WXKcYzB6yu_HDoZLsoO5mWh7g.cache +0 -1
  53. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/se/seL12R6emubM_qf0qkqUQp8lYPC0Sv3ALlPVz2lH5OM.cache +0 -1
@@ -1,14 +0,0 @@
1
- require "prawn"
2
- require "prawn-rails/rails_helper"
3
- require "prawn-rails/renderer"
4
-
5
- module PrawnRails
6
- class Engine < Rails::Engine
7
- ActionView::Base.send(:include, PrawnRails::RailsHelper)
8
- ActionView::Template.register_template_handler(:prawn, PrawnRails::Renderer)
9
-
10
- unless Mime::Type.lookup_by_extension(:pdf)
11
- Mime::Type.register_alias("application/pdf", :pdf)
12
- end
13
- end
14
- end
@@ -1 +0,0 @@
1
- I"�app/assets/javascripts/application.js?type=application/javascript&id=cb3b727b4096110dd5e8049526d219e5c85df923272026571e5b5ed1e223a86f:ET
@@ -1 +0,0 @@
1
- I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=96ba9dc308e6dfde737ea84d13c263f9b5937647e23b63e472144dafd52010cb:ET
@@ -1 +0,0 @@
1
- I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=25b676af84f7cd240d4c80f3db016cee345a44e4d0068c66fefd9ce02c93e345:ET
@@ -1 +0,0 @@
1
- I"}app/assets/stylesheets/application.css?type=text/css&id=cf9c582bdcb56262355ef6970cbffcece431a36641349c5001d510fd84d74906:ET