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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 498a20d5dfcfbb3cbd7f5cd44b93f595406b646d
4
- data.tar.gz: e97b383b30205d28c63b8db6729f78a767d7fe69
3
+ metadata.gz: 752572188d961eae7ec2cc6a30946bd732006af2
4
+ data.tar.gz: 31c9b3ede83f734c629ea17e2f60cc521454dc67
5
5
  SHA512:
6
- metadata.gz: c37e2dfadebc4307fb6d2e26c98a26a7ae2ab49efa3ac9535309a268a7f4da04ca8b5da0ff8db37301f7724444ab540b6ef60b03dada3276818a1c87d8266019
7
- data.tar.gz: a6df2db6074ef9bad18eef3b813ec330f7f0119627dc4481f3e7afd0c1092b733cc87539670416f156361de9d1651314cc12e09f80f2904b3de27a9832ae132e
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
@@ -1,4 +1,3 @@
1
1
  class Wowapi
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
4
-
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.0.0
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: 2016-11-22 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry