wowget 0.1.6 → 0.1.7

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.
Files changed (3) hide show
  1. data/lib/wowget/item.rb +2 -2
  2. data/spec/item_spec.rb +2 -2
  3. metadata +1 -1
data/lib/wowget/item.rb CHANGED
@@ -223,8 +223,8 @@ module Wowget
223
223
  self.icon_name = item_xml.css('wowhead item icon').inner_text.strip.to_s
224
224
  self.required_level = item_json['reqlevel']
225
225
  self.inventory_slot_id = item_xml.css('wowhead item inventorySlot').attribute('id').content.to_i
226
- self.buy_price = item_equip_json['buyprice']
227
- self.sell_price = item_equip_json['sellprice']
226
+ self.buy_price = item_equip_json['buyprice'].to_f / 10000
227
+ self.sell_price = item_equip_json['sellprice'].to_f / 10000
228
228
 
229
229
  if item_xml.css('wowhead item createdBy').length == 1
230
230
  self.recipe_id = item_xml.css('wowhead item createdBy spell').attribute('id').content.to_i
data/spec/item_spec.rb CHANGED
@@ -58,11 +58,11 @@ describe Wowget::Item do
58
58
  end
59
59
 
60
60
  it "should have a vendor sell price" do
61
- item.sell_price.should == 2462
61
+ item.sell_price.should == 0.2462
62
62
  end
63
63
 
64
64
  it "should have a vendor buy price" do
65
- item.buy_price.should == 12311
65
+ item.buy_price.should == 1.2311
66
66
  end
67
67
 
68
68
  it "should produce a colorised link" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: wowget
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.6
5
+ version: 0.1.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Darlow