Skip to content

Commit

Permalink
Finish switching to Railsties
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger committed May 20, 2021
1 parent 96b2879 commit 7575606
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# Changelog

* `Unreleased`
- Nothing yet
* `Unreleased` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.4.0...master)
- [ef08001](https://github.com/cortiz/prawn-rails/commit/ef08001) - Fix bug in v1.4.0, where PDF's wouldnt open as `inline` within the browser. Problem was due to incomplete switch to Railsties from [PR #41](https://github.com/cortiz/prawn-rails/pull/41)

* `v1.4.0`
* `v1.4.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.3.0...v1.4.0)
- [PR #41](https://github.com/cortiz/prawn-rails/pull/41) - Depend on `railsties` instead of `rails` gem to avoid pulling in unnecessary dependencies such as action_cable, etc.

* `v1.3.0`
* `v1.3.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.2.1...v1.3.0)
- [PR #40](https://github.com/cortiz/prawn-rails/pull/40) - Add `:filename` and `:disposition` options for `prawn_document
- [PR #40](https://github.com/cortiz/prawn-rails/pull/40) - Do not override existing`Content-Disposition` headers

* `v1.2.1`
* `v1.2.1` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.2.0...v1.2.1)
- [PR #39](https://github.com/cortiz/prawn-rails/pull/39) - Fix Rails 6 deprecation warning for single arity template handlers
- Remove unnecessary option logic from `prawn_document` method

* `v1.2.0`
* `v1.2.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.1.0...v1.2.0)
- [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.
- [Undo PR #29](https://github.com/cortiz/prawn-rails/pull/31) - Use Prawn::Document.extensions in favor of custom plug-in loading
- [PR #30](https://github.com/cortiz/prawn-rails/pull/30) - Allow rendering in ActionMailer

* `v1.1.0`
* `v1.1.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.0.2...v1.1.0)
- [PR #29](https://github.com/cortiz/prawn-rails/pull/29) - Require all installed prawn extensions
- Removed unnecessary `html_strip` helper method. If you were using this feature, instead use Rails built in `strip_tags(html_str)` or `ActionView::Base.full_sanitizer.sanitize(html_str)`
- Add legitimate tests

* `v1.0.1`
* `v1.0.1` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.0.0...v1.0.1)
- Fix error when using `ActionController.render_to_string`

* `v1.0.0`
* `v1.0.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.0.0...v0.1.1)
- Support `@filename`
- Set PDF Title metadata based on `@filename` if not specified
- Fix for Ruby 1.9.3+
Expand Down
4 changes: 2 additions & 2 deletions lib/prawn-rails.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "prawn-rails/config"
require "prawn-rails/engine"
require "prawn-rails/version"
require "prawn-rails/config"
require "prawn-rails/railtie"

module PrawnRails
end
2 changes: 1 addition & 1 deletion lib/prawn-rails/engine.rb → lib/prawn-rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "prawn-rails/renderer"

module PrawnRails
class Engine < Rails::Engine
class Railtie < Rails::Railtie
ActionView::Base.send(:include, PrawnRails::RailsHelper)
ActionView::Template.register_template_handler(:prawn, PrawnRails::Renderer)

Expand Down

0 comments on commit 7575606

Please sign in to comment.