relaton-itu 0.5.0 → 0.5.1

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
  SHA256:
3
- metadata.gz: 1ccad34f52057d4ecff6b9748c81f88a53485fb4e763990e4900ff00b3193a07
4
- data.tar.gz: 4b29b42b12a819a2221240f54dc4e097aef37a349cee057253462eacf434d8c8
3
+ metadata.gz: f8bd972121530d979999659070a65f0396befcc751ef847c10b2bbf6b9492a4a
4
+ data.tar.gz: add3801561a51d634d8717460d8eb41c7ed36328b16fc1f4abf20de6de4878e5
5
5
  SHA512:
6
- metadata.gz: eabd169ef47a80302fadc9b7b7e64f0b31f83f9197a890d398f550ff82a052c79cfc4eed5cee9ab3570717f2c57661c9ebdb8dc27f955d5097c6140263769377
7
- data.tar.gz: 44461881e272c54af192a3fb17d92a557ba69cf3c7622d92649b6addb83ff3e8148640817e2ee9dcd6933f3092009541f2171f8353f7caa89f75ed98f7860db9
6
+ metadata.gz: de6bc7a788276eac551a1d50504a5fc69eaaf28811cfe666e79f94bb711b9ec95be07c32f2aba697d83d73ec4b26bf082143e00973ea1024583eca21f3fdd866
7
+ data.tar.gz: 2a4b3da774d55f2694539375639d9e99ca295765711a468dcdc8f41691400e6bc0181a13747157af901b01d8d182a410250b9383a9e12d8bc424fe268bb23fa7
@@ -85,9 +85,9 @@ module RelatonItu
85
85
  return [] unless abstract_url
86
86
 
87
87
  url = abstract_url[:onclick].match(/https?[^']+/).to_s
88
- d = Nokogiri::HTML Net::HTTP.get(URI(url))
88
+ d = Nokogiri::HTML Net::HTTP.get(URI(url)).encode(undef: :replace, replace: "")
89
89
  abstract_content = d.css("p.MsoNormal").text.gsub(/\r\n/, "")
90
- .gsub(/\s{2,}/, " ").gsub(/\u00a0/, "")
90
+ .squeeze(" ").gsub(/\u00a0/, "")
91
91
 
92
92
  [{
93
93
  content: abstract_content,
@@ -1,3 +1,3 @@
1
1
  module RelatonItu
2
- VERSION = "0.5.0".freeze
2
+ VERSION = "0.5.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-11 00:00:00.000000000 Z
11
+ date: 2020-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase