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 +4 -4
- data/lib/relaton_itu/scrapper.rb +2 -2
- data/lib/relaton_itu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8bd972121530d979999659070a65f0396befcc751ef847c10b2bbf6b9492a4a
|
4
|
+
data.tar.gz: add3801561a51d634d8717460d8eb41c7ed36328b16fc1f4abf20de6de4878e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de6bc7a788276eac551a1d50504a5fc69eaaf28811cfe666e79f94bb711b9ec95be07c32f2aba697d83d73ec4b26bf082143e00973ea1024583eca21f3fdd866
|
7
|
+
data.tar.gz: 2a4b3da774d55f2694539375639d9e99ca295765711a468dcdc8f41691400e6bc0181a13747157af901b01d8d182a410250b9383a9e12d8bc424fe268bb23fa7
|
data/lib/relaton_itu/scrapper.rb
CHANGED
@@ -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
|
-
.
|
90
|
+
.squeeze(" ").gsub(/\u00a0/, "")
|
91
91
|
|
92
92
|
[{
|
93
93
|
content: abstract_content,
|
data/lib/relaton_itu/version.rb
CHANGED
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.
|
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
|
+
date: 2020-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|