wicked_pdf 2.0.1 → 2.0.2

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: 59cbdcef3fc266c470f24cf7f54ddc0f64cdea21045cb60ec9d155884a8b7a8d
4
- data.tar.gz: 0c7388df2a0b7e9ecc14949b20b7aeef56883efdd1ffa876818df2adbbb12b39
3
+ metadata.gz: f9f7795e6c1ecec768a23b467e08da9401933ff1ba011146d9a851593e7aaca1
4
+ data.tar.gz: e1a9bcfb09ff09d69846ee0e2519ad40a02eafb5e908eadb1674e3df6fa833b2
5
5
  SHA512:
6
- metadata.gz: 10692cc96df3950380769a9a2ea73b4069e9017666f2ab9daff3ca519446b791167f2dfa21a4ab380636e6115a74dbf2ce4033761bfbdd0ccea4071a859dc992
7
- data.tar.gz: 9e8e69c2a09f0cf3e94eca043aec58100474142c3cea0f66e49439dcb4165844bb79c72115e2983aff6dc5fe53dd9367b3a71295cd3c8b7f61aa0b60c333049b
6
+ metadata.gz: 434ec5a13a8acc6ea7f39ee8d1a1c677a9f60ef217f22eaacace541068c2f079a2cce752440961d4c308c4a97221717c0508335e72551b71b488c6e6ba497fd8
7
+ data.tar.gz: e29cb1771f8041c3cc30c9dbb797fc1f5fcffc9d85027e6d518f9cb03dc15c5ef0a4abb90c0be29564729c13fa804820b45a2f19998b27e2c3a805ac023a5fd4
@@ -10,6 +10,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
10
10
  ### Fixes
11
11
  - None
12
12
 
13
+ ## [2.0.2] - 2020-03-17
14
+ ### Fixes
15
+ - [Force UTF-8 encoding in assets helper](https://github.com/mileszs/wicked_pdf/pull/894)
16
+
13
17
  ## [2.0.1] - 2020-02-22
14
18
  ### Fixes
15
19
  - [Replace open-uri with more secure Net:HTTP.get](https://github.com/mileszs/wicked_pdf/pull/864)
@@ -145,7 +149,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
145
149
  - Asset helpers no longer add a file extension if it already is specified with one
146
150
 
147
151
  # Compare Releases
148
- - [1.4.0...HEAD](https://github.com/mileszs/wicked_pdf/compare/1.2.2...HEAD)
152
+ - [2.0.2...HEAD (unreleased changes)](https://github.com/mileszs/wicked_pdf/compare/2.0.2...HEAD)
153
+ - [2.0.0...2.0.2](https://github.com/mileszs/wicked_pdf/compare/2.0.0...2.0.2)
154
+ - [1.4.0...2.0.0](https://github.com/mileszs/wicked_pdf/compare/1.4.0...2.0.0)
149
155
  - [1.3.0...1.4.0](https://github.com/mileszs/wicked_pdf/compare/1.3.0...1.4.0)
150
156
  - [1.2.0...1.3.0](https://github.com/mileszs/wicked_pdf/compare/1.2.0...1.3.0)
151
157
  - [1.1.0...1.2.0](https://github.com/mileszs/wicked_pdf/compare/1.1.0...1.2.0)
@@ -1,3 +1,3 @@
1
1
  class WickedPdf
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '2.0.2'.freeze
3
3
  end
@@ -147,6 +147,7 @@ class WickedPdf
147
147
 
148
148
  def read_from_uri(uri)
149
149
  asset = Net::HTTP.get(URI(uri))
150
+ asset.force_encoding('UTF-8') if asset
150
151
  asset = gzip(asset) if WickedPdf.config[:expect_gzipped_remote_assets]
151
152
  asset
152
153
  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: 2.0.1
4
+ version: 2.0.2
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: 2020-02-22 00:00:00.000000000 Z
12
+ date: 2020-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport