wowget 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,5 +2,5 @@ require 'wowget/item.rb'
2
2
  require 'wowget/spell.rb'
3
3
 
4
4
  module Wowget
5
- VERSION = '0.4.6'
5
+ VERSION = '0.4.7'
6
6
  end
@@ -240,7 +240,7 @@ module Wowget
240
240
  def self.inventory_slot_from_slug(slug)
241
241
  found = nil
242
242
  INVENTORY_SLOTS.each_pair do |id, slot|
243
- found = slot if slot[:slug] == slug
243
+ found = slot.merge(:id => id) if slot[:slug] == slug
244
244
  end
245
245
  found
246
246
  end
@@ -3,7 +3,7 @@ require_relative "../lib/wowget/item.rb"
3
3
  describe Wowget::Item do
4
4
 
5
5
  it "can find an item slot by its slug" do
6
- Wowget::Item.inventory_slot_from_slug('held_in_off_hand').should == {:name => 'Held In Off-hand', :slug => 'held_in_off_hand'}
6
+ Wowget::Item.inventory_slot_from_slug('held_in_off_hand').should == {:id => 23, :name => 'Held In Off-hand', :slug => 'held_in_off_hand'}
7
7
  end
8
8
 
9
9
  describe "With a valid ID" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: wowget
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.6
5
+ version: 0.4.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Darlow