wicked_pdf 2.0.0 → 2.0.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 +4 -0
- data/lib/wicked_pdf/version.rb +1 -1
- data/lib/wicked_pdf/wicked_pdf_helper/assets.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59cbdcef3fc266c470f24cf7f54ddc0f64cdea21045cb60ec9d155884a8b7a8d
|
4
|
+
data.tar.gz: 0c7388df2a0b7e9ecc14949b20b7aeef56883efdd1ffa876818df2adbbb12b39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10692cc96df3950380769a9a2ea73b4069e9017666f2ab9daff3ca519446b791167f2dfa21a4ab380636e6115a74dbf2ce4033761bfbdd0ccea4071a859dc992
|
7
|
+
data.tar.gz: 9e8e69c2a09f0cf3e94eca043aec58100474142c3cea0f66e49439dcb4165844bb79c72115e2983aff6dc5fe53dd9367b3a71295cd3c8b7f61aa0b60c333049b
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
10
10
|
### Fixes
|
11
11
|
- None
|
12
12
|
|
13
|
+
## [2.0.1] - 2020-02-22
|
14
|
+
### Fixes
|
15
|
+
- [Replace open-uri with more secure Net:HTTP.get](https://github.com/mileszs/wicked_pdf/pull/864)
|
16
|
+
|
13
17
|
## [2.0.0] - 2020-02-22
|
14
18
|
### Breaking changes
|
15
19
|
- [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.
|
data/lib/wicked_pdf/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'net/http'
|
2
2
|
# If webpacker is used, need to check for version
|
3
3
|
require 'webpacker/version' if defined?(Webpacker)
|
4
4
|
|
@@ -146,8 +146,7 @@ class WickedPdf
|
|
146
146
|
end
|
147
147
|
|
148
148
|
def read_from_uri(uri)
|
149
|
-
|
150
|
-
asset = open(uri, "r#{encoding}", &:read)
|
149
|
+
asset = Net::HTTP.get(URI(uri))
|
151
150
|
asset = gzip(asset) if WickedPdf.config[:expect_gzipped_remote_assets]
|
152
151
|
asset
|
153
152
|
end
|