wowapi 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wowapi/modules/character.rb +4 -4
- data/lib/wowapi/version.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 752572188d961eae7ec2cc6a30946bd732006af2
|
4
|
+
data.tar.gz: 31c9b3ede83f734c629ea17e2f60cc521454dc67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 502ad5b3e090f0f4f7a90ab68b60f4238abeea121233ec82e0246faeaf15b5c79adcbf3ba387d3e3337772bb7cd1734132330f9cc0c51c2452ca402fa449a6b5
|
7
|
+
data.tar.gz: 95fb2b54f5cfbf5f8879349c769b1de5b3b2a91a50eace939b8d79fda668f4cb9325dd2dddb14bbae0aa8beff96082cd9e0b19c23a5d84533c6486396f3f6fb6
|
@@ -5,10 +5,10 @@ class Wowapi
|
|
5
5
|
module Character
|
6
6
|
# todo: issue-13
|
7
7
|
class CharacterClass < Wowapi::ResponseData
|
8
|
-
## Character avatar image
|
9
|
-
def avatar
|
8
|
+
## Character avatar image. Pass .avatar(https: true) for HTTPS link.
|
9
|
+
def avatar(opts = {})
|
10
10
|
_url = @table[:character]['thumbnail'] || @table[:thumbnail]
|
11
|
-
_url ? ("http://render-api-#{Wowapi.region}.worldofwarcraft.com/static-render/#{Wowapi.region}/#{_url}") : (nil)
|
11
|
+
_url ? ("http#{'s' if opts[:https]}://render-api-#{Wowapi.region}.worldofwarcraft.com/static-render/#{Wowapi.region}/#{_url}") : (nil)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
@@ -20,4 +20,4 @@ class Wowapi
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
23
|
-
end
|
23
|
+
end
|
data/lib/wowapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wowapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Matusz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|