wow 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 377cb66f84d3cc45b4c592a6f72f40e2ea650fff
4
- data.tar.gz: f9a903b65b3a628482f8c2a94e69e94acda1c8ae
3
+ metadata.gz: 6ae9d06308a6978aaa3faac33a8163b8e930f839
4
+ data.tar.gz: dfae006e47bba73c81a19c3fc2278024b34ab85e
5
5
  SHA512:
6
- metadata.gz: 63966434e738399f93767aabf04580db97504f56680e674bb2202c7e6f7f068cac8c69131672ae897b5466f1574e832c4c2fad045359338781194d8c20efd60d
7
- data.tar.gz: 68985a434342c46b547294bfc7ad8b915d96d491c2b347a3951ba95cbb1def64d803d29677a9b1004cd59d0b8f5a374abb36e987842dcecbd0544cc2b8329788
6
+ metadata.gz: 1b9c20c8489d64862bc637e17a1593be812546e96858f5f13000bd079a74413ab73990034c329df64dfeb9ac800642ee154a50a98a9d9facb667c2b376802268
7
+ data.tar.gz: fa74404d15dbe03bff95d6255d1d7df5c5d6411ad285d1534f3729e8b5f6bb9fe188bdab2699a849ab34320d7832d23b5122e100f28f7b923cda119ce7d5338d
@@ -5,4 +5,4 @@ puts epicgrim["achievementPoints"]
5
5
  puts epicgrim["items"]["averageItemLevelEquipped"]
6
6
  p epicgrim.gets
7
7
  puts epicgrim.get?("class")
8
- puts epicgrim.get("class")
8
+ puts epicgrim.get("class")
@@ -25,7 +25,13 @@ module WoW
25
25
  end
26
26
 
27
27
  params = params.merge({fields: fields.join(',')})
28
- super(self.class.data(realm, character_name, params))
28
+ data = self.class.data(realm, character_name, params)
29
+
30
+ if data.empty?
31
+ raise APIError, "Character not active."
32
+ end
33
+
34
+ super(data)
29
35
  end
30
36
 
31
37
  class << self
@@ -1,3 +1,3 @@
1
1
  module WoW
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Lilienthal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-27 00:00:00.000000000 Z
11
+ date: 2014-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler