patentscope 0.0.4 → 0.0.5

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
2
  SHA1:
3
- metadata.gz: 8c3ff619f0ad1778c36dbb2d04a945ad4c3e3cce
4
- data.tar.gz: 5736b0e818ed2823b0dd5e3d6f180902c9e25796
3
+ metadata.gz: 5aa36ae41718e4f20b1a200b6ab43ed4cfb5e432
4
+ data.tar.gz: bccacf5fa59cd36ab13ee33ed25ceca494979f5e
5
5
  SHA512:
6
- metadata.gz: 77ca863b3c8b598318503938c7d4596b1836585d353adee688452cd4a9dce669c41cbb7adb799bc9608876323e8735989fe780d5a7bb9ef8a5e032924b44717d
7
- data.tar.gz: fd374c7216250fe7b8f37ac998188be5b9c32290351e70aff277fd31f7eed3861716720ca3c8c86529b07aae142110651471876d0da40f1aef140f0a50665000
6
+ metadata.gz: 693b96c16e555e1f3e44d28d234b46e2bda865537b73901716578454cf5477f2394e394f50f5ea9fb7a5139d71af51f0b14d4d8e8ae1ddf02605eaae28a63112
7
+ data.tar.gz: 39b580c2b24c3a60ae20e18f1d2c7e356053c12180424331f5ae58d2db61e5472af372608b03d4cc6e3b2adb77826b28c46b1b4646e025f36848e7faa10b55e1
@@ -26,7 +26,9 @@ module Patentscope
26
26
  request.body = body
27
27
 
28
28
  Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
29
- response = http.request(request)
29
+ response = http.request(request)
30
+ response.body = response.body.force_encoding("ISO-8859-1").encode("UTF-8")
31
+
30
32
  if response.header["Content-Type"].include? "text/html"
31
33
  response.body
32
34
  elsif response.header["Content-Type"].include? "multipart/related"
@@ -1,5 +1,5 @@
1
1
  module Patentscope
2
2
 
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patentscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chong-Yee Khoo