sorcery 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sorcery might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/README.md +1 -0
- data/lib/sorcery/providers/linkedin.rb +4 -2
- data/lib/sorcery/version.rb +1 -1
- 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: 4a4f8fffc57148ce88fac95615c62974067f30ab
|
4
|
+
data.tar.gz: 742f040d7128342812e667e646e80d4f2dcc9119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5bf556539cc55cfa68727b84b2dfd69f22e6fe145d5797cdbd655360ef4cc7bc918dadca217d7d63420972d0e8f4fd86fe469d7edb10a1530eb4b9100a0c694
|
7
|
+
data.tar.gz: f253c7affbe104709c0f4be6c702ae7f37cecac7ebe7bd1d0609603d8887fe6a4f1c622da5a62b4f85bf542c6e49bdeb322c06ed8d95a34e7f6d880ec4a0c961
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/sorcery.svg)](https://rubygems.org/gems/sorcery)
|
4
4
|
[![Gem Downloads](https://img.shields.io/gem/dt/sorcery.svg)](https://rubygems.org/gems/sorcery)
|
5
5
|
[![Build Status](https://travis-ci.org/Sorcery/sorcery.svg?branch=master)](https://travis-ci.org/Sorcery/sorcery)
|
6
|
+
[![Dependency Status](https://gemnasium.com/badges/github.com/Sorcery/sorcery.svg)](https://gemnasium.com/github.com/Sorcery/sorcery)
|
6
7
|
[![Code Climate](https://codeclimate.com/github/Sorcery/sorcery.svg)](https://codeclimate.com/github/Sorcery/sorcery)
|
7
8
|
[![Inline docs](http://inch-ci.org/github/Sorcery/sorcery.svg?branch=master)](http://inch-ci.org/github/Sorcery/sorcery)
|
8
9
|
[![Join the chat at https://gitter.im/Sorcery/sorcery](https://badges.gitter.im/join_chat.svg)](https://gitter.im/Sorcery/sorcery?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
@@ -30,8 +30,10 @@ module Sorcery
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def get_user_hash(access_token)
|
33
|
-
|
34
|
-
|
33
|
+
# Always include id for provider uid and prevent accidental duplication via setting `user_info_field = ['id']` (needed in Sorcery 0.9.1)
|
34
|
+
info_fields = user_info_fields ? user_info_fields.reject{|n| n == 'id'} : []
|
35
|
+
fields = info_fields.any? ? 'id,' + info_fields.join(',') : 'id'
|
36
|
+
response = access_token.get("#{@user_info_path}:(#{fields})", 'x-li-format' => 'json')
|
35
37
|
|
36
38
|
auth_hash(access_token).tap do |h|
|
37
39
|
h[:user_info] = JSON.parse(response.body)
|
data/lib/sorcery/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorcery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noam Ben Ari
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2017-01-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: oauth
|