steam_scraper 1.1.11 → 1.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/steam_scraper/game_page_scraper.rb +2 -1
- data/lib/steam_scraper/version.rb +1 -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: 88d79185358f132765709847bcead19d7f9c8c55
|
4
|
+
data.tar.gz: 7a6df8bfe0b6a9b4cb919419ccbd1c9b8c12a34f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97427a1bedd33bbe195cc38238a7000578a3c8fe32f3bbb3f9b11c3b43996f920f2759c2265bc577e4c16679c6410d1d1f3d15ee5677b46372707e72e584ab41
|
7
|
+
data.tar.gz: 3a47d8187df3e9a1cf9d5d4f0f228b958f354a34d7f5437fe6381decde1470668ec078a96c48f1961bbe22153f20c086cf908ae5303078cc7eacaf7dbbfb8575
|
@@ -89,11 +89,12 @@ class GamePageScraper
|
|
89
89
|
|
90
90
|
def scrape_spec(node)
|
91
91
|
spec_array = node.text.split "\r"
|
92
|
+
spec_array = node.text.split "\n" if spec_array.length == 1
|
92
93
|
spec_hash = {}
|
93
94
|
spec_array.each do |entry|
|
94
95
|
value_pair = entry.split(':')
|
95
96
|
next if value_pair.first.nil?
|
96
|
-
key = value_pair.first.to_sym
|
97
|
+
key = value_pair.first.strip.to_sym
|
97
98
|
value = value_pair.last.strip
|
98
99
|
spec_hash[key] = value
|
99
100
|
end
|