prawn-rails 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +5 -4
  4. data/lib/prawn-rails/document.rb +5 -4
  5. data/lib/prawn-rails/rails_helper.rb +0 -6
  6. data/lib/prawn-rails/renderer.rb +2 -2
  7. data/lib/prawn-rails/version.rb +1 -1
  8. metadata +24 -57
  9. data/test/dummy_app/db/test.sqlite3 +0 -0
  10. data/test/dummy_app/log/test.log +0 -124
  11. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/-T/-Ty2Lif1RQ31LfQ3sdBLOYNu3fwjefNQWZXg61o7S0Q.cache +0 -1
  12. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/-m/-mGgwBQ39pkjNoHzuM7XVbFYsHOyv_6SOM_CmI-kLnw.cache +0 -0
  13. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/3N/3NnKgR2TsTI1qCXKZpts0uJzp2dRJcoYp3nnFU6YE4o.cache +0 -2
  14. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/3j/3jV3hjwp5k_C7riQHMv6rtrQUfKwPXzFkJ32sUJuN_E.cache +0 -0
  15. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/4O/4O6Anm3R8aSIVfMhGtp5tZK3x17fcY1SbWoDN_6hb-o.cache +0 -2
  16. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/7b/7bJ7ytF6vF1igkdeslMStlJ0FX-qsua3IF_1YPq8oCw.cache +0 -1
  17. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/Ac/AcCgT9z272BU3f9VmSXyH6aXg0-fBwSzc8apjB9C0T4.cache +0 -1
  18. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/EG/EGPvvBJ-Qo0bhB9ro0HZH9s4Ln-PNqgz-uYTi5tV_88.cache +0 -1
  19. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/LR/LRLaw7viwBb9Mi_VFZxGbKIooy8Fqf1aB_iOTETsMyc.cache +0 -3
  20. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/Mj/MjwYGG9GkHD1fwwH2bg66EBYl3zCA_mqeDF9otey4-U.cache +0 -3
  21. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/SJ/SJ3C0iDdYBBG_yOrab-Sw62moViXQPI90mwV-VCda_o.cache +0 -0
  22. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/ie/ieDr67bZ5kFv-ENcBz8Q7TiuRQETGYgdgzYHyXqVcoI.cache +0 -0
  23. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/qW/qWT2nJzx5CDYl-mSJ0WXKcYzB6yu_HDoZLsoO5mWh7g.cache +0 -1
  24. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/se/seL12R6emubM_qf0qkqUQp8lYPC0Sv3ALlPVz2lH5OM.cache +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcdfd9339a473a4b6ffac041d0d1b42c0630711b5784145b558e5050490ddebf
4
- data.tar.gz: 6251f2b7ae1ab549bf54986e5ea217221001e2e5dfd7761fac45958e62aee44b
3
+ metadata.gz: 8cf8e2fcbecb181b9a2a09c14fc393dfe94852e556c662f4e1a90254705bc5e2
4
+ data.tar.gz: 27efe009afe9618dcde1f2fd46b82586ab05ce69fadebb105a6c7234b7c00235
5
5
  SHA512:
6
- metadata.gz: 14961e5d174b0380f6bc763e52ee641f4d7867f4fc1987edf0c54d21399a0a98d8940fa14bfef33fa108f1ca6e447a35f73b25f1aeccf8ffa0af6bbcb944c9c1
7
- data.tar.gz: 41842b2616f8b7ae572085fc25fc538845e667c856cf20f54535963073123b8fa3c6c42a6193ef9b069e468474cd7f324e734f64d36e89c970dc57e4d6808cb8
6
+ metadata.gz: f1f204eff5f570c1ba0bebb6602421051d8a983ab84ade21bf36eb8522eb45e30fb42019d251a73bcb5aefed11933c15c084a68bd18adba44ca61fa754e43e78
7
+ data.tar.gz: a4f1f589c9a9f2dcc90925be191371dac28bc4e700ea719cd59b4f66bdfdcbbe549263d04c19ad7e643d88f1ee607059161c13b02548f6290802d1c2b6ec9473
@@ -3,6 +3,10 @@
3
3
  * `Unreleased`
4
4
  - Nothing yet
5
5
 
6
+ * `v1.2.1`
7
+ - [PR #39](https://github.com/cortiz/prawn-rails/pull/39) - Fix Rails 6 deprecation warning for single arity template handlers
8
+ - Remove unnecessary option logic from `prawn_document` method
9
+
6
10
  * `v1.2.0`
7
11
  - [PR #31](https://github.com/cortiz/prawn-rails/pull/31) - Use Prawn::Document.extensions in favor of custom plug-in loading. This removes all changes made in PR #29 and should behave much more appropriately now.
8
12
  - [Undo PR #29](https://github.com/cortiz/prawn-rails/pull/31) - Use Prawn::Document.extensions in favor of custom plug-in loading
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
- # Prawn-Rails [![Gem Version](https://badge.fury.io/rb/prawn-rails.svg)](http://badge.fury.io/rb/prawn-rails)
2
- <a href='http://ko-fi.com/A552JBK' target='_blank'><img height='32' style='border:0px;height:32px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /></a>
1
+ # Prawn-Rails
2
+ <a href="https://badge.fury.io/rb/prawn-rails" target="_blank"><img height="21" style='border:0px;height:21px;' border='0' src="https://badge.fury.io/rb/prawn-rails.svg" alt="Gem Version"></a>
3
+ <a href='https://rubygems.org/gems/prawn-rails' target='_blank'><img height='21' style='border:0px;height:21px;' src='https://ruby-gem-downloads-badge.herokuapp.com/prawn-rails?label=rubygems&type=total&total_label=downloads&color=brightgreen' border='0' alt='RubyGems Downloads' /></a>
4
+ <a href='https://ko-fi.com/A5071NK' target='_blank'><img height='22' style='border:0px;height:22px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /></a>
5
+
3
6
 
4
7
  # Install
5
8
  ```ruby
@@ -93,5 +96,3 @@ end
93
96
  Maintained by Weston Ganger - @westonganger
94
97
 
95
98
  Created by Carlos Ortiz - @cortiz
96
-
97
- <a href='http://ko-fi.com/A552JBK' target='_blank'><img height='32' style='border:0px;height:32px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /></a>
@@ -10,13 +10,14 @@ module PrawnRails
10
10
  Prawn::Document.extensions
11
11
  end
12
12
 
13
- def initialize(opts = {})
13
+ def initialize(options = {})
14
14
  if PrawnRails.config.respond_to?(:to_h)
15
- default = PrawnRails.config.to_h.merge(opts)
15
+ options.reverse_merge!(PrawnRails.config.to_h)
16
16
  else
17
- default = PrawnRails.config.marshal_dump.merge(opts)
17
+ options.reverse_merge!(PrawnRails.config.marshal_dump)
18
18
  end
19
- super(default)
19
+
20
+ super(options)
20
21
  end
21
22
 
22
23
  # Typically text expects a string. But Rails views have this interesting concept that they implicitly call `to_s` on all the variables before rendering. So, passing an integer to text fails:
@@ -5,17 +5,11 @@ module PrawnRails
5
5
 
6
6
  def prawn_document(options={})
7
7
  options.reverse_merge!({
8
- page_layout: PrawnRails.config.page_layout,
9
- page_size: PrawnRails.config.page_size,
10
8
  info: {
11
9
  Title: @filename.sub(/\.(p|P)(d|D)(f|F)$/, '')
12
10
  }
13
11
  })
14
12
 
15
- if PrawnRails.config.skip_page_creation
16
- options.reverse_merge!(skip_page_creation: true)
17
- end
18
-
19
13
  pdf = PrawnRails::Document.new(options)
20
14
 
21
15
  yield pdf if block_given?
@@ -4,7 +4,7 @@ module PrawnRails
4
4
  class Renderer
5
5
 
6
6
  ### WARNING: BE VERY CAREFUL IF EDITING THIS METHOD
7
- def self.call(template)
7
+ def self.call(template, source = nil)
8
8
  %{
9
9
  @filename ||= "\#{controller.action_name}.pdf"
10
10
 
@@ -12,7 +12,7 @@ module PrawnRails
12
12
  controller.response.headers['Content-Disposition'] = "inline; filename=\\\"\#{@filename}\\\""
13
13
  end
14
14
 
15
- #{template.source.strip}
15
+ #{(source || template.source).strip}
16
16
  }
17
17
  end
18
18
 
@@ -1,3 +1,3 @@
1
1
  module PrawnRails
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Ortiz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-28 00:00:00.000000000 Z
12
+ date: 2019-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: prawn
@@ -170,22 +170,6 @@ files:
170
170
  - test/dummy_app/config/routes.rb
171
171
  - test/dummy_app/config/secrets.yml
172
172
  - test/dummy_app/db/schema.rb
173
- - test/dummy_app/db/test.sqlite3
174
- - test/dummy_app/log/test.log
175
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/-T/-Ty2Lif1RQ31LfQ3sdBLOYNu3fwjefNQWZXg61o7S0Q.cache
176
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/-m/-mGgwBQ39pkjNoHzuM7XVbFYsHOyv_6SOM_CmI-kLnw.cache
177
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/3N/3NnKgR2TsTI1qCXKZpts0uJzp2dRJcoYp3nnFU6YE4o.cache
178
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/3j/3jV3hjwp5k_C7riQHMv6rtrQUfKwPXzFkJ32sUJuN_E.cache
179
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/4O/4O6Anm3R8aSIVfMhGtp5tZK3x17fcY1SbWoDN_6hb-o.cache
180
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/7b/7bJ7ytF6vF1igkdeslMStlJ0FX-qsua3IF_1YPq8oCw.cache
181
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/Ac/AcCgT9z272BU3f9VmSXyH6aXg0-fBwSzc8apjB9C0T4.cache
182
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/EG/EGPvvBJ-Qo0bhB9ro0HZH9s4Ln-PNqgz-uYTi5tV_88.cache
183
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/LR/LRLaw7viwBb9Mi_VFZxGbKIooy8Fqf1aB_iOTETsMyc.cache
184
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/Mj/MjwYGG9GkHD1fwwH2bg66EBYl3zCA_mqeDF9otey4-U.cache
185
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/SJ/SJ3C0iDdYBBG_yOrab-Sw62moViXQPI90mwV-VCda_o.cache
186
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/ie/ieDr67bZ5kFv-ENcBz8Q7TiuRQETGYgdgzYHyXqVcoI.cache
187
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/qW/qWT2nJzx5CDYl-mSJ0WXKcYzB6yu_HDoZLsoO5mWh7g.cache
188
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/se/seL12R6emubM_qf0qkqUQp8lYPC0Sv3ALlPVz2lH5OM.cache
189
173
  - test/integration/prawn_rails_test.rb
190
174
  - test/prawn_rails_test.rb
191
175
  - test/test_helper.rb
@@ -207,58 +191,41 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
191
  - !ruby/object:Gem::Version
208
192
  version: '0'
209
193
  requirements: []
210
- rubyforge_project:
211
- rubygems_version: 2.7.6
194
+ rubygems_version: 3.0.3
212
195
  signing_key:
213
196
  specification_version: 4
214
197
  summary: Prawn Handler for Rails
215
198
  test_files:
199
+ - test/integration/prawn_rails_test.rb
200
+ - test/prawn_rails_test.rb
201
+ - test/test_helper.rb
202
+ - test/dummy_app/Rakefile
203
+ - test/dummy_app/db/schema.rb
204
+ - test/dummy_app/app/mailers/reports_mailer.rb
205
+ - test/dummy_app/app/controllers/reports_controller.rb
206
+ - test/dummy_app/app/controllers/application_controller.rb
216
207
  - test/dummy_app/app/assets/javascripts/application.js
217
208
  - test/dummy_app/app/assets/stylesheets/application.css
218
- - test/dummy_app/app/controllers/application_controller.rb
219
- - test/dummy_app/app/controllers/reports_controller.rb
220
- - test/dummy_app/app/mailers/reports_mailer.rb
209
+ - test/dummy_app/app/views/reports_mailer/send_report.html.erb
221
210
  - test/dummy_app/app/views/layouts/application.html.erb
222
- - test/dummy_app/app/views/reports/sample.html.erb
223
- - test/dummy_app/app/views/reports/sample.pdf.prawn
224
211
  - test/dummy_app/app/views/reports/table.pdf.prawn
225
- - test/dummy_app/app/views/reports_mailer/send_report.html.erb
212
+ - test/dummy_app/app/views/reports/sample.pdf.prawn
213
+ - test/dummy_app/app/views/reports/sample.html.erb
214
+ - test/dummy_app/config.ru
226
215
  - test/dummy_app/config/application.rb
227
- - test/dummy_app/config/boot.rb
228
- - test/dummy_app/config/database.yml
229
- - test/dummy_app/config/environment.rb
230
- - test/dummy_app/config/environments/development.rb
231
216
  - test/dummy_app/config/environments/production.rb
217
+ - test/dummy_app/config/environments/development.rb
232
218
  - test/dummy_app/config/environments/test.rb
233
- - test/dummy_app/config/initializers/backtrace_silencers.rb
234
- - test/dummy_app/config/initializers/inflections.rb
219
+ - test/dummy_app/config/locales/en.yml
220
+ - test/dummy_app/config/routes.rb
221
+ - test/dummy_app/config/secrets.yml
222
+ - test/dummy_app/config/environment.rb
235
223
  - test/dummy_app/config/initializers/mime_types.rb
236
224
  - test/dummy_app/config/initializers/prawn-rails.rb
237
225
  - test/dummy_app/config/initializers/secret_token.rb
226
+ - test/dummy_app/config/initializers/backtrace_silencers.rb
227
+ - test/dummy_app/config/initializers/inflections.rb
238
228
  - test/dummy_app/config/initializers/session_store.rb
239
229
  - test/dummy_app/config/initializers/wrap_parameters.rb
240
- - test/dummy_app/config/locales/en.yml
241
- - test/dummy_app/config/routes.rb
242
- - test/dummy_app/config/secrets.yml
243
- - test/dummy_app/config.ru
244
- - test/dummy_app/db/schema.rb
245
- - test/dummy_app/db/test.sqlite3
246
- - test/dummy_app/log/test.log
247
- - test/dummy_app/Rakefile
248
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/-m/-mGgwBQ39pkjNoHzuM7XVbFYsHOyv_6SOM_CmI-kLnw.cache
249
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/-T/-Ty2Lif1RQ31LfQ3sdBLOYNu3fwjefNQWZXg61o7S0Q.cache
250
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/3j/3jV3hjwp5k_C7riQHMv6rtrQUfKwPXzFkJ32sUJuN_E.cache
251
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/3N/3NnKgR2TsTI1qCXKZpts0uJzp2dRJcoYp3nnFU6YE4o.cache
252
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/4O/4O6Anm3R8aSIVfMhGtp5tZK3x17fcY1SbWoDN_6hb-o.cache
253
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/7b/7bJ7ytF6vF1igkdeslMStlJ0FX-qsua3IF_1YPq8oCw.cache
254
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/Ac/AcCgT9z272BU3f9VmSXyH6aXg0-fBwSzc8apjB9C0T4.cache
255
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/EG/EGPvvBJ-Qo0bhB9ro0HZH9s4Ln-PNqgz-uYTi5tV_88.cache
256
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/ie/ieDr67bZ5kFv-ENcBz8Q7TiuRQETGYgdgzYHyXqVcoI.cache
257
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/LR/LRLaw7viwBb9Mi_VFZxGbKIooy8Fqf1aB_iOTETsMyc.cache
258
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/Mj/MjwYGG9GkHD1fwwH2bg66EBYl3zCA_mqeDF9otey4-U.cache
259
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/qW/qWT2nJzx5CDYl-mSJ0WXKcYzB6yu_HDoZLsoO5mWh7g.cache
260
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/se/seL12R6emubM_qf0qkqUQp8lYPC0Sv3ALlPVz2lH5OM.cache
261
- - test/dummy_app/tmp/cache/assets/sprockets/v3.0/SJ/SJ3C0iDdYBBG_yOrab-Sw62moViXQPI90mwV-VCda_o.cache
262
- - test/integration/prawn_rails_test.rb
263
- - test/prawn_rails_test.rb
264
- - test/test_helper.rb
230
+ - test/dummy_app/config/database.yml
231
+ - test/dummy_app/config/boot.rb
File without changes
@@ -1,124 +0,0 @@
1
-  (0.1ms) begin transaction
2
- ------------------------------------------
3
- NavigationTest: test_Renders_pdf_to_string
4
- ------------------------------------------
5
- Rendering reports/sample.pdf.prawn
6
- Rendered reports/sample.pdf.prawn (87.9ms)
7
-  (0.1ms) rollback transaction
8
-  (0.2ms) begin transaction
9
- ------------------------------------------------------
10
- NavigationTest: test_Registers_:prawn_template_handler
11
- ------------------------------------------------------
12
-  (0.1ms) rollback transaction
13
-  (0.1ms) begin transaction
14
- ---------------------------------------------
15
- NavigationTest: test_Registers_:pdf_mime_type
16
- ---------------------------------------------
17
-  (0.1ms) rollback transaction
18
-  (0.1ms) begin transaction
19
- ----------------------------------------------
20
- NavigationTest: test_Renders_sample_pdf_action
21
- ----------------------------------------------
22
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-28 06:47:20 -0700
23
- Processing by ReportsController#sample as PDF
24
- Rendering reports/sample.pdf.prawn
25
- Rendered reports/sample.pdf.prawn (17.0ms)
26
- Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.0ms)
27
-  (0.2ms) rollback transaction
28
-  (0.1ms) begin transaction
29
- ------------------------------------------------------------------------------------
30
- NavigationTest: test_Renders_table_pdf_action_using_auto-required_plugin_Prawn-Table
31
- ------------------------------------------------------------------------------------
32
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-28 06:47:20 -0700
33
- Processing by ReportsController#table as PDF
34
- Rendering reports/table.pdf.prawn
35
- Rendered reports/table.pdf.prawn (22.8ms)
36
- Completed 200 OK in 27ms (Views: 23.6ms | ActiveRecord: 0.0ms)
37
-  (0.1ms) rollback transaction
38
-  (0.0ms) begin transaction
39
- ----------------------------------------
40
- NavigationTest: test_Renders_html_action
41
- ----------------------------------------
42
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-28 06:47:20 -0700
43
- Processing by ReportsController#sample as HTML
44
- Rendering reports/sample.html.erb within layouts/application
45
- Rendered reports/sample.html.erb within layouts/application (1.6ms)
46
- Completed 200 OK in 325ms (Views: 321.7ms | ActiveRecord: 0.0ms)
47
-  (0.1ms) rollback transaction
48
-  (0.1ms) begin transaction
49
- -----------------------------------------------
50
- NavigationTest: test_render_to_string_in_mailer
51
- -----------------------------------------------
52
- Rendering reports/sample.pdf.prawn
53
- Rendered reports/sample.pdf.prawn (18.9ms)
54
- Rendering reports_mailer/send_report.html.erb
55
- Rendered reports_mailer/send_report.html.erb (0.4ms)
56
- ReportsMailer#send_report: processed outbound mail in 367.1ms
57
-  (0.1ms) rollback transaction
58
-  (0.1ms) begin transaction
59
- ----------------------------------------------
60
- PrawnRailsTest: test_text_can_take_non_strings
61
- ----------------------------------------------
62
-  (0.1ms) rollback transaction
63
-  (0.1ms) begin transaction
64
- ----------------------------------------------
65
- PrawnRailsTest: test_text_can_take_non_strings
66
- ----------------------------------------------
67
-  (0.1ms) rollback transaction
68
-  (0.0ms) begin transaction
69
- ------------------------------------------------------------------------------------
70
- NavigationTest: test_Renders_table_pdf_action_using_auto-required_plugin_Prawn-Table
71
- ------------------------------------------------------------------------------------
72
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-28 06:53:41 -0700
73
- Processing by ReportsController#table as PDF
74
- Rendering reports/table.pdf.prawn
75
- Rendered reports/table.pdf.prawn (16.8ms)
76
- Completed 200 OK in 31ms (Views: 27.5ms | ActiveRecord: 0.0ms)
77
-  (0.1ms) rollback transaction
78
-  (0.1ms) begin transaction
79
- ------------------------------------------
80
- NavigationTest: test_Renders_pdf_to_string
81
- ------------------------------------------
82
- Rendering reports/sample.pdf.prawn
83
- Rendered reports/sample.pdf.prawn (23.4ms)
84
-  (0.1ms) rollback transaction
85
-  (0.1ms) begin transaction
86
- ----------------------------------------------
87
- NavigationTest: test_Renders_sample_pdf_action
88
- ----------------------------------------------
89
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-28 06:53:41 -0700
90
- Processing by ReportsController#sample as PDF
91
- Rendering reports/sample.pdf.prawn
92
- Rendered reports/sample.pdf.prawn (20.2ms)
93
- Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 0.0ms)
94
-  (0.1ms) rollback transaction
95
-  (0.0ms) begin transaction
96
- -----------------------------------------------
97
- NavigationTest: test_render_to_string_in_mailer
98
- -----------------------------------------------
99
- Rendering reports/sample.pdf.prawn
100
- Rendered reports/sample.pdf.prawn (18.0ms)
101
- Rendering reports_mailer/send_report.html.erb
102
- Rendered reports_mailer/send_report.html.erb (2.3ms)
103
- ReportsMailer#send_report: processed outbound mail in 479.1ms
104
-  (0.1ms) rollback transaction
105
-  (0.1ms) begin transaction
106
- ------------------------------------------------------
107
- NavigationTest: test_Registers_:prawn_template_handler
108
- ------------------------------------------------------
109
-  (0.1ms) rollback transaction
110
-  (0.1ms) begin transaction
111
- ----------------------------------------
112
- NavigationTest: test_Renders_html_action
113
- ----------------------------------------
114
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-28 06:53:42 -0700
115
- Processing by ReportsController#sample as HTML
116
- Rendering reports/sample.html.erb within layouts/application
117
- Rendered reports/sample.html.erb within layouts/application (0.5ms)
118
- Completed 200 OK in 279ms (Views: 273.8ms | ActiveRecord: 0.0ms)
119
-  (0.1ms) rollback transaction
120
-  (0.1ms) begin transaction
121
- ---------------------------------------------
122
- NavigationTest: test_Registers_:pdf_mime_type
123
- ---------------------------------------------
124
-  (0.0ms) rollback transaction
@@ -1 +0,0 @@
1
- I"�app/assets/javascripts/application.js?type=application/javascript&id=cb3b727b4096110dd5e8049526d219e5c85df923272026571e5b5ed1e223a86f:ET
@@ -1,2 +0,0 @@
1
- [o:Set:
2
- @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF
@@ -1,2 +0,0 @@
1
- [o:Set:
2
- @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTF
@@ -1 +0,0 @@
1
- I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=96ba9dc308e6dfde737ea84d13c263f9b5937647e23b63e472144dafd52010cb:ET
@@ -1 +0,0 @@
1
- "%�汷g�d�Q~�A�fǟ��#�R��&�j�
@@ -1 +0,0 @@
1
- "%��B�����șo�$'�A�d��L���xR�U
@@ -1,3 +0,0 @@
1
- [o:Set:
2
- @hash}
3
- I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"9file-digest://app/assets/stylesheets/application.css;TTF
@@ -1,3 +0,0 @@
1
- [o:Set:
2
- @hash}
3
- I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"8file-digest://app/assets/javascripts/application.js;TTF
@@ -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