wicked_pdf 1.2.0 → 1.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/wicked_pdf/railtie.rb +7 -11
- data/lib/wicked_pdf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba824825c16cbfd77df10355d2c0d79df2ca6c88dedcd4173b4bdd7ff960f1ea
|
|
4
|
+
data.tar.gz: 506255faf5b255f4c779523b59f70f25381a4e945efbe1494bd5bc013b931d46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 64ec066b2af98b34506a4df1181901a534d5c481e39ff72dc64e70ee39d660f29446f910b92543ab95c575ae13625a52f6b2ba6f96c08b8f3417a084d2532839
|
|
7
|
+
data.tar.gz: 0714a03eeab244cdd18b79656dbd83a68674ae9a98eaaebd179c5dffb13323ba98104c9c7a9a75141c497e5d1f43956157380159800e4aa1f86503b2862562d4
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [1.2.1] - 2019-03-16
|
|
6
|
+
### Changed
|
|
7
|
+
- [Fix `SystemStackError` in some setups](https://github.com/mileszs/wicked_pdf/pull/813)
|
|
8
|
+
|
|
5
9
|
## [1.2.0] - 2019-03-16
|
|
6
10
|
### Added
|
|
7
11
|
- [Add `raise_on_all_errors: true` option to raise on any error that prints to STDOUT during PDF generation](https://github.com/mileszs/wicked_pdf/pull/751)
|
|
@@ -114,7 +118,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
114
118
|
- Asset helpers no longer add a file extension if it already is specified with one
|
|
115
119
|
|
|
116
120
|
# Compare Releases
|
|
117
|
-
- [1.2.
|
|
121
|
+
- [1.2.1...HEAD](https://github.com/mileszs/wicked_pdf/compare/1.2.1...HEAD)
|
|
122
|
+
- [1.2.0...1.2.1](https://github.com/mileszs/wicked_pdf/compare/1.1.0...1.2.0)
|
|
118
123
|
- [1.1.0...1.2.0](https://github.com/mileszs/wicked_pdf/compare/1.1.0...1.2.0)
|
|
119
124
|
- [1.0.6...1.1.0](https://github.com/mileszs/wicked_pdf/compare/1.0.6...1.1.0)
|
|
120
125
|
- [1.0.5...1.0.6](https://github.com/mileszs/wicked_pdf/compare/1.0.5...1.0.6)
|
data/lib/wicked_pdf/railtie.rb
CHANGED
|
@@ -5,20 +5,16 @@ require 'wicked_pdf/wicked_pdf_helper/assets'
|
|
|
5
5
|
class WickedPdf
|
|
6
6
|
if defined?(Rails.env)
|
|
7
7
|
|
|
8
|
-
if Rails::VERSION::MAJOR >=
|
|
8
|
+
if Rails::VERSION::MAJOR >= 4
|
|
9
9
|
|
|
10
10
|
class WickedRailtie < Rails::Railtie
|
|
11
11
|
initializer 'wicked_pdf.register' do |_app|
|
|
12
|
-
ActionController::Base.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class WickedRailtie < Rails::Railtie
|
|
20
|
-
initializer 'wicked_pdf.register' do |_app|
|
|
21
|
-
ActionController::Base.send :include, PdfHelper
|
|
12
|
+
if ActionController::Base.respond_to?(:prepend) &&
|
|
13
|
+
Object.method(:new).respond_to?(:super_method)
|
|
14
|
+
ActionController::Base.send :prepend, PdfHelper
|
|
15
|
+
else
|
|
16
|
+
ActionController::Base.send :include, PdfHelper
|
|
17
|
+
end
|
|
22
18
|
ActionView::Base.send :include, WickedPdfHelper::Assets
|
|
23
19
|
end
|
|
24
20
|
end
|
data/lib/wicked_pdf/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wicked_pdf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miles Z. Sterrett
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-03-
|
|
12
|
+
date: 2019-03-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|