steam-prices 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,9 @@
1
1
  ## changelog
2
2
 
3
- v0.1.1
3
+ **v0.1.2**
4
+
5
+ - floating point error
6
+
7
+ **v0.1.1**
8
+
4
9
  - dealing with improper urls (for sales, etc), returns a nil object if it comes across one
@@ -63,7 +63,7 @@ module SteamPrices
63
63
  games << nil
64
64
  else
65
65
  link, app_id = url.captures
66
- price = game.search('.search_price').text.gsub(/[\W_]/, '').to_i
66
+ price = game.search('.search_price').text.gsub(/[\W_]/, '').to_f
67
67
  date = game.search('.search_released').text
68
68
  name = game.search('h4').text
69
69
  logo = game.search('.search_capsule img').attr('src').value
@@ -1,3 +1,3 @@
1
1
  module SteamPrices
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steam-prices
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - scott tesoriere