omniauth-nuwe 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 425b40dcef2ecd0e60de1fd153d3cf99a1bf0450
4
- data.tar.gz: 1a0aac953771b5665797852bb5bae1091057f224
3
+ metadata.gz: 48b2df4585e2577bdd8fc90a6c0f4a9dae976ff4
4
+ data.tar.gz: 8f52c7288da7c17dde9af47b678204ec0952fccf
5
5
  SHA512:
6
- metadata.gz: 663b551c592eccb175248c3985b6571427418d720e4825a81cc8b0bcdede9d1ba1790a3b9fb818a236bef426dacdc0db442508b42feebce55265f0e3efb28b5f
7
- data.tar.gz: 99949de0cd7ca6a14626fe86c19e23b5eefd5cb425dce7da5f61b86cfb83470fbc77bc03380108514a9ef341321c07fdbcf21b04b770b13d268dc69ccfd2760a
6
+ metadata.gz: 1a3a8321fb4c0fbbe959571a1ba98451d84f239dd0fbc9c72b096ee1a2e3ad6cd13702b5f0737a2e1038c763fdae17a73c270d4c1557e02efbd88005d10d2e58
7
+ data.tar.gz: 99476465cf3583cb2d914075ce7cff57dbd86f551e6f2786fbb3b6866401b8e6b100ce8949f4b7921656687387d3870f317c0e9b9cbaeb55fe5b5d96a9465dea
data/example/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'sinatra'
4
- gem 'omniauth-nuwe'
4
+ gem 'omniauth-nuwe', :path => '../'
data/example/Gemfile.lock CHANGED
@@ -1,3 +1,10 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ omniauth-nuwe (1.0.3)
5
+ omniauth (~> 1.0)
6
+ omniauth-oauth2 (>= 1.1.1, < 2.0)
7
+
1
8
  GEM
2
9
  remote: https://rubygems.org/
3
10
  specs:
@@ -17,9 +24,6 @@ GEM
17
24
  omniauth (1.2.2)
18
25
  hashie (>= 1.2, < 4)
19
26
  rack (~> 1.0)
20
- omniauth-nuwe (1.0.1)
21
- omniauth (~> 1.0)
22
- omniauth-oauth2 (>= 1.1.1, < 2.0)
23
27
  omniauth-oauth2 (1.2.0)
24
28
  faraday (>= 0.8, < 0.10)
25
29
  multi_json (~> 1.3)
@@ -38,5 +42,5 @@ PLATFORMS
38
42
  ruby
39
43
 
40
44
  DEPENDENCIES
41
- omniauth-nuwe
45
+ omniauth-nuwe!
42
46
  sinatra
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Nuwe
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -16,12 +16,12 @@ module OmniAuth
16
16
 
17
17
  info do
18
18
  {
19
- :last_name => raw_info["profile"]["last_name"],
20
- :first_name => raw_info["profile"]["first_name"],
19
+ :last_name => raw_info["user"]["profile"]["last_name"],
20
+ :first_name => raw_info["user"]["profile"]["first_name"],
21
21
  :email => raw_info["user"]["email"],
22
- :sex => raw_info["profile"]["sex"],
23
- :birth_date => raw_info["profile"]["birth_date"],
24
- :activity => raw_info["profile"]["activity"]
22
+ :sex => raw_info["user"]["profile"]["sex"],
23
+ :birth_date => raw_info["user"]["profile"]["birth_date"],
24
+ :activity => raw_info["user"]["profile"]["activity"]
25
25
 
26
26
  }
27
27
  end
@@ -33,14 +33,16 @@ describe "OmniAuth::Strategies::Nuwe" do
33
33
  describe '#info' do
34
34
  before :each do
35
35
  @raw_info = { 'user' => { 'id' => 123,
36
- 'email' => 'fred@example.com'},
37
- 'profile' => {
38
- 'first_name' => 'Fred',
39
- 'last_name' => 'Smith',
40
- 'sex' => 'F',
41
- 'birth_date' => '1981-08-01',
42
- 'activity' => 2 }
43
- }
36
+ 'email' => 'fred@example.com',
37
+ 'profile' => {
38
+ 'first_name' => 'Fred',
39
+ 'last_name' => 'Smith',
40
+ 'sex' => 'F',
41
+ 'birth_date' => '1981-08-01',
42
+ 'activity' => 2 }
43
+ }
44
+ }
45
+
44
46
  allow(subject).to receive_messages(:raw_info => @raw_info)
45
47
  end
46
48
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-nuwe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephanie Nemeth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-21 00:00:00.000000000 Z
11
+ date: 2015-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth