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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b2b03398c3ff6b7c63f7b35289653d9227ff19bcc1e473e06880ba1c8414c67
4
- data.tar.gz: 17c06db62266b781714242e9b9bede0f528646257ebefda4f681b76314fd1f3f
3
+ metadata.gz: ba824825c16cbfd77df10355d2c0d79df2ca6c88dedcd4173b4bdd7ff960f1ea
4
+ data.tar.gz: 506255faf5b255f4c779523b59f70f25381a4e945efbe1494bd5bc013b931d46
5
5
  SHA512:
6
- metadata.gz: a2787ffaf69e82aeb6970880d49769a3f1d5b9ab254b8f9162f6bac0d0af58004d8dfc82bfff17b0f84f2b074a1221949b5de2b765e10692a6ea9537119f56ae
7
- data.tar.gz: 9b13a953a42f28c2509f777d0a16ef25922f4b81661167c3196aa91442d8179c9f2a3aec1e5c55893be0d1103d19bc42f08903ec3060eca62754d9d2d8be38ed
6
+ metadata.gz: 64ec066b2af98b34506a4df1181901a534d5c481e39ff72dc64e70ee39d660f29446f910b92543ab95c575ae13625a52f6b2ba6f96c08b8f3417a084d2532839
7
+ data.tar.gz: 0714a03eeab244cdd18b79656dbd83a68674ae9a98eaaebd179c5dffb13323ba98104c9c7a9a75141c497e5d1f43956157380159800e4aa1f86503b2862562d4
@@ -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.0...HEAD](https://github.com/mileszs/wicked_pdf/compare/1.2.0...HEAD)
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)
@@ -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 >= 5
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.send :prepend, PdfHelper
13
- ActionView::Base.send :include, WickedPdfHelper::Assets
14
- end
15
- end
16
-
17
- elsif Rails::VERSION::MAJOR == 4
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
@@ -1,3 +1,3 @@
1
1
  class WickedPdf
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
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.0
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-16 00:00:00.000000000 Z
12
+ date: 2019-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport