wicked_pdf 1.1.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9c29352b7951b2cb5013de56cc41c3929362a248
4
- data.tar.gz: 7fe7fa7843fc6b9ac7bfe6ec98cf0676c274fef8
2
+ SHA256:
3
+ metadata.gz: 2a1ed5bc6831790ca7a345a234788f25c80fa9cf9ce29cd6059c4f3e2b95899b
4
+ data.tar.gz: 8403943792fa00a8d6103227d9c64d1235d7bc15fd1c1dc0b1c5b781595d1129
5
5
  SHA512:
6
- metadata.gz: 8d83f67d5a93d3579f81786d2aeaca8b8f0332afa48f3cee3274614ef051f6edff25a8486bcd2965ec5b1e6996c6dbf700ab71d678d3bf83f6ec2a391811c1d8
7
- data.tar.gz: 41c7b3744daa9bcd60f4bd68f2c13173d44496be0dc7668b42de651e91c9eaa0ad68d826583c1475cd88e587f6eb3efcc4a376b8ca9e6e31554efec5812390c9
6
+ metadata.gz: 91ff0d2567e0aff820cc482da2c76df3823fdb3be007229236907c0d4f8e2caf50a14e18f49a52f18d748f23f1c71f9010002417726c319a9064158cddd66ccd
7
+ data.tar.gz: 259d606917744373d121f6c4c1a84fa80411b326f92f45c049ad5cd4950adb4121befd0b7f765400594fed8b292670b0f32b8916632b1dc5727524877e046e0c
@@ -0,0 +1,15 @@
1
+ ## Issue description
2
+
3
+ ## Expected or desired behavior
4
+
5
+ ## System specifications
6
+
7
+ wicked_pdf gem version (output of `cat Gemfile.lock | grep wicked_pdf`):
8
+
9
+ wkhtmltopdf version (output of `wkhtmltopdf --version`):
10
+
11
+ whtmltopdf [provider gem](https://rubygems.org/search?utf8=%E2%9C%93&query=wkhtmltopdf) and version if one is used:
12
+
13
+ platform/distribution and version (e.g. Windows 10 / Ubuntu 16.04 / Heroku cedar):
14
+
15
+
@@ -1,9 +1,20 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
3
  AllCops:
4
+ TargetRubyVersion: 2.2
4
5
  Exclude:
6
+ - 'gemfiles/bin/*'
5
7
  - 'test/dummy/**/*'
6
8
 
9
+ Metrics/BlockLength:
10
+ Exclude:
11
+ - 'wicked_pdf.gemspec'
12
+
13
+ Metrics/ModuleLength:
14
+ Exclude:
15
+ # Excluding to keep the logic in one module for the time being.
16
+ - 'lib/wicked_pdf/wicked_pdf_helper/assets.rb'
17
+
7
18
  # I'd like wicked_pdf to keep Ruby 1.8 compatibility for now
8
19
  Style/HashSyntax:
9
20
  EnforcedStyle: hash_rockets
@@ -1,63 +1,193 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2015-11-08 18:41:57 -0500 using RuboCop version 0.32.1.
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-10-02 17:54:14 +0200 using RuboCop version 0.68.1.
3
4
  # The point is for the user to remove these configuration records
4
5
  # one by one as the offenses are removed from the code base.
5
6
  # Note that changes in the inspected code, or installation of new
6
7
  # versions of RuboCop, may require this file to be generated again.
7
8
 
8
-
9
9
  # Offense count: 9
10
- Metrics/AbcSize:
11
- Max: 45
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
12
+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13
+ Bundler/OrderedGems:
14
+ Exclude:
15
+ - 'gemfiles/4.0.gemfile'
16
+ - 'gemfiles/4.1.gemfile'
17
+ - 'gemfiles/4.2.gemfile'
18
+ - 'gemfiles/5.0.gemfile'
19
+ - 'gemfiles/5.1.gemfile'
20
+ - 'gemfiles/5.2.gemfile'
21
+ - 'gemfiles/6.0.gemfile'
22
+ - 'gemfiles/rails_edge.gemfile'
12
23
 
13
24
  # Offense count: 2
14
- Metrics/BlockNesting:
15
- Max: 4
25
+ # Cop supports --auto-correct.
26
+ # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
27
+ # Include: **/*.gemspec
28
+ Gemspec/OrderedDependencies:
29
+ Exclude:
30
+ - 'wicked_pdf.gemspec'
31
+
32
+ # Offense count: 16
33
+ # Cop supports --auto-correct.
34
+ Layout/EmptyLineAfterGuardClause:
35
+ Exclude:
36
+ - 'Rakefile'
37
+ - 'lib/wicked_pdf.rb'
38
+ - 'lib/wicked_pdf/pdf_helper.rb'
39
+ - 'lib/wicked_pdf/wicked_pdf_helper/assets.rb'
16
40
 
17
41
  # Offense count: 2
18
- # Configuration parameters: CountComments.
19
- Metrics/ClassLength:
20
- Max: 300
42
+ # Cop supports --auto-correct.
43
+ Layout/LeadingBlankLines:
44
+ Exclude:
45
+ - 'test/unit/wkhtmltopdf_location_test.rb'
46
+ - 'wicked_pdf.gemspec'
21
47
 
22
- Metrics/ModuleLength:
23
- Max: 120
48
+ # Offense count: 1
49
+ # Cop supports --auto-correct.
50
+ Layout/RescueEnsureAlignment:
51
+ Exclude:
52
+ - 'lib/wicked_pdf.rb'
24
53
 
25
- # Offense count: 5
26
- Metrics/CyclomaticComplexity:
27
- Max: 9
54
+ # Offense count: 1
55
+ # Cop supports --auto-correct.
56
+ # Configuration parameters: EnforcedStyle.
57
+ # SupportedStyles: final_newline, final_blank_line
58
+ Layout/TrailingBlankLines:
59
+ Exclude:
60
+ - 'gemfiles/4.0.gemfile'
28
61
 
29
- # Offense count: 92
30
- # Configuration parameters: AllowURI, URISchemes.
31
- Metrics/LineLength:
32
- Max: 563
62
+ # Offense count: 11
63
+ Metrics/AbcSize:
64
+ Max: 45
33
65
 
34
- # Offense count: 14
66
+ # Offense count: 2
35
67
  # Configuration parameters: CountComments.
68
+ Metrics/ClassLength:
69
+ Max: 292
70
+
71
+ # Offense count: 7
72
+ Metrics/CyclomaticComplexity:
73
+ Max: 11
74
+
75
+ # Offense count: 17
76
+ # Configuration parameters: CountComments, ExcludedMethods.
36
77
  Metrics/MethodLength:
37
78
  Max: 30
38
79
 
39
- # Offense count: 4
80
+ # Offense count: 2
81
+ # Configuration parameters: CountComments.
82
+ Metrics/ModuleLength:
83
+ Max: 147
84
+
85
+ # Offense count: 6
40
86
  Metrics/PerceivedComplexity:
41
87
  Max: 12
42
88
 
43
89
  # Offense count: 2
44
- Style/AccessorMethodName:
45
- Enabled: false
90
+ Naming/AccessorMethodName:
91
+ Exclude:
92
+ - 'lib/wicked_pdf/middleware.rb'
93
+ - 'lib/wicked_pdf/pdf_helper.rb'
94
+
95
+ # Offense count: 1
96
+ Security/Open:
97
+ Exclude:
98
+ - 'lib/wicked_pdf/wicked_pdf_helper/assets.rb'
46
99
 
47
100
  # Offense count: 1
48
101
  Style/CaseEquality:
49
- Enabled: false
102
+ Exclude:
103
+ - 'lib/wicked_pdf/wicked_pdf_helper.rb'
50
104
 
51
105
  # Offense count: 1
52
106
  Style/ClassVars:
53
- Enabled: false
107
+ Exclude:
108
+ - 'lib/wicked_pdf.rb'
54
109
 
55
- # Offense count: 15
110
+ # Offense count: 10
56
111
  Style/Documentation:
57
- Enabled: false
112
+ Exclude:
113
+ - 'spec/**/*'
114
+ - 'test/**/*'
115
+ - 'generators/wicked_pdf/wicked_pdf_generator.rb'
116
+ - 'lib/wicked_pdf.rb'
117
+ - 'lib/wicked_pdf/middleware.rb'
118
+ - 'lib/wicked_pdf/pdf_helper.rb'
119
+ - 'lib/wicked_pdf/progress.rb'
120
+ - 'lib/wicked_pdf/railtie.rb'
121
+ - 'lib/wicked_pdf/tempfile.rb'
122
+ - 'lib/wicked_pdf/wicked_pdf_helper.rb'
123
+ - 'lib/wicked_pdf/wicked_pdf_helper/assets.rb'
58
124
 
59
- # Offense count: 5
125
+ # Offense count: 2
60
126
  # Cop supports --auto-correct.
61
- # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
127
+ Style/ExpandPathArguments:
128
+ Exclude:
129
+ - 'test/test_helper.rb'
130
+ - 'wicked_pdf.gemspec'
131
+
132
+ # Offense count: 8
133
+ # Cop supports --auto-correct.
134
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
135
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
136
+ Style/HashSyntax:
137
+ Exclude:
138
+ - 'gemfiles/4.0.gemfile'
139
+ - 'gemfiles/4.1.gemfile'
140
+ - 'gemfiles/4.2.gemfile'
141
+ - 'gemfiles/5.0.gemfile'
142
+ - 'gemfiles/5.1.gemfile'
143
+ - 'gemfiles/5.2.gemfile'
144
+ - 'gemfiles/6.0.gemfile'
145
+ - 'gemfiles/rails_edge.gemfile'
146
+
147
+ # Offense count: 3
148
+ # Cop supports --auto-correct.
149
+ Style/IfUnlessModifier:
150
+ Exclude:
151
+ - 'Rakefile'
152
+ - 'lib/wicked_pdf.rb'
153
+ - 'lib/wicked_pdf/railtie.rb'
154
+
155
+ # Offense count: 2
156
+ # Cop supports --auto-correct.
157
+ # Configuration parameters: EnforcedStyle.
158
+ # SupportedStyles: literals, strict
159
+ Style/MutableConstant:
160
+ Exclude:
161
+ - 'lib/wicked_pdf/wicked_pdf_helper/assets.rb'
162
+
163
+ # Offense count: 6
164
+ # Cop supports --auto-correct.
165
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
166
+ # SupportedStyles: slashes, percent_r, mixed
62
167
  Style/RegexpLiteral:
63
- Enabled: false
168
+ Exclude:
169
+ - 'lib/wicked_pdf/middleware.rb'
170
+ - 'lib/wicked_pdf/wicked_pdf_helper/assets.rb'
171
+ - 'test/unit/wicked_pdf_test.rb'
172
+
173
+ # Offense count: 1
174
+ # Cop supports --auto-correct.
175
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
176
+ # SupportedStyles: single_quotes, double_quotes
177
+ Style/StringLiterals:
178
+ Exclude:
179
+ - 'gemfiles/4.0.gemfile'
180
+
181
+ # Offense count: 29
182
+ # Cop supports --auto-correct.
183
+ # Configuration parameters: MinSize.
184
+ # SupportedStyles: percent, brackets
185
+ Style/SymbolArray:
186
+ EnforcedStyle: brackets
187
+
188
+ # Offense count: 111
189
+ # Cop supports --auto-correct.
190
+ # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
191
+ # URISchemes: http, https
192
+ Metrics/LineLength:
193
+ Max: 563
@@ -1,57 +1,79 @@
1
1
  language:
2
2
  - ruby
3
+ git:
4
+ depth: 1
5
+ quiet: true
3
6
  before_install:
4
7
  - sudo apt-get update -qq
5
- - gem update bundler
6
8
  bundler_args: --verbose
7
9
  sudo: required
8
- rvm:
9
- - 1.9.2
10
- - 1.9.3
11
- - 2.0
12
- - 2.1
13
- - 2.2
14
- - 2.3.0
15
- - ruby-head
16
- gemfile:
17
- - gemfiles/3.0.gemfile
18
- - gemfiles/3.1.gemfile
19
- - gemfiles/3.2.gemfile
10
+ services:
11
+ - xvfb
20
12
  before_script:
21
13
  - bundle list
22
14
  - sudo apt-get install -y wkhtmltopdf
23
- - "export DISPLAY=:99.0"
24
- - "sh -e /etc/init.d/xvfb start"
25
15
  env: WKHTMLTOPDF_BIN=/usr/bin/wkhtmltopdf
26
16
  script:
27
17
  - bundle exec rake
28
18
  matrix:
29
19
  include:
30
- - rvm: 1.8.7
31
- before_install:
32
- - sudo apt-get update -qq
33
- - gem update --system 1.8.25
34
- - gem --version
35
- gemfile: gemfiles/2.3.gemfile
36
- - rvm: 2.0.0
20
+ - rvm: 2.2
37
21
  gemfile: gemfiles/4.0.gemfile
38
- - rvm: 2.2.0
22
+ - rvm: 2.2
39
23
  gemfile: gemfiles/4.1.gemfile
40
- - rvm: 2.2.0
24
+ - rvm: 2.2
41
25
  gemfile: gemfiles/4.2.gemfile
42
- - rvm: 2.3.0
26
+ - rvm: 2.3
43
27
  gemfile: gemfiles/5.0.gemfile
44
- - rvm: 2.2.2
28
+ before_install:
29
+ # https://github.com/danmayer/coverband/issues/162
30
+ - "find /home/travis/.rvm/rubies -wholename '*default/bundler-*.gemspec' -delete"
31
+ - rvm @global do gem uninstall bundler -a -x -I || true
32
+ - gem install bundler -v '< 2'
33
+ - rvm: 2.4
34
+ gemfile: gemfiles/5.1.gemfile
35
+ before_install:
36
+ - "find /home/travis/.rvm/rubies -wholename '*default/bundler-*.gemspec' -delete"
37
+ - rvm @global do gem uninstall bundler -a -x -I || true
38
+ - gem install bundler -v '< 2'
39
+ - rvm: 2.5
40
+ gemfile: gemfiles/5.2.gemfile
41
+ before_install:
42
+ - gem update --system
43
+ - gem install bundler
44
+ - rvm: 2.5
45
+ gemfile: gemfiles/rails_edge.gemfile
46
+ before_install:
47
+ - gem update --system
48
+ - gem install bundler
49
+ - rvm: 2.6
50
+ gemfile: gemfiles/5.2.gemfile
51
+ before_install:
52
+ - gem update --system
53
+ - gem install bundler
54
+ - rvm: 2.6
55
+ gemfile: gemfiles/6.0.gemfile
56
+ before_install:
57
+ - gem update --system
58
+ - gem install bundler
59
+ - rvm: 2.6
45
60
  gemfile: gemfiles/rails_edge.gemfile
46
- - rvm: 2.3.0
61
+ before_install:
62
+ - gem update --system
63
+ - gem install bundler
64
+ - rvm: ruby-head
65
+ gemfile: gemfiles/5.2.gemfile
66
+ before_install:
67
+ - gem install bundler -v '~> 2'
68
+ - rvm: ruby-head
47
69
  gemfile: gemfiles/rails_edge.gemfile
70
+ before_install:
71
+ - gem install bundler -v '~> 2'
48
72
  allow_failures:
49
- - rvm: 1.9.2
73
+ - rvm: 2.5
74
+ gemfile: gemfiles/rails_edge.gemfile
75
+ - rvm: 2.6
76
+ gemfile: gemfiles/rails_edge.gemfile
77
+ - rvm: 2.5.3
50
78
  gemfile: gemfiles/3.0.gemfile
51
- - rvm: 1.9.2
52
- gemfile: gemfiles/3.1.gemfile
53
- - rvm: 1.9.2
54
- gemfile: gemfiles/3.2.gemfile
55
- - rvm: 1.9.3
56
- gemfile: gemfiles/4.0.gemfile
57
79
  - rvm: ruby-head
@@ -2,72 +2,151 @@
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.1.0] - 2016-09-30
6
- ### Added
5
+ ## [master branch] - Unreleased
6
+ ### Breaking Changes
7
+ - None
8
+ ### New Features
9
+ - None
10
+ ### Fixes
11
+ - None
12
+
13
+ ## [2.1.0] - 2020-06-14
14
+ ### Fixes
15
+ - [Document no_stop_slow_scripts in README](https://github.com/mileszs/wicked_pdf/pull/905)
16
+ - [Document how to use locals in README](https://github.com/mileszs/wicked_pdf/pull/915)
17
+
18
+ ### New Features
19
+ - [Improved support for Webpacker assets with `wicked_pdf_asset_pack_path`](https://github.com/mileszs/wicked_pdf/pull/896)
20
+ - [Support enabling/disabling local file access compatible with wkhtmltopdf 0.12.6](https://github.com/mileszs/wicked_pdf/pull/920)
21
+ - [Add option `use_xvfb` to emulate an X server](https://github.com/mileszs/wicked_pdf/pull/909)
22
+
23
+ ## [2.0.2] - 2020-03-17
24
+ ### Fixes
25
+ - [Force UTF-8 encoding in assets helper](https://github.com/mileszs/wicked_pdf/pull/894)
26
+
27
+ ## [2.0.1] - 2020-02-22
28
+ ### Fixes
29
+ - [Replace open-uri with more secure Net:HTTP.get](https://github.com/mileszs/wicked_pdf/pull/864)
30
+
31
+ ## [2.0.0] - 2020-02-22
32
+ ### Breaking changes
33
+ - [Remove support for older Ruby and Rails versions](https://github.com/mileszs/wicked_pdf/pull/854) - This project no longer supports Ruby < 2.2 and Rails < 4. It may work for you, but we are no longer worrying about breaking backwards compatibility for versions older than these. If you are on an affected version, you can continue to use the 1.x releases. Patches to fix broken behavior on old versions may not be accepted unless they are highly decoupled from the rest of the code base.
34
+
35
+ ### New Features
36
+ - [Add Rubygems metadata hash to gemspec](https://github.com/mileszs/wicked_pdf/pull/856)
37
+ - [Add support for Rails 6](https://github.com/mileszs/wicked_pdf/pull/869)
38
+
39
+ ### Fixes
40
+ - [Fix Webpacker helpers in production environment](https://github.com/mileszs/wicked_pdf/pull/837)
41
+ - [Fix unit tests](https://github.com/mileszs/wicked_pdf/pull/852)
42
+
43
+ ## [1.4.0] - 2019-05-23
44
+ ### New Features
45
+ - [Add support for `log_level` and `quiet` options](https://github.com/mileszs/wicked_pdf/pull/834)
46
+
47
+ ## [1.3.0] - 2019-05-20
48
+ ### New Features
49
+ - [Add support for Webpacker provided bundles](https://github.com/mileszs/wicked_pdf/pull/739)
50
+
51
+ ## [1.2.2] - 2019-04-13
52
+ ### Fixes
53
+ - [Fix issue loading Pty on Windows](https://github.com/mileszs/wicked_pdf/pull/820)
54
+ - [Fix conflict with remotipart causing SystemStackError](https://github.com/mileszs/wicked_pdf/pull/821)
55
+
56
+ ## [1.2.1] - 2019-03-16
57
+ ### Fixes
58
+ - [Fix `SystemStackError` in some setups](https://github.com/mileszs/wicked_pdf/pull/813)
59
+
60
+ ## [1.2.0] - 2019-03-16
61
+ ### New Features
62
+ - [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)
63
+ - [Add ability to use the `assigns` option to `render` to assign instance variables to a PDF template](https://github.com/mileszs/wicked_pdf/pull/801)
64
+ - [Add ability to track console progress](https://github.com/mileszs/wicked_pdf/pull/804) with `progress: -> (output) { puts output }`. This is useful to add reporting hooks to show your frontend what page number is being generated.
65
+
66
+ ### Fixes
67
+ - [Fix conflict with other gems that hook into `render`](https://github.com/mileszs/wicked_pdf/pull/574) and avoid using `alias_method_chain` where possible
68
+ - [Fix issue using the shell to locate `wkhtmltopdf` in a Bundler environment](https://github.com/mileszs/wicked_pdf/pull/728)
69
+ - [Fix `wkhtmltopdf` path detection when HOME environment variable is unset](https://github.com/mileszs/wicked_pdf/pull/568)
70
+ - [Fix error when the `Rails` constant is defined but not actually using Rails](https://github.com/mileszs/wicked_pdf/pull/613)
71
+ - [Fix compatibility issue with Sprockets 4](https://github.com/mileszs/wicked_pdf/pull/615)
72
+ - [Fix compatibility issue with `Mime::JS` in Rails 5.1+](https://github.com/mileszs/wicked_pdf/pull/627)
73
+ - [Fix deprecation warning by using `after_action` instead of `after_filter` when available](https://github.com/mileszs/wicked_pdf/pull/663)
74
+ - [Provide Rails `base_path` to `find_asset` calls for Sprockets file lookup](https://github.com/mileszs/wicked_pdf/pull/688)
75
+ - Logger changes:
76
+ - [Use `Rails.logger.debug` instead of `p`](https://github.com/mileszs/wicked_pdf/pull/575)
77
+ - [Change logger message to prepend `[wicked_pdf]` instead of nonstandard `****************WICKED****************`](https://github.com/mileszs/wicked_pdf/pull/589)
78
+ - Documentation changes:
79
+ - [Update link to wkhtmltopdf homepage](https://github.com/mileszs/wicked_pdf/pull/582)
80
+ - [Update link to `wkhtmltopdf_binary_gem`](https://github.com/mileszs/wicked_pdf/commit/59e6c5fca3985f2fa2f345089596250df5da2682)
81
+ - [Update documentation for usage with the Asset Pipeline](https://github.com/mileszs/wicked_pdf/commit/690d00157706699a71b7dcd71834759f4d84702f)
82
+ - [Document `default_protocol` option](https://github.com/mileszs/wicked_pdf/pull/585)
83
+ - [Document `image` and `no_image` options](https://github.com/mileszs/wicked_pdf/pull/689)
84
+ - [Document issue with DPI/scaling on various platforms](https://github.com/mileszs/wicked_pdf/pull/715)
85
+ - [Document creating and attaching a PDF in a mailer](https://github.com/mileszs/wicked_pdf/pull/746)
86
+ - [Document dependency on `wkhtmltopdf` with RubyGems](https://github.com/mileszs/wicked_pdf/pull/656)
87
+ - [Add example using WickedPDF with Rails in an API-only configuration](https://github.com/mileszs/wicked_pdf/pull/796)
88
+ - [Add example for rending a template as a header/footer](https://github.com/mileszs/wicked_pdf/pull/603)
89
+ - [Add GitHub issue template](https://github.com/mileszs/wicked_pdf/pull/805)
90
+ - [Add CodeClimate Badge](https://github.com/mileszs/wicked_pdf/pull/646)
91
+ - RuboCop cleanup
92
+ - Updates to Travis CI pipeline to support newer versions of Ruby & Rails
93
+
94
+ ## [1.1.0] - 2016-08-30
95
+ ### New Features
7
96
  - Support Rails 5.x and Sprockets 3.x
8
97
  - Support `window_status: 'somestring'` option, to instruct wkhtmltopdf to wait until the browser `window.status` is equal to the supplied string. This can be useful to force rendering to wait [as explained quite well here](https://spin.atomicobject.com/2015/08/29/ember-app-done-loading/)
9
98
  - Support `no_stop_slow_scripts: true` to let slow running scripts delay rendering
99
+ - [Changes to asset finding to support Rails 5](https://github.com/mileszs/wicked_pdf/pull/561)
10
100
 
11
- ### Changed
101
+ ### Fixes
12
102
  - [Improved error handling](https://github.com/mileszs/wicked_pdf/pull/543)
13
103
  - [Namespace helper classes under WickedPdf namespace](https://github.com/mileszs/wicked_pdf/pull/538)
14
- - [Changes to asset finding to support Rails 5](https://github.com/mileszs/wicked_pdf/pull/561)
15
104
 
16
105
  ## [1.0.6] - 2016-04-04
17
- ### Changed
18
- - Revert shellescaping of options. The fix was causing more issues than it solved (like "[page] of [topage]" being escaped, and thus not parsed by `wkhtmltopdf`). See #514 for details.
106
+ ### Fixes
107
+ - Revert shell escaping of options. The fix was causing more issues than it solved (like "[page] of [topage]" being escaped, and thus not parsed by `wkhtmltopdf`). See #514 for details.
19
108
 
20
109
  ## [1.0.5] - 2016-03-28
21
- ### Changed
110
+ ### Fixes
22
111
  - Numerous RuboCop style violation fixes, spelling errors, and test-setup issues from [indyrb.org](http://indyrb.org/) hack night. Thank you all for your contributions!
23
-
24
- ### Fixed
25
112
  - Shellescape options. A stray quote in `header` or `footer` would cause PDF to fail to generate, and this should close down many potential attack vectors if you allow user-supplied values to be passed into `wicked_pdf` render options.
26
113
 
27
114
  ## [1.0.4] - 2016-01-26
28
- ### Changed
115
+ ### Fixes
29
116
  - Check that logger responds to info before calling it. It was possible to have a `logger` method defined as a controller helper that would override `Rails.logger`.
30
-
31
- ### Fixed
32
117
  - [Issue with Sprockets 3.0](https://github.com/mileszs/wicked_pdf/issues/476) where an asset referenced in a stylesheet not existing would raise an exception `read_asset` on nil.
33
118
 
34
119
  ## [1.0.3] - 2015-12-02
35
- ### Changed
120
+ ### Fixes
36
121
  - Revert default DPI. Some installs of `wkhtmltopdf` would experience major slowdowns or crashes with it set to 72. It is suggested that a DPI of 75 may be better, but I'm holding off on making it a default without more information.
37
122
 
38
123
  ## [1.0.2] - 2015-11-30
39
- ### Changed
124
+ ### Fixes
40
125
  - The default dpi is now 72. Previously the default would be whatever your `wkhtmltopdf` version specified as the default. This change [speeds up generation of documents that contain `border-radius` dramatically](https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1510)
41
126
 
42
127
  ## [1.0.1] - 2015-11-19
43
- ### Changed
128
+ ### Fixes
44
129
  - Made minor RuboCop style tweaks.
45
-
46
- ### Added
47
130
  - Added default [RuboCop](https://github.com/bbatsov/rubocop) config and run after test suite.
48
-
49
- ### Fixed
50
131
  - Issue with `nil.basename` from asset helpers.
51
132
 
52
133
  ## [1.0.0] - 2015-11-03
53
- ### Changed
134
+ ### Breaking Changes
54
135
  - Accepted that `WickedPDF` cannot guarantee backwards compatibility with older versions of `wkthmltopdf`, and decided to publish a new version with the MAJOR number incremented, signaling that this may have breaking changes for some people, but providing a path forward for progress. This release number also signals that this is a mature (and relatively stable) project, and should be deemed ready for production (since it has been used in production since ~2009, and downloaded over a *million* times on [RubyGems.org](https://rubygems.org/gems/wicked_pdf)).
55
136
  - Stopped attempting to track with version number of `wkhtmltopdf` binary releases (`wkhtmltopdf` v9.x == `WickedPDF` v9.x)
56
137
  - Adopted [Semantic Versioning](http://semver.org/) for release numbering
57
138
  - Added a CHANGELOG (based on [keepachangelog.com](http://keepachangelog.com/))
58
139
  - Misc code tweaks as suggested by [RuboCop](https://github.com/bbatsov/rubocop)
59
140
 
60
- ### Added
141
+ ### New Features
61
142
  - Check version of `wkhtmltopdf` before deciding to pass arguments with or without dashes
62
- - New arguments and options for the table of contents supported in newer versions of wkhtmltopf: `text_size_shrink`, `level_indentation`, `disable_dotted_lines`, `disable_toc_links`, `xsl_style_sheet`
143
+ - New arguments and options for the table of contents supported in newer versions of wkhtmltopdf: `text_size_shrink`, `level_indentation`, `disable_dotted_lines`, `disable_toc_links`, `xsl_style_sheet`
63
144
  - Merge in global options to `pdf_from_html_file` and `pdf_from_string`
64
145
  - Add ability to generate pdf from a web resource: `pdf_from_url(url)`
146
+ - Removed explicit dependency on [Rails](https://github.com/rails/rails), since parts of this library may be used without it.
65
147
 
66
- ### Removed
67
- - Explicit dependency on [Rails](https://github.com/rails/rails), since parts of this library may be used without it.
68
- - Comment out the `:exe_path` option in the generated initalizer by default (since many systems won't have `wkthmltopdf` installed in that specific location)
69
-
70
- ### Fixed
148
+ ### Fixes
149
+ - Comment out the `:exe_path` option in the generated initializer by default (since many systems won't have `wkthmltopdf` installed in that specific location)
71
150
  - Issues with `file://` paths on Windows-based systems
72
151
  - Issues with parsed options/argument ordering on versions of `wkthmltopdf` > 0.9
73
152
  - Issues with middleware headers when running Rails app mounted in a subdirectory
@@ -76,20 +155,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
76
155
  - Issue with header/footer `:content` being deleted after the first page
77
156
  - Issues with options being modified during processing (including global config options)
78
157
  - Issues with asset helpers recognizing assets specified without a protocol
79
- - Issues with `url()` references and embedded `data:base64` assests in stylesheets rendered with `wicked_pdf_stylesheet_link_tag`
158
+ - Issues with `url()` references and embedded `data:base64` assets in stylesheets rendered with `wicked_pdf_stylesheet_link_tag`
80
159
  - Asset helpers no longer add a file extension if it already is specified with one
81
160
 
82
161
  # Compare Releases
83
- - [1.1.0...HEAD](https://github.com/mileszs/wicked_pdf/compare/1.1.0...HEAD)
84
- - [1.0.6...1.1.0](https://github.com/mileszs/wicked_pdf/compare/1.0.6...1.1.0)
85
- - [1.0.5...1.0.6](https://github.com/mileszs/wicked_pdf/compare/1.0.5...1.0.6)
86
- - [1.0.4...1.0.5](https://github.com/mileszs/wicked_pdf/compare/1.0.4...1.0.5)
87
- - [1.0.3...1.0.4](https://github.com/mileszs/wicked_pdf/compare/1.0.3...1.0.4)
88
- - [1.0.2...1.0.3](https://github.com/mileszs/wicked_pdf/compare/1.0.2...1.0.3)
89
- - [1.0.1...1.0.2](https://github.com/mileszs/wicked_pdf/compare/1.0.1...1.0.2)
90
- - [1.0.0...1.0.1](https://github.com/mileszs/wicked_pdf/compare/1.0.0...1.0.1)
162
+ - [2.1.0...HEAD (unreleased changes)](https://github.com/mileszs/wicked_pdf/compare/2.1.0...HEAD)
163
+ - [2.0.2...2.1.0](https://github.com/mileszs/wicked_pdf/compare/2.0.2...2.1.0)
164
+ - [2.0.0...2.0.2](https://github.com/mileszs/wicked_pdf/compare/2.0.0...2.0.2)
165
+ - [1.4.0...2.0.0](https://github.com/mileszs/wicked_pdf/compare/1.4.0...2.0.0)
166
+ - [1.3.0...1.4.0](https://github.com/mileszs/wicked_pdf/compare/1.3.0...1.4.0)
167
+ - [1.2.0...1.3.0](https://github.com/mileszs/wicked_pdf/compare/1.2.0...1.3.0)
168
+ - [1.1.0...1.2.0](https://github.com/mileszs/wicked_pdf/compare/1.1.0...1.2.0)
169
+ - [1.0.0...1.1.0](https://github.com/mileszs/wicked_pdf/compare/1.0.0...1.0.0)
91
170
  - [0.11.0...1.0.0](https://github.com/mileszs/wicked_pdf/compare/0.11.0...1.0.0)
92
- - [0.10.2...0.11.0](https://github.com/mileszs/wicked_pdf/compare/0.10.2...0.11.0)
93
- - [0.10.1...0.10.2](https://github.com/mileszs/wicked_pdf/compare/0.10.1...0.10.2)
94
- - [0.10.0...0.10.1](https://github.com/mileszs/wicked_pdf/compare/0.10.0...0.10.1)
95
- - [0.9.10...0.10.0](https://github.com/mileszs/wicked_pdf/compare/0.9.10...0.10.0)