Commit fc4c2c7b authored by Francis's avatar Francis
Browse files

Fixed D3 item URL

parent 3774ba08
Pipeline #137350971 passed with stage
in 5 minutes and 7 seconds
Please view this file on the master branch, otherwise it may be outdated
**Version 0.3.11**
Fixed D3 item URL.
**Version 0.3.10**
Really fixed D3 profile URLs this time.
......
......@@ -14,12 +14,11 @@ module BlizzardApi
# Return information about an item
#
# @param item_slug [String] Item slug
# @param item_id [Integer] Item id
# @!macro request_options
#
# @!macro response
def get(item_slug, item_id, options = {})
api_request "#{base_url(:community)}/data/item/#{item_slug}-#{item_id}", { ttl: CACHE_TRIMESTER }.merge(options)
def get(item_slug_and_id, options = {})
api_request "#{base_url(:community)}/data/item/#{item_slug_and_id}", { ttl: CACHE_TRIMESTER }.merge(options)
end
end
end
......
......@@ -2,5 +2,5 @@
module BlizzardApi
# Gem version
VERSION = '0.3.10'
VERSION = '0.3.11'
end
......@@ -12,7 +12,7 @@ module BlizzardApi
end
def test_item_get
item_data = @item.get 'corrupted-ashbringer', 'Unique_Sword_2H_104_x1'
item_data = @item.get 'corrupted-ashbringer-Unique_Sword_2H_104_x1'
assert_equal 'unique_sword_2h_104_x1_demonhunter_male', item_data[:icon]
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment