GDNewsScraper 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 +4 -4
- data/lib/GDNewsScraper/scrapers/polygon_com/news.rb +2 -2
- data/lib/GDNewsScraper/version.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 165229c71b29b8ea97c5a08c981421798d7a8d53
|
|
4
|
+
data.tar.gz: 86e96cc7035010913d220632bacbece653bb75df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 931a89d894e137d571e27162f8c2e3cab9358e8ca8ea0de46569a68c7ce39dcbb4ef70d4bcc7f1c7c17d8d3e7f473c95929218f216b5aef42024b319a5c24fd0
|
|
7
|
+
data.tar.gz: a26324d325f91bdeb60c57ae42b67a82ce4df74a86cc8ab30d5451219a3b0c50f000e7542af36b5d230220c7ebeb2b51d8e571a74e40a14cd34b057d8b64bdc6
|
|
@@ -47,9 +47,9 @@ module GDNewsScraper
|
|
|
47
47
|
cover = body.children[1].attributes['data-original']
|
|
48
48
|
|
|
49
49
|
if cover.nil?
|
|
50
|
-
news[article_id][:cover] = "https://cdn#{body.
|
|
50
|
+
news[article_id][:cover] = "https://cdn#{body.children[1].children[1].attributes['data-original'].value.split('/cdn').last}"
|
|
51
51
|
else
|
|
52
|
-
news[article_id][:cover] = "https://cdn#{body.children[1].
|
|
52
|
+
news[article_id][:cover] = "https://cdn#{body.children[1].attributes['data-original'].value.split('/cdn').last}"
|
|
53
53
|
end
|
|
54
54
|
rescue
|
|
55
55
|
news[article_id][:cover] = nil
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module GDNewsScraper
|
|
2
|
-
VERSION = "2.0.
|
|
2
|
+
VERSION = "2.0.2"
|
|
3
3
|
|
|
4
4
|
# CHANGELOG
|
|
5
5
|
#
|
|
@@ -12,5 +12,6 @@ module GDNewsScraper
|
|
|
12
12
|
# v2.0.1 - Fix a bug in PolygonCOM News scrapper where a gallery of images
|
|
13
13
|
# would cause the script to fail when requesting the photo for the
|
|
14
14
|
# Article
|
|
15
|
+
# v2.0.2 - Fix minor bug in PolygonCOM News scraper
|
|
15
16
|
|
|
16
17
|
end
|