wowget 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wowget/spell.rb +2 -2
- data/spec/spell_spec.rb +1 -1
- metadata +1 -1
data/lib/wowget/spell.rb
CHANGED
@@ -8,7 +8,7 @@ module Wowget
|
|
8
8
|
attr_accessor :item_id
|
9
9
|
attr_accessor :reagents
|
10
10
|
attr_accessor :profession
|
11
|
-
attr_accessor :
|
11
|
+
attr_accessor :skill
|
12
12
|
attr_accessor :error
|
13
13
|
|
14
14
|
def initialize(spell_id)
|
@@ -44,7 +44,7 @@ module Wowget
|
|
44
44
|
unless self.item_id.nil?
|
45
45
|
p = spell_xml.xpath("//script[contains(., 'Markup')]").inner_text.scan(/\[ul\]\[li\](.+?)\[\/li\]/)[0][0].scan(/Requires (.+?) \(([0-9]+?)\)/)[0]
|
46
46
|
self.profession = p[0]
|
47
|
-
self.
|
47
|
+
self.skill = p[1].to_i
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
data/spec/spell_spec.rb
CHANGED