omniauth-bcx 0.1.1 → 1.0.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
- SHA1:
3
- metadata.gz: 61b654253e2124bd1dad90bdecd3a372b38dec20
4
- data.tar.gz: 3b0ddd213c48b4b45eb7273fef52bf8da055f2dd
2
+ SHA256:
3
+ metadata.gz: 010ceab5958c5e99006c38b8ecd4aa5851bc8cb59e3b17f87104c1c7b96ab89c
4
+ data.tar.gz: 54467643587d83eac1ca76a663d0e79f6e826b417456a0c08fc489e3e422536a
5
5
  SHA512:
6
- metadata.gz: 6541b415c2a2dcc25e3223336d4da84af7085da1c31325236912cac934766bd6b66fc8ada8bec0b714544997fbf8cd4e5a9adad9bfbe12329ab0a952671c7103
7
- data.tar.gz: 928b4ab24c3c85543f64239ad8fdc9da461ac7a46519b1443bee526a49793c86c902d869db97637d186a9eec499531f64ce8401f610cf8a1df25afbe050a56bd
6
+ metadata.gz: 7eb65969bf37f2b165448964bd371ae3f9f79909fd976c5780d32e75810ba1990a37c612220e0c19a29694b6ed17d4e41e93222781e7aac8389c0aebcf951903
7
+ data.tar.gz: 92f4596ac19b765279e4440ace87c65d74041c8c1b54098be03258bcf97456395d3db4aad315f606f721ca562be4a61b02abd1bce0316e836a0e3562a2ddc51f
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Omniauth::BCX
2
2
 
3
- [![Travis-CI](https://travis-ci.org/fnando/omniauth-bcx.png)](https://travis-ci.org/fnando/omniauth-bcx)
4
- [![CodeClimate](https://codeclimate.com/github/fnando/omniauth-bcx.png)](https://codeclimate.com/github/fnando/omniauth-bcx)
3
+ [![Travis-CI](https://travis-ci.org/fnando/omniauth-bcx.svg)](https://travis-ci.org/fnando/omniauth-bcx)
4
+ [![CodeClimate](https://codeclimate.com/github/fnando/omniauth-bcx.svg)](https://codeclimate.com/github/fnando/omniauth-bcx)
5
5
  [![Test Coverage](https://codeclimate.com/github/fnando/omniauth-bcx/badges/coverage.svg)](https://codeclimate.com/github/fnando/omniauth-bcx/coverage)
6
6
  [![Gem](https://img.shields.io/gem/v/omniauth-bcx.svg)](https://rubygems.org/gems/omniauth-bcx)
7
7
  [![Gem](https://img.shields.io/gem/dt/omniauth-bcx.svg)](https://rubygems.org/gems/omniauth-bcx)
@@ -32,8 +32,8 @@ Here's a quick example, adding the middleware to a Rails app in `config/initiali
32
32
 
33
33
  ```ruby
34
34
  Rails.application.config.middleware.use OmniAuth::Builder do
35
- provider :basecamp,
36
- ENV['BASECAMP_CLIENT_ID'],
35
+ provider :basecamp,
36
+ ENV['BASECAMP_CLIENT_ID'],
37
37
  ENV['BASECAMP_CLIENT_SECRET']
38
38
  end
39
39
  ```
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module BCX
3
- VERSION = "0.1.1".freeze
3
+ VERSION = "1.0.0".freeze
4
4
  end
5
5
  end
@@ -25,7 +25,9 @@ module OmniAuth
25
25
  end
26
26
 
27
27
  info do
28
- raw_info.fetch(:identity)
28
+ identity = raw_info.fetch(:identity).dup
29
+ identity[:email] = identity.delete(:email_address)
30
+ identity
29
31
  end
30
32
 
31
33
  extra do
@@ -18,7 +18,7 @@ class DataTest < Minitest::Test
18
18
  end
19
19
 
20
20
  test "returns info" do
21
- identity = {id: "ID", name: "NAME"}
21
+ identity = {id: "ID", name: "NAME", email_address: "EMAIL"}
22
22
  raw_info = {identity: identity}
23
23
  strategy.stubs(:raw_info).returns(raw_info)
24
24
 
@@ -26,6 +26,7 @@ class DataTest < Minitest::Test
26
26
 
27
27
  assert_equal "ID", info[:id]
28
28
  assert_equal "NAME", info[:name]
29
+ assert_equal "EMAIL", info[:email]
29
30
  end
30
31
 
31
32
  test "returns uid" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-bcx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-17 00:00:00.000000000 Z
11
+ date: 2018-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.6.13
167
+ rubygems_version: 2.7.6
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: OmniAuth strategy for Basecamp (https://basecamp.com).