wowget 0.2.2 → 0.2.3
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.
- data/lib/wowget/item.rb +2 -2
- data/spec/item_spec.rb +2 -2
- metadata +2 -2
data/lib/wowget/item.rb
CHANGED
|
@@ -222,8 +222,8 @@ module Wowget
|
|
|
222
222
|
self.icon_name = item_xml.css('wowhead item icon').inner_text.strip.to_s
|
|
223
223
|
self.required_level = item_json['reqlevel']
|
|
224
224
|
self.inventory_slot_id = item_xml.css('wowhead item inventorySlot').attribute('id').content.to_i
|
|
225
|
-
self.buy_price = item_equip_json['buyprice'].
|
|
226
|
-
self.sell_price = item_equip_json['sellprice'].
|
|
225
|
+
self.buy_price = item_equip_json['buyprice'].to_i
|
|
226
|
+
self.sell_price = item_equip_json['sellprice'].to_i
|
|
227
227
|
|
|
228
228
|
if item_xml.css('wowhead item createdBy').length == 1
|
|
229
229
|
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 ==
|
|
61
|
+
item.sell_price.should == 2462
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
it "should have a vendor buy price" do
|
|
65
|
-
item.buy_price.should ==
|
|
65
|
+
item.buy_price.should == 12311
|
|
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.2.
|
|
5
|
+
version: 0.2.3
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Ben Darlow
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-07-
|
|
13
|
+
date: 2011-07-05 00:00:00 +01:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|