Skip to content

Commit

Permalink
removed titles due to blizz armory removal. updated gemspec and chang…
Browse files Browse the repository at this point in the history
…elog to reflect changes made

Signed-off-by: Peter Wood <peter@alastria.net>
  • Loading branch information
predhme authored and pwood committed Jul 9, 2009
1 parent c5af045 commit a4463cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
7 changes: 7 additions & 0 deletions changelog.txt
@@ -1,3 +1,10 @@
0.5.3
* Removed titles due to removal from Blizzard Armory.

0.5.2
* Added advanced item searching (source, dungeonId, type, subtype, etc)
* Fixed bug with http connection retries with ruby 1.9

0.5.0
* Removed character skills due to removal from Blizzard Armory, primary professions are still available.
* Reimplemented Armory login support to use central Blizzard authentication servers.
Expand Down
15 changes: 8 additions & 7 deletions lib/wowr/character.rb
Expand Up @@ -134,7 +134,8 @@ class SearchCharacter < Character
class InfoCharacter < Character

# character_info
attr_reader :char_url, :title, :known_titles,
attr_reader :char_url,
# :title, :known_titles,
:faction, :faction_id,
:arena_teams,
:last_modified,
Expand Down Expand Up @@ -243,14 +244,14 @@ def character_info(elem)

def character_tab(elem)
# <title value=""/>
@title = (elem%'title')[:value] == "" ? nil : (elem%'title')[:value]
#@title = (elem%'title')[:value] == "" ? nil : (elem%'title')[:value]

@known_titles = []
#@known_titles = []

@known_titles << @title if (@title)
(elem%'knownTitles'/:title).each do |entry|
@known_titles << entry[:value] if (!@known_titles.include?(entry[:value]))
end
#@known_titles << @title if (@title)
#(elem%'knownTitles'/:title).each do |entry|
# @known_titles << entry[:value] if (!@known_titles.include?(entry[:value]))
#end

@health = (elem%'characterBars'%'health')[:effective].to_i
@second_bar = SecondBar.new(elem%'characterBars'%'secondBar')
Expand Down
2 changes: 1 addition & 1 deletion wowr.gemspec
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = %q{wowr}
s.version = "0.5.2"
s.version = "0.5.3"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ben Humphreys", "Peter Wood", "Renaud Chaput", "Ken Preudhomme"]
Expand Down

0 comments on commit a4463cd

Please sign in to comment.