omniauth-slack 2.0.0 → 2.0.1

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: b291a4ae7bb944ff8ca89710650f99ab928a2143
4
- data.tar.gz: 7cc3ed52232e9a2fd8877e1f28c03ec833fca132
3
+ metadata.gz: c9192e242fdbc3258a77413bf2ebe036666ff3ed
4
+ data.tar.gz: 94178c66fb3f9dab3a3f73cad1511460d10d8806
5
5
  SHA512:
6
- metadata.gz: 8c04b6dfc85fc63c4bdecca97783bdd8b514590b5b7adf76a2ec7c16e986660e3ff11ceb698deefedd2ee1236aaea715cb958574c7f660bb66ce0ad34655179d
7
- data.tar.gz: 468d6b8e90e61be21dd9aed38cead230b9021347f73e1405d48daaff08b5c460edfbce23b58135402d6ce5acee0abf85ec34fbb2b48394fadb362db8c909f40a
6
+ metadata.gz: c4a5fd83c1403453ec3ca1b644e76490e0d658b9dbf23f4e7376b6bafbbbaf08c32c495d068130afe138f62fcac3b32fbad0e2b564205c9079c09a3f035dd468
7
+ data.tar.gz: e4753f6f5ccdce00a01af7f8ed60942f7dd6260a61d0fa1268f2cf72ebd56f8ef318501c842ff52086af8a00f3d4e2b0a8a7e87227034544af589ae2b80de562
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Slack
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -22,17 +22,22 @@ module OmniAuth
22
22
 
23
23
  info do
24
24
  {
25
- name: user_info['user']['profile']['real_name_normalized'],
26
- email: user_info['user']['profile']['email'],
25
+ name: user_info['user'].fetch('profile')['real_name_normalized'],
26
+ email: user_info['user'].fetch('profile')['email'],
27
27
  nickname: raw_info['user'],
28
- first_name: user_info['user']['profile']['first_name'],
29
- last_name: user_info['user']['profile']['last_name'],
30
- description: user_info['user']['profile']['title'],
31
- image: user_info['user']['profile']['image_192'],
28
+ first_name: user_info['user'].fetch('profile')['first_name'],
29
+ last_name: user_info['user'].fetch('profile')['last_name'],
30
+ description: user_info['user'].fetch('profile')['title'],
31
+ image_24: user_info['user'].fetch('profile')['image_24'],
32
+ image_48: user_info['user'].fetch('profile')['image_48'],
33
+ image: user_info['user'].fetch('profile')['image_192'],
32
34
  team: raw_info['team'],
33
35
  user: raw_info['user'],
34
36
  team_id: raw_info['team_id'],
35
- user_id: raw_info['user_id']
37
+ user_id: raw_info['user_id'],
38
+ is_admin: user_info['user']['is_admin'],
39
+ is_owner: user_info['user']['is_owner'],
40
+ time_zone: user_info['user']['tz']
36
41
  }
37
42
  end
38
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kimura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-09 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.2.2
91
+ rubygems_version: 2.4.3
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: OmniAuth strategy for Slack