evertils-common 0.3.6 → 0.3.7

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: 5bfa8ef5502b4d8b2fe634bcc88146b5b9b18fe1
4
- data.tar.gz: 65149cf13987d49ee2f0a76f246f4edb12bd0578
3
+ metadata.gz: 153f94f8a87c6b2749003d3bd7d67c838c1a87e0
4
+ data.tar.gz: 76d8baa2ec8ee83dc8beb32023ce0424719b56f1
5
5
  SHA512:
6
- metadata.gz: 04b08444b954ab1e8cb7e10008cda27c2503d0530a83ffcd0dba07b15e95fcefc702e7d5cae2c7131a2da2f9b5ae022ae9e27a61e385be9a3eb699a80e2ab908
7
- data.tar.gz: b10f8ecb2cf93a0cef92105b1272e18d078c096f06693cce71688a21c03a9883f5e54a930af3261291d08e3da7989cb300d582ecf0abf16f068d3694cb1e426f
6
+ metadata.gz: f4cad18bef5bda1da1ca461f504ba8a7770cf4ed18b98c71603b0359ad29568a8417a7c31cd75b8cba259c5cb60ef24803a9c97f7288042bc652f30c76ecc788
7
+ data.tar.gz: 3723afc640b7773ea9e0523e10eff5110d38f9984209aed799fa85c93079b8800cd343503dead6a10e3f865946462d449aaed78db57c08834b35158b74c29192
@@ -25,9 +25,13 @@ module Evertils
25
25
 
26
26
  def info
27
27
  {
28
- :user => "#{@user.name} (#{@user.username}) - ID##{@user.id}",
29
- :shard => @user.shardId,
30
- :api_version => @version,
28
+ user: {
29
+ name: @user.name,
30
+ username: @user.username,
31
+ id: @user.id
32
+ },
33
+ shard: @user.shardId,
34
+ api_version: @version,
31
35
  }
32
36
  end
33
37
 
@@ -118,6 +118,13 @@ module Evertils
118
118
  sync = Entity::Sync.new
119
119
  sync.state
120
120
  end
121
+
122
+ #
123
+ # @since 0.3.7
124
+ def user_info
125
+ auth = Authentication.instance
126
+ auth.info
127
+ end
121
128
  end
122
129
  end
123
130
  end
@@ -1,5 +1,5 @@
1
1
  module Evertils
2
2
  module Common
3
- VERSION = '0.3.6'.freeze
3
+ VERSION = '0.3.7'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evertils-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Priebe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-30 00:00:00.000000000 Z
11
+ date: 2017-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake