wowr 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wowr.rb +12 -7
- metadata +2 -2
data/lib/wowr.rb
CHANGED
@@ -16,9 +16,9 @@ require 'cgi'
|
|
16
16
|
# TODO: what does this do?
|
17
17
|
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
18
18
|
|
19
|
-
require '
|
20
|
-
require '
|
21
|
-
require '
|
19
|
+
require 'wowr/exceptions'
|
20
|
+
require 'wowr/extensions'
|
21
|
+
require 'wowr/classes'
|
22
22
|
|
23
23
|
module Wowr
|
24
24
|
class API
|
@@ -44,6 +44,15 @@ module Wowr
|
|
44
44
|
|
45
45
|
@@max_connection_tries = 10
|
46
46
|
|
47
|
+
# Tiny forum-used race/class icons
|
48
|
+
# http://forums.worldofwarcraft.com/images/icon/class/4.gif
|
49
|
+
# http://forums.worldofwarcraft.com/images/icon/race/3-0.gif
|
50
|
+
# http://forums.worldofwarcraft.com/images/icon/pvpranks/rank_default_0.gif
|
51
|
+
|
52
|
+
# Spell stuff
|
53
|
+
# http://armory.worldofwarcraft.com/images/icons/21x21/spell_nature_thorns.png
|
54
|
+
# http://armory.worldofwarcraft.com/images/icons/21x21/ability_mount_mountainram.png
|
55
|
+
|
47
56
|
# Part of the rails plugin stuff?
|
48
57
|
# @@profession_icons = {
|
49
58
|
# :alchemy => "Trade_Alchemy.png",
|
@@ -124,16 +133,12 @@ module Wowr
|
|
124
133
|
raise Wowr::Exceptions::InvalidSearchType.new
|
125
134
|
end
|
126
135
|
|
127
|
-
puts options.to_yaml
|
128
|
-
|
129
136
|
if options[:search].nil?
|
130
137
|
raise Wowr::Exceptions::NoSearchString.new
|
131
138
|
end
|
132
139
|
|
133
140
|
xml = get_xml(@@search_url, options)
|
134
141
|
|
135
|
-
puts xml
|
136
|
-
|
137
142
|
results = []
|
138
143
|
|
139
144
|
if (xml%'armorySearch'%'searchResults')
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: wowr
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2008-01-
|
6
|
+
version: 0.1.1
|
7
|
+
date: 2008-01-23 00:00:00 +00:00
|
8
8
|
summary: An API wrapper for the World of Warcraft Armory.
|
9
9
|
require_paths:
|
10
10
|
- lib
|