prawn-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.markdown +61 -0
  3. data/Rakefile +39 -0
  4. data/lib/prawn-rails.rb +3 -0
  5. data/lib/prawn-rails/engine.rb +7 -0
  6. data/lib/prawn-rails/prawn_handler.rb +17 -0
  7. data/lib/prawn-rails/prawn_rails_helper.rb +41 -0
  8. data/lib/prawn-rails/version.rb +3 -0
  9. data/lib/tasks/prawn-rails_tasks.rake +4 -0
  10. data/test/dummy/Rakefile +7 -0
  11. data/test/dummy/app/assets/javascripts/application.js +9 -0
  12. data/test/dummy/app/assets/javascripts/pdf.js +2 -0
  13. data/test/dummy/app/assets/javascripts/products.js +2 -0
  14. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  15. data/test/dummy/app/assets/stylesheets/pdf.css +4 -0
  16. data/test/dummy/app/assets/stylesheets/products.css +4 -0
  17. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  18. data/test/dummy/app/controllers/application_controller.rb +3 -0
  19. data/test/dummy/app/controllers/pdf_controller.rb +10 -0
  20. data/test/dummy/app/helpers/application_helper.rb +2 -0
  21. data/test/dummy/app/helpers/pdf_helper.rb +2 -0
  22. data/test/dummy/app/helpers/products_helper.rb +2 -0
  23. data/test/dummy/app/models/product.rb +2 -0
  24. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  25. data/test/dummy/app/views/pdf/render_pdf.html.erb +2 -0
  26. data/test/dummy/app/views/pdf/render_pdf.pdf.prawn +34 -0
  27. data/test/dummy/config.ru +4 -0
  28. data/test/dummy/config/application.rb +45 -0
  29. data/test/dummy/config/boot.rb +10 -0
  30. data/test/dummy/config/database.yml +25 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +30 -0
  33. data/test/dummy/config/environments/production.rb +60 -0
  34. data/test/dummy/config/environments/test.rb +39 -0
  35. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/test/dummy/config/initializers/inflections.rb +10 -0
  37. data/test/dummy/config/initializers/mime_types.rb +5 -0
  38. data/test/dummy/config/initializers/secret_token.rb +7 -0
  39. data/test/dummy/config/initializers/session_store.rb +8 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/test/dummy/config/locales/en.yml +5 -0
  42. data/test/dummy/config/routes.rb +62 -0
  43. data/test/dummy/db/development.sqlite3 +0 -0
  44. data/test/dummy/db/schema.rb +22 -0
  45. data/test/dummy/db/test.sqlite3 +0 -0
  46. data/test/dummy/log/development.log +2369 -0
  47. data/test/dummy/log/test.log +1290 -0
  48. data/test/dummy/public/404.html +26 -0
  49. data/test/dummy/public/422.html +26 -0
  50. data/test/dummy/public/500.html +26 -0
  51. data/test/dummy/public/favicon.ico +0 -0
  52. data/test/dummy/script/rails +6 -0
  53. data/test/dummy/test/functional/pdf_controller_test.rb +20 -0
  54. data/test/dummy/test/unit/helpers/pdf_helper_test.rb +4 -0
  55. data/test/dummy/tmp/cache/assets/C1C/440/sprockets%2F327750d15e74b4631b7219847f00528a +374 -0
  56. data/test/dummy/tmp/cache/assets/CAE/130/sprockets%2F5673d456292004d3af77fbb34191a3d9 +377 -0
  57. data/test/dummy/tmp/cache/assets/CFF/990/sprockets%2F7cc4697a647f5ef443f0855f8831f7a9 +0 -0
  58. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  59. data/test/dummy/tmp/cache/assets/D43/620/sprockets%2Ff65e4a70390755ca5c1aeb1d7c596e47 +9271 -0
  60. data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  61. data/test/dummy/tmp/cache/assets/D6F/7F0/sprockets%2Fb93a9d8d60404a4c8a5f64e1c8ae4d44 +0 -0
  62. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +9651 -0
  63. data/test/dummy/tmp/cache/assets/DA1/220/sprockets%2F79ecb141dd3f168f83c4d3f1cf075b4d +0 -0
  64. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  65. data/test/dummy/tmp/cache/assets/E2F/1D0/sprockets%2Fa19e16cee5f9ddbfbb85e2b9dc2420b7 +9268 -0
  66. data/test/dummy/tmp/cache/assets/E3A/290/sprockets%2F8657bc1d0b7bacf9b7ce74a379fbdee6 +0 -0
  67. data/test/integration/navigation_test.rb +10 -0
  68. data/test/prawn-rails_test.rb +7 -0
  69. data/test/test_helper.rb +10 -0
  70. metadata +238 -0
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PrawnRailsTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, PrawnRails
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
metadata ADDED
@@ -0,0 +1,238 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: prawn-rails
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Carlos Ortiz
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-02-21 00:00:00 -06:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 3
31
+ - 1
32
+ - 0
33
+ version: 3.1.0
34
+ type: :development
35
+ name: rails
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ type: :development
49
+ name: sqlite3
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ type: :runtime
63
+ name: prawn
64
+ version_requirements: *id003
65
+ description: Prawn Handler for RoR 3.x projects handles and registers pdf formats
66
+ email:
67
+ - chrono.dark@gmail.com
68
+ executables: []
69
+
70
+ extensions: []
71
+
72
+ extra_rdoc_files: []
73
+
74
+ files:
75
+ - lib/prawn-rails/engine.rb
76
+ - lib/prawn-rails/prawn_handler.rb
77
+ - lib/prawn-rails/prawn_rails_helper.rb
78
+ - lib/prawn-rails/version.rb
79
+ - lib/prawn-rails.rb
80
+ - lib/tasks/prawn-rails_tasks.rake
81
+ - MIT-LICENSE
82
+ - Rakefile
83
+ - README.markdown
84
+ - test/dummy/app/assets/javascripts/application.js
85
+ - test/dummy/app/assets/javascripts/pdf.js
86
+ - test/dummy/app/assets/javascripts/products.js
87
+ - test/dummy/app/assets/stylesheets/application.css
88
+ - test/dummy/app/assets/stylesheets/pdf.css
89
+ - test/dummy/app/assets/stylesheets/products.css
90
+ - test/dummy/app/assets/stylesheets/scaffold.css
91
+ - test/dummy/app/controllers/application_controller.rb
92
+ - test/dummy/app/controllers/pdf_controller.rb
93
+ - test/dummy/app/helpers/application_helper.rb
94
+ - test/dummy/app/helpers/pdf_helper.rb
95
+ - test/dummy/app/helpers/products_helper.rb
96
+ - test/dummy/app/models/product.rb
97
+ - test/dummy/app/views/layouts/application.html.erb
98
+ - test/dummy/app/views/pdf/render_pdf.html.erb
99
+ - test/dummy/app/views/pdf/render_pdf.pdf.prawn
100
+ - test/dummy/config/application.rb
101
+ - test/dummy/config/boot.rb
102
+ - test/dummy/config/database.yml
103
+ - test/dummy/config/environment.rb
104
+ - test/dummy/config/environments/development.rb
105
+ - test/dummy/config/environments/production.rb
106
+ - test/dummy/config/environments/test.rb
107
+ - test/dummy/config/initializers/backtrace_silencers.rb
108
+ - test/dummy/config/initializers/inflections.rb
109
+ - test/dummy/config/initializers/mime_types.rb
110
+ - test/dummy/config/initializers/secret_token.rb
111
+ - test/dummy/config/initializers/session_store.rb
112
+ - test/dummy/config/initializers/wrap_parameters.rb
113
+ - test/dummy/config/locales/en.yml
114
+ - test/dummy/config/routes.rb
115
+ - test/dummy/config.ru
116
+ - test/dummy/db/development.sqlite3
117
+ - test/dummy/db/schema.rb
118
+ - test/dummy/db/test.sqlite3
119
+ - test/dummy/log/development.log
120
+ - test/dummy/log/test.log
121
+ - test/dummy/public/404.html
122
+ - test/dummy/public/422.html
123
+ - test/dummy/public/500.html
124
+ - test/dummy/public/favicon.ico
125
+ - test/dummy/Rakefile
126
+ - test/dummy/script/rails
127
+ - test/dummy/test/functional/pdf_controller_test.rb
128
+ - test/dummy/test/unit/helpers/pdf_helper_test.rb
129
+ - test/dummy/tmp/cache/assets/C1C/440/sprockets%2F327750d15e74b4631b7219847f00528a
130
+ - test/dummy/tmp/cache/assets/CAE/130/sprockets%2F5673d456292004d3af77fbb34191a3d9
131
+ - test/dummy/tmp/cache/assets/CFF/990/sprockets%2F7cc4697a647f5ef443f0855f8831f7a9
132
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
133
+ - test/dummy/tmp/cache/assets/D43/620/sprockets%2Ff65e4a70390755ca5c1aeb1d7c596e47
134
+ - test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
135
+ - test/dummy/tmp/cache/assets/D6F/7F0/sprockets%2Fb93a9d8d60404a4c8a5f64e1c8ae4d44
136
+ - test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
137
+ - test/dummy/tmp/cache/assets/DA1/220/sprockets%2F79ecb141dd3f168f83c4d3f1cf075b4d
138
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
139
+ - test/dummy/tmp/cache/assets/E2F/1D0/sprockets%2Fa19e16cee5f9ddbfbb85e2b9dc2420b7
140
+ - test/dummy/tmp/cache/assets/E3A/290/sprockets%2F8657bc1d0b7bacf9b7ce74a379fbdee6
141
+ - test/integration/navigation_test.rb
142
+ - test/prawn-rails_test.rb
143
+ - test/test_helper.rb
144
+ has_rdoc: true
145
+ homepage: https://github.com/cortiz/prawn-rails
146
+ licenses: []
147
+
148
+ post_install_message:
149
+ rdoc_options: []
150
+
151
+ require_paths:
152
+ - lib
153
+ required_ruby_version: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ hash: 3
159
+ segments:
160
+ - 0
161
+ version: "0"
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ hash: 3
168
+ segments:
169
+ - 0
170
+ version: "0"
171
+ requirements: []
172
+
173
+ rubyforge_project:
174
+ rubygems_version: 1.6.2
175
+ signing_key:
176
+ specification_version: 3
177
+ summary: Prawn Handler for RoR 3.x projects
178
+ test_files:
179
+ - test/dummy/app/assets/javascripts/application.js
180
+ - test/dummy/app/assets/javascripts/pdf.js
181
+ - test/dummy/app/assets/javascripts/products.js
182
+ - test/dummy/app/assets/stylesheets/application.css
183
+ - test/dummy/app/assets/stylesheets/pdf.css
184
+ - test/dummy/app/assets/stylesheets/products.css
185
+ - test/dummy/app/assets/stylesheets/scaffold.css
186
+ - test/dummy/app/controllers/application_controller.rb
187
+ - test/dummy/app/controllers/pdf_controller.rb
188
+ - test/dummy/app/helpers/application_helper.rb
189
+ - test/dummy/app/helpers/pdf_helper.rb
190
+ - test/dummy/app/helpers/products_helper.rb
191
+ - test/dummy/app/models/product.rb
192
+ - test/dummy/app/views/layouts/application.html.erb
193
+ - test/dummy/app/views/pdf/render_pdf.html.erb
194
+ - test/dummy/app/views/pdf/render_pdf.pdf.prawn
195
+ - test/dummy/config/application.rb
196
+ - test/dummy/config/boot.rb
197
+ - test/dummy/config/database.yml
198
+ - test/dummy/config/environment.rb
199
+ - test/dummy/config/environments/development.rb
200
+ - test/dummy/config/environments/production.rb
201
+ - test/dummy/config/environments/test.rb
202
+ - test/dummy/config/initializers/backtrace_silencers.rb
203
+ - test/dummy/config/initializers/inflections.rb
204
+ - test/dummy/config/initializers/mime_types.rb
205
+ - test/dummy/config/initializers/secret_token.rb
206
+ - test/dummy/config/initializers/session_store.rb
207
+ - test/dummy/config/initializers/wrap_parameters.rb
208
+ - test/dummy/config/locales/en.yml
209
+ - test/dummy/config/routes.rb
210
+ - test/dummy/config.ru
211
+ - test/dummy/db/development.sqlite3
212
+ - test/dummy/db/schema.rb
213
+ - test/dummy/db/test.sqlite3
214
+ - test/dummy/log/development.log
215
+ - test/dummy/log/test.log
216
+ - test/dummy/public/404.html
217
+ - test/dummy/public/422.html
218
+ - test/dummy/public/500.html
219
+ - test/dummy/public/favicon.ico
220
+ - test/dummy/Rakefile
221
+ - test/dummy/script/rails
222
+ - test/dummy/test/functional/pdf_controller_test.rb
223
+ - test/dummy/test/unit/helpers/pdf_helper_test.rb
224
+ - test/dummy/tmp/cache/assets/C1C/440/sprockets%2F327750d15e74b4631b7219847f00528a
225
+ - test/dummy/tmp/cache/assets/CAE/130/sprockets%2F5673d456292004d3af77fbb34191a3d9
226
+ - test/dummy/tmp/cache/assets/CFF/990/sprockets%2F7cc4697a647f5ef443f0855f8831f7a9
227
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
228
+ - test/dummy/tmp/cache/assets/D43/620/sprockets%2Ff65e4a70390755ca5c1aeb1d7c596e47
229
+ - test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
230
+ - test/dummy/tmp/cache/assets/D6F/7F0/sprockets%2Fb93a9d8d60404a4c8a5f64e1c8ae4d44
231
+ - test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
232
+ - test/dummy/tmp/cache/assets/DA1/220/sprockets%2F79ecb141dd3f168f83c4d3f1cf075b4d
233
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
234
+ - test/dummy/tmp/cache/assets/E2F/1D0/sprockets%2Fa19e16cee5f9ddbfbb85e2b9dc2420b7
235
+ - test/dummy/tmp/cache/assets/E3A/290/sprockets%2F8657bc1d0b7bacf9b7ce74a379fbdee6
236
+ - test/integration/navigation_test.rb
237
+ - test/prawn-rails_test.rb
238
+ - test/test_helper.rb