mywowarmory-ruby 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/mywowarmory.rb +2 -1
- data/mywowarmory-ruby.gemspec +2 -2
- data/test/test_mywowarmory.rb +1 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/mywowarmory.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'httparty'
|
2
2
|
require 'ostruct'
|
3
|
+
require 'cgi'
|
3
4
|
|
4
5
|
class MyWoWArmory
|
5
6
|
include HTTParty
|
@@ -11,7 +12,7 @@ class MyWoWArmory
|
|
11
12
|
|
12
13
|
def get_profile(country,realm,character_name,options={})
|
13
14
|
# options.merge!({:basic_auth => @auth})
|
14
|
-
self.class.get("/api/profiles/#{country}/#{realm}/#{character_name}.json", options).parsed_response
|
15
|
+
self.class.get("/api/profiles/#{country}/#{realm.tr('^a-zA-Z','-').downcase}/#{CGI::escape(character_name)}.json", options).parsed_response
|
15
16
|
end
|
16
17
|
class Profile < OpenStruct
|
17
18
|
end
|
data/mywowarmory-ruby.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mywowarmory-ruby}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Benjamin Wong"]
|
12
|
-
s.date = %q{2011-09-
|
12
|
+
s.date = %q{2011-09-16}
|
13
13
|
s.description = %q{This library uses HTTParty to provide simple, reliable access to the MyWoWArmory API. Good for building reporting scripts and simple apps. Note that this library does not support the complete MyWoWArmory API at this time. See Features/Issues below for details. }
|
14
14
|
s.email = %q{tkwong@railsant.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/test/test_mywowarmory.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mywowarmory-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Benjamin Wong
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-16 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|