prawnto_2 0.2.4.beta → 0.3.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.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +1 -1
  3. data/README.rdoc +15 -16
  4. data/Rakefile +1 -8
  5. data/lib/prawnto.rb +1 -0
  6. data/lib/prawnto/compile_support.rb +10 -5
  7. data/lib/prawnto/model_renderer.rb +3 -2
  8. data/lib/prawnto/template_handlers/base.rb +4 -5
  9. data/lib/prawnto/template_handlers/partials.rb +11 -3
  10. metadata +60 -165
  11. data/.gitignore +0 -8
  12. data/.travis.yml +0 -3
  13. data/Appraisals +0 -7
  14. data/Gemfile +0 -13
  15. data/Guardfile +0 -15
  16. data/prawnto.gemspec +0 -22
  17. data/rails/init.rb +0 -1
  18. data/script/rails +0 -6
  19. data/spec/assets/default_render-0.12.0.pdf +0 -83
  20. data/spec/assets/default_render-0.6.3.pdf +0 -85
  21. data/spec/assets/dsl_render-0.12.0.pdf +0 -83
  22. data/spec/assets/dsl_render-0.6.3.pdf +0 -85
  23. data/spec/assets/partial_render-0.12.0.pdf +0 -83
  24. data/spec/assets/partial_render-0.6.3.pdf +0 -85
  25. data/spec/assets/yield_block_in_helper_test-0.12.0.pdf +0 -76
  26. data/spec/assets/yield_block_in_helper_test-0.6.3.pdf +0 -78
  27. data/spec/dummy/.rspec +0 -1
  28. data/spec/dummy/.sass-cache/387f7b3fde13680ae5a79212c089f81d2d418f1e/application.css.scssc +0 -0
  29. data/spec/dummy/.sass-cache/6a18c557e07dbc07a14d0809be02d4f21f1dbe91/_shared.css.scssc +0 -0
  30. data/spec/dummy/.sass-cache/6a18c557e07dbc07a14d0809be02d4f21f1dbe91/ab_tests.css.scssc +0 -0
  31. data/spec/dummy/.sass-cache/6a18c557e07dbc07a14d0809be02d4f21f1dbe91/application.css.scssc +0 -0
  32. data/spec/dummy/.sass-cache/6a18c557e07dbc07a14d0809be02d4f21f1dbe91/metrics.css.scssc +0 -0
  33. data/spec/dummy/.sass-cache/6a18c557e07dbc07a14d0809be02d4f21f1dbe91/reports.css.scssc +0 -0
  34. data/spec/dummy/Rakefile +0 -7
  35. data/spec/dummy/app/assets/javascripts/application.js +0 -10
  36. data/spec/dummy/app/assets/javascripts/highcharts.js +0 -170
  37. data/spec/dummy/app/assets/stylesheets/application.css.scss +0 -78
  38. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  39. data/spec/dummy/app/controllers/test_controller.rb +0 -27
  40. data/spec/dummy/app/helpers/application_helper.rb +0 -18
  41. data/spec/dummy/app/mailers/.gitkeep +0 -0
  42. data/spec/dummy/app/mailers/pdf_emailer.rb +0 -14
  43. data/spec/dummy/app/models/.gitkeep +0 -0
  44. data/spec/dummy/app/models/super_model.rb +0 -8
  45. data/spec/dummy/app/views/layouts/application.html.erb +0 -23
  46. data/spec/dummy/app/views/pdf_emailer/email_with_attachment.text.erb +0 -1
  47. data/spec/dummy/app/views/test/_simple_partial.pdf.prawn +0 -1
  48. data/spec/dummy/app/views/test/default_render.pdf.prawn +0 -3
  49. data/spec/dummy/app/views/test/dsl_render.pdf.prawn +0 -3
  50. data/spec/dummy/app/views/test/instance_var_test.pdf.prawn +0 -15
  51. data/spec/dummy/app/views/test/partial_render.pdf.prawn +0 -3
  52. data/spec/dummy/app/views/test/yield_block_in_helper_test.pdf.prawn +0 -4
  53. data/spec/dummy/config.ru +0 -4
  54. data/spec/dummy/config/application.rb +0 -49
  55. data/spec/dummy/config/boot.rb +0 -10
  56. data/spec/dummy/config/environment.rb +0 -5
  57. data/spec/dummy/config/environments/development.rb +0 -30
  58. data/spec/dummy/config/environments/production.rb +0 -60
  59. data/spec/dummy/config/environments/test.rb +0 -39
  60. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  61. data/spec/dummy/config/initializers/inflections.rb +0 -10
  62. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  63. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  64. data/spec/dummy/config/initializers/session_store.rb +0 -8
  65. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  66. data/spec/dummy/config/locales/en.yml +0 -5
  67. data/spec/dummy/config/routes.rb +0 -9
  68. data/spec/dummy/lib/assets/.gitkeep +0 -0
  69. data/spec/dummy/public/404.html +0 -26
  70. data/spec/dummy/public/422.html +0 -26
  71. data/spec/dummy/public/500.html +0 -26
  72. data/spec/dummy/public/favicon.ico +0 -0
  73. data/spec/dummy/script/delayed_job +0 -5
  74. data/spec/dummy/script/rails +0 -6
  75. data/spec/integrations/pdf_emailer_spec.rb +0 -21
  76. data/spec/integrations/super_model_spec.rb +0 -16
  77. data/spec/integrations/test_controller_spec.rb +0 -51
  78. data/spec/spec_helper.rb +0 -32
  79. data/spec/units/action_controller_mixin_spec.rb +0 -48
  80. data/spec/units/compile_support_spec.rb +0 -50
  81. data/spec/units/template_handlers/partials_spec.rb +0 -68
  82. data/spec/units/template_handlers/renderer_spec.rb +0 -4
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- .DS_Store
2
- **/*.swp
3
- *.gem
4
- rdoc/
5
- Gemfile.lock
6
- spec/dummy/tmp
7
- spec/dummy/log
8
- gemfiles
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm: 1.9.2
3
- script: bundle exec rspec spec
data/Appraisals DELETED
@@ -1,7 +0,0 @@
1
- appraise "prawn0.12.0" do
2
- gem "prawn", '0.12.0'
3
- end
4
-
5
- appraise "prawn0.6.3" do
6
- gem "prawn", '0.6.3'
7
- end
data/Gemfile DELETED
@@ -1,13 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in my_project.gemspec
4
- gemspec
5
-
6
- gem "spork", ">= 0.9.0"
7
- gem "rspec-rails"
8
- gem "mocha"
9
- gem "appraisal"
10
-
11
- gem "guard"
12
- gem "guard-spork"
13
- gem "guard-rspec"
data/Guardfile DELETED
@@ -1,15 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- guard 'spork', :rspec_env => { 'RAILS_ENV' => 'test' } do
5
- watch('Gemfile')
6
- watch('Gemfile.lock')
7
- watch('spec/spec_helper.rb') { :rspec }
8
- end
9
-
10
- guard 'rspec', :cli => "--drb", :all_after_pass => false, :version => 2 do
11
- watch(%r{^spec/.+_spec\.rb$})
12
- watch(%r{^lib/prawnto/(.+)\.rb$}) { |m| "spec/units/#{m[1]}_spec.rb" }
13
- watch('spec/spec_helper.rb') { "spec" }
14
- end
15
-
@@ -1,22 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = "prawnto_2"
3
- s.version = '0.2.4.beta'
4
- s.author = ["Forrest"]
5
- s.email = ["development@forrestzeisler.com"]
6
- s.date = Time.now.utc.strftime("%Y-%m-%d")
7
-
8
- s.description = 'Simple PDF generation using the prawn library.'
9
- s.summary = "This gem allows you to use the PDF mime-type and the simple prawn syntax to generate impressive looking PDFs."
10
-
11
- s.required_rubygems_version = ">= 1.3.6"
12
- s.platform = Gem::Platform::RUBY
13
- s.add_dependency('rails', '>= 3.1')
14
- s.add_dependency('prawn', '>= 0.6.0')
15
-
16
- s.files = `git ls-files`.split("\n")
17
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
- s.require_path = "lib"
19
-
20
- s.has_rdoc = true
21
- s.extra_rdoc_files = ["README.rdoc"]
22
- end
@@ -1 +0,0 @@
1
- require File.join(File.dirname(__FILE__), '/../lib/prawnto.rb')
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #!/usr/bin/env ruby
3
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
4
-
5
- ENGINE_PATH = File.expand_path('../..', __FILE__)
6
- load File.expand_path('../../spec/dummy/script/rails', __FILE__)
@@ -1,83 +0,0 @@
1
- %PDF-1.3
2
- %����
3
- 1 0 obj
4
- << /Creator <feff0050007200610077006e>
5
- /Producer <feff0050007200610077006e>
6
- >>
7
- endobj
8
- 2 0 obj
9
- << /Type /Catalog
10
- /Pages 3 0 R
11
- >>
12
- endobj
13
- 3 0 obj
14
- << /Type /Pages
15
- /Count 1
16
- /Kids [5 0 R]
17
- >>
18
- endobj
19
- 4 0 obj
20
- << /Length 343
21
- >>
22
- stream
23
- q
24
-
25
- BT
26
- 36 747.384 Td
27
- /F1.0 12 Tf
28
- [<48656c6c6f2057> 30 <6f72> -15 <6c6421>] TJ
29
- ET
30
-
31
-
32
- BT
33
- 36 733.512 Td
34
- /F1.0 12 Tf
35
- [<696e7374616e63652076> 25 <6172> -15 <696162> 20 <6c65204078203d2031>] TJ
36
- ET
37
-
38
-
39
- BT
40
- 36 719.6399999999999 Td
41
- /F1.0 12 Tf
42
- [<68656c706572206d6574686f64732077> 10 <6f72> -15 <6b203a20746869732069732066726f6d20612068656c706572>] TJ
43
- ET
44
-
45
- Q
46
-
47
- endstream
48
- endobj
49
- 5 0 obj
50
- << /Type /Page
51
- /Parent 3 0 R
52
- /MediaBox [0 0 612.0 792.0]
53
- /Contents 4 0 R
54
- /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
55
- /Font << /F1.0 6 0 R
56
- >>
57
- >>
58
- >>
59
- endobj
60
- 6 0 obj
61
- << /Type /Font
62
- /Subtype /Type1
63
- /BaseFont /Helvetica
64
- /Encoding /WinAnsiEncoding
65
- >>
66
- endobj
67
- xref
68
- 0 7
69
- 0000000000 65535 f
70
- 0000000015 00000 n
71
- 0000000109 00000 n
72
- 0000000158 00000 n
73
- 0000000215 00000 n
74
- 0000000609 00000 n
75
- 0000000787 00000 n
76
- trailer
77
- << /Size 7
78
- /Root 2 0 R
79
- /Info 1 0 R
80
- >>
81
- startxref
82
- 884
83
- %%EOF
@@ -1,85 +0,0 @@
1
- %PDF-1.3
2
- %����
3
- 1 0 obj
4
- << /Creator (Prawn)
5
- /Producer (Prawn)
6
- >>
7
- endobj
8
- 2 0 obj
9
- << /Type /Pages
10
- /Count 1
11
- /Kids [5 0 R]
12
- >>
13
- endobj
14
- 3 0 obj
15
- << /Type /Catalog
16
- /Pages 2 0 R
17
- >>
18
- endobj
19
- 4 0 obj
20
- << /Length 407
21
- >>
22
- stream
23
- 0.000 0.000 0.000 rg
24
- 0.000 0.000 0.000 RG
25
- q
26
-
27
- BT
28
- 36 747.384 Td
29
- /F1.0 12 Tf
30
- [<48656c6c6f20> 40 <57> 30 <6f72> -15 <6c6421>] TJ
31
- ET
32
-
33
-
34
- BT
35
- 36 733.5120000000001 Td
36
- /F1.0 12 Tf
37
- [<696e7374616e63652076> 25 <6172> -15 <696162> 20 <6c65204078203d2031>] TJ
38
- ET
39
-
40
-
41
- BT
42
- 36 719.6400000000001 Td
43
- /F1.0 12 Tf
44
- [<68656c706572206d6574686f64732077> 10 <6f72> -15 <6b203a> 50 <20746869732069732066726f6d20612068656c706572>] TJ
45
- ET
46
-
47
- Q
48
-
49
- endstream
50
- endobj
51
- 5 0 obj
52
- << /Type /Page
53
- /Parent 2 0 R
54
- /MediaBox [0 0 612.0 792.0]
55
- /Contents 4 0 R
56
- /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
57
- /Font << /F1.0 6 0 R
58
- >>
59
- >>
60
- >>
61
- endobj
62
- 6 0 obj
63
- << /Type /Font
64
- /Subtype /Type1
65
- /BaseFont /Helvetica
66
- /Encoding /WinAnsiEncoding
67
- >>
68
- endobj
69
- xref
70
- 0 7
71
- 0000000000 65535 f
72
- 0000000015 00000 n
73
- 0000000071 00000 n
74
- 0000000128 00000 n
75
- 0000000177 00000 n
76
- 0000000635 00000 n
77
- 0000000813 00000 n
78
- trailer
79
- << /Size 7
80
- /Root 3 0 R
81
- /Info 1 0 R
82
- >>
83
- startxref
84
- 910
85
- %%EOF
@@ -1,83 +0,0 @@
1
- %PDF-1.3
2
- %����
3
- 1 0 obj
4
- << /Creator <feff0050007200610077006e>
5
- /Producer <feff0050007200610077006e>
6
- >>
7
- endobj
8
- 2 0 obj
9
- << /Type /Catalog
10
- /Pages 3 0 R
11
- >>
12
- endobj
13
- 3 0 obj
14
- << /Type /Pages
15
- /Count 1
16
- /Kids [5 0 R]
17
- >>
18
- endobj
19
- 4 0 obj
20
- << /Length 355
21
- >>
22
- stream
23
- q
24
-
25
- BT
26
- 36 747.384 Td
27
- /F1.0 12 Tf
28
- [<48656c6c6f2057> 30 <6f72> -15 <6c6421202d2044534c>] TJ
29
- ET
30
-
31
-
32
- BT
33
- 36 733.512 Td
34
- /F1.0 12 Tf
35
- [<696e7374616e63652076> 25 <6172> -15 <696162> 20 <6c65204078203d2031>] TJ
36
- ET
37
-
38
-
39
- BT
40
- 36 719.6399999999999 Td
41
- /F1.0 12 Tf
42
- [<68656c706572206d6574686f64732077> 10 <6f72> -15 <6b203a20746869732069732066726f6d20612068656c706572>] TJ
43
- ET
44
-
45
- Q
46
-
47
- endstream
48
- endobj
49
- 5 0 obj
50
- << /Type /Page
51
- /Parent 3 0 R
52
- /MediaBox [0 0 612.0 792.0]
53
- /Contents 4 0 R
54
- /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
55
- /Font << /F1.0 6 0 R
56
- >>
57
- >>
58
- >>
59
- endobj
60
- 6 0 obj
61
- << /Type /Font
62
- /Subtype /Type1
63
- /BaseFont /Helvetica
64
- /Encoding /WinAnsiEncoding
65
- >>
66
- endobj
67
- xref
68
- 0 7
69
- 0000000000 65535 f
70
- 0000000015 00000 n
71
- 0000000109 00000 n
72
- 0000000158 00000 n
73
- 0000000215 00000 n
74
- 0000000621 00000 n
75
- 0000000799 00000 n
76
- trailer
77
- << /Size 7
78
- /Root 2 0 R
79
- /Info 1 0 R
80
- >>
81
- startxref
82
- 896
83
- %%EOF
@@ -1,85 +0,0 @@
1
- %PDF-1.3
2
- %����
3
- 1 0 obj
4
- << /Creator (Prawn)
5
- /Producer (Prawn)
6
- >>
7
- endobj
8
- 2 0 obj
9
- << /Type /Pages
10
- /Count 1
11
- /Kids [5 0 R]
12
- >>
13
- endobj
14
- 3 0 obj
15
- << /Type /Catalog
16
- /Pages 2 0 R
17
- >>
18
- endobj
19
- 4 0 obj
20
- << /Length 419
21
- >>
22
- stream
23
- 0.000 0.000 0.000 rg
24
- 0.000 0.000 0.000 RG
25
- q
26
-
27
- BT
28
- 36 747.384 Td
29
- /F1.0 12 Tf
30
- [<48656c6c6f20> 40 <57> 30 <6f72> -15 <6c6421202d2044534c>] TJ
31
- ET
32
-
33
-
34
- BT
35
- 36 733.5120000000001 Td
36
- /F1.0 12 Tf
37
- [<696e7374616e63652076> 25 <6172> -15 <696162> 20 <6c65204078203d2031>] TJ
38
- ET
39
-
40
-
41
- BT
42
- 36 719.6400000000001 Td
43
- /F1.0 12 Tf
44
- [<68656c706572206d6574686f64732077> 10 <6f72> -15 <6b203a> 50 <20746869732069732066726f6d20612068656c706572>] TJ
45
- ET
46
-
47
- Q
48
-
49
- endstream
50
- endobj
51
- 5 0 obj
52
- << /Type /Page
53
- /Parent 2 0 R
54
- /MediaBox [0 0 612.0 792.0]
55
- /Contents 4 0 R
56
- /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
57
- /Font << /F1.0 6 0 R
58
- >>
59
- >>
60
- >>
61
- endobj
62
- 6 0 obj
63
- << /Type /Font
64
- /Subtype /Type1
65
- /BaseFont /Helvetica
66
- /Encoding /WinAnsiEncoding
67
- >>
68
- endobj
69
- xref
70
- 0 7
71
- 0000000000 65535 f
72
- 0000000015 00000 n
73
- 0000000071 00000 n
74
- 0000000128 00000 n
75
- 0000000177 00000 n
76
- 0000000647 00000 n
77
- 0000000825 00000 n
78
- trailer
79
- << /Size 7
80
- /Root 3 0 R
81
- /Info 1 0 R
82
- >>
83
- startxref
84
- 922
85
- %%EOF
@@ -1,83 +0,0 @@
1
- %PDF-1.3
2
- %����
3
- 1 0 obj
4
- << /Creator <feff0050007200610077006e>
5
- /Producer <feff0050007200610077006e>
6
- >>
7
- endobj
8
- 2 0 obj
9
- << /Type /Catalog
10
- /Pages 3 0 R
11
- >>
12
- endobj
13
- 3 0 obj
14
- << /Type /Pages
15
- /Count 1
16
- /Kids [5 0 R]
17
- >>
18
- endobj
19
- 4 0 obj
20
- << /Length 249
21
- >>
22
- stream
23
- q
24
-
25
- BT
26
- 36 747.384 Td
27
- /F1.0 12 Tf
28
- [<626566> 30 <6f726520706172> -40 <7469616c>] TJ
29
- ET
30
-
31
-
32
- BT
33
- 36 733.512 Td
34
- /F1.0 12 Tf
35
- [<696e7369646520706172> -40 <7469616c>] TJ
36
- ET
37
-
38
-
39
- BT
40
- 36 719.6399999999999 Td
41
- /F1.0 12 Tf
42
- [<616674657220706172> -40 <7469616c>] TJ
43
- ET
44
-
45
- Q
46
-
47
- endstream
48
- endobj
49
- 5 0 obj
50
- << /Type /Page
51
- /Parent 3 0 R
52
- /MediaBox [0 0 612.0 792.0]
53
- /Contents 4 0 R
54
- /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
55
- /Font << /F1.0 6 0 R
56
- >>
57
- >>
58
- >>
59
- endobj
60
- 6 0 obj
61
- << /Type /Font
62
- /Subtype /Type1
63
- /BaseFont /Helvetica
64
- /Encoding /WinAnsiEncoding
65
- >>
66
- endobj
67
- xref
68
- 0 7
69
- 0000000000 65535 f
70
- 0000000015 00000 n
71
- 0000000109 00000 n
72
- 0000000158 00000 n
73
- 0000000215 00000 n
74
- 0000000515 00000 n
75
- 0000000693 00000 n
76
- trailer
77
- << /Size 7
78
- /Root 2 0 R
79
- /Info 1 0 R
80
- >>
81
- startxref
82
- 790
83
- %%EOF