wowget 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/wowget/spell.rb +2 -2
  2. data/spec/spell_spec.rb +1 -1
  3. 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 :skill_level
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.skill_level = p[1].to_i
47
+ self.skill = p[1].to_i
48
48
  end
49
49
  end
50
50
  end
data/spec/spell_spec.rb CHANGED
@@ -30,7 +30,7 @@ describe Wowget::Spell do
30
30
 
31
31
  it "should have a professional skill requirement" do
32
32
  spell.profession.should == 'Blacksmithing' and
33
- spell.skill_level.should == 450
33
+ spell.skill.should == 450
34
34
  end
35
35
  end
36
36
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: wowget
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.4
5
+ version: 0.1.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Darlow