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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0f2b212963ade85d1d84bc30cec7e08492128ba
4
- data.tar.gz: 9231b4f69f63765d5dc5bcba571d07cd3fb335d7
3
+ metadata.gz: 88d79185358f132765709847bcead19d7f9c8c55
4
+ data.tar.gz: 7a6df8bfe0b6a9b4cb919419ccbd1c9b8c12a34f
5
5
  SHA512:
6
- metadata.gz: 14f9f369bb3a6dd24932c9a7c7268e1b11f0db5116385b053c8a5bd75b9c275dbb5fa519702d165e0b0e7075d36583fb01dfd11feef7031b911c10f6610cb615
7
- data.tar.gz: 28a90dd8b523db345917d7177a3142b1e2919c50b654a5b52f5141cb594aeae0d8dbf605c28231d5f30016afe6b2bf1d80ba0eb6c52dbce9b682fc3d31101f3c
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
@@ -1,3 +1,3 @@
1
1
  module SteamScraper
2
- VERSION = '1.1.11'.freeze
2
+ VERSION = '1.1.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steam_scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.11
4
+ version: 1.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gardner