omniauth-naver 0.0.2 → 0.1.0

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: bdac5463ae234c95fe628fe04957ab1193f6eec1
4
- data.tar.gz: 1836bcf3c8dcc7c51716d07fc48ddd88d6ab1951
3
+ metadata.gz: a7baf16cf3a64b6d0e67364beeeb9a036b32b546
4
+ data.tar.gz: 5e2b890400d21e09ee014f4a900e3c0c6343f85a
5
5
  SHA512:
6
- metadata.gz: 7d698237d894f58b6c3f38bde4c8d0f1e077fcd88f82780c1160be8f1bfa09edbcfda48f3e1df98ccb5b11a27fbc7823e3f8e7e0b0af99a9c7797266925c23ec
7
- data.tar.gz: 3c2db37ded209000a674f7339148e647d182232fee4e2f651f974378e2fe0e990dba22b806fb2a359e253da62cb127faa27b1cac006391d7dabeb9417eca3925
6
+ metadata.gz: e3e4c48729781be41d723340e80b55cabeda96f004b1aa406834f334fe2bac0faf356f9814ebff283bf8cfcfa0f259964ee5f4323d638b2dbe37974f19db6785
7
+ data.tar.gz: 649427664bfa479c40740a0bbf7e954ff3829a5a669db9efe692651133f4aa0feba233e6ea3b1873fbf79e1d2c365d10f9e71338fa0fc0e2a0860443faee9044
data/README.md CHANGED
@@ -34,37 +34,47 @@ Here's an example *Auth Hash* available in `request.env['omniauth.auth']`:
34
34
 
35
35
  ```ruby
36
36
  {
37
- provider: naver
38
- uid: 86744e27d4bfdb3cddb478293d295cf783ce9ed41f0ad7687bac26e97a1ed1b4
39
- info: !ruby/hash:OmniAuth::AuthHash::InfoHash
40
- name: "foobar"
41
- email: foobar@naver.com
42
- gender: male
43
- image: https://ssl.pstatic.net/static/pwe/address/nodata_33x33.gif
44
- credentials: !ruby/hash:OmniAuth::AuthHash
45
- token: AAAAOpVbMMMRWuRxewGhFqvGu92+Ri8hZ+i3QIId2vq/nDRHhzIbFXCEuGoWsjeZt9VV1KA+6IAB6lQtWidEYSjpgYU=
46
- refresh_token: 2hHBogSApL4Z2tDW1ippPmrPiiWMiiiseId6LcJRmFTzARYkSzQmHbqAlqBgkIvYisS0tjisTCEBDaMmyaKZwuKo3ATGBsoQjzLmOB9PVp91cd28s2LRDisPxnaUG6NQ0fmRHFD
47
- expires_at: 1407165161
48
- expires: true
49
- extra: !ruby/hash:OmniAuth::AuthHash
50
- raw_info: !ruby/hash:OmniAuth::AuthHash
51
- data: !ruby/hash:OmniAuth::AuthHash
52
- result: !ruby/hash:OmniAuth::AuthHash
53
- resultcode: '00'
54
- message: success
55
- response: !ruby/hash:OmniAuth::AuthHash
56
- email: foobar@naver.com
57
- nickname: "foobar"
58
- enc_id: 86744e27d4bfdb3cddb478293d295cf783ce9ed41f0ad7687bac26e97a1ed1b4
59
- profile_image: https://ssl.pstatic.net/static/pwe/address/nodata_33x33.gif
60
- age: 30-39
61
- birthday: 01-08
62
- gender: M
37
+ "provider"=>"naver",
38
+ "uid"=>"86744e27d4bfdb3cddb478293d295cf783ce9ed41f0ad7687bac26e97a1ed1b4",
39
+ "info"=>{
40
+ "name"=>"홍길동",
41
+ "email"=>"foobar@naver.com",
42
+ "gender"=>"male",
43
+ "image"=>"https://phinf.pstatic.net/contactthumb/52/2014/8/4/kimsuerim_1407162661934.jpg"
44
+ },
45
+ "credentials"=>{
46
+ "token"=>"AAAAOaaPwFPh1sKav5f5XBbRNfMmqudjxdGsVJQCJdRXKWmWmxAgXwlk29365tU1S4j3oXjG3HpnGG4w+CoJ+gg5eDA=",
47
+ "refresh_token"=>"kgA4WSgY8h5ZWYFgGxpd0jjGcPTGqf1vUdGq2nj7rfupHMUxUa9adXJhbddMzadB1X9djhfCbBisZGMUsisCp4XuPMRjiiz4yTSG93y3ziiQerTdOUJKuW6VVR5FQLHxj87y",
48
+ "expires_at"=>1455173853,
49
+ "expires"=>true
50
+ },
51
+ "extra"=>{
52
+ "raw_info"=>{
53
+ "data"=>{
54
+ "result"=>{
55
+ "resultcode"=>"00",
56
+ "message"=>"success"
57
+ },
58
+ "response"=>{
59
+ "email"=>"foobar@naver.com",
60
+ "nickname"=>"foobar",
61
+ "enc_id"=>"86744e27d4bfdb3cddb478293d295cf783ce9ed41f0ad7687bac26e97a1ed1b4",
62
+ "profile_image"=>"https://phinf.pstatic.net/contactthumb/52/2014/8/4/kimsuerim_1407162661934.jpg?type=s80",
63
+ "age"=>"30-39",
64
+ "gender"=>"M",
65
+ "id"=>"48407261",
66
+ "name"=>"홍길동",
67
+ "birthday"=>"01-08"
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
63
73
  ```
64
74
 
65
75
  ## Contributing
66
76
 
67
- 1. Fork it ( https://github.com/[my-github-username]/omniauth-naver/fork )
77
+ 1. Fork it ( https://github.com/kimsuelim/omniauth-naver/fork )
68
78
  2. Create your feature branch (`git checkout -b my-new-feature`)
69
79
  3. Commit your changes (`git commit -am 'Add some feature'`)
70
80
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Naver
3
- VERSION = "0.0.2"
3
+ VERSION = '0.1.0'.freeze
4
4
  end
5
5
  end
@@ -15,7 +15,7 @@ module OmniAuth
15
15
 
16
16
  info do
17
17
  {
18
- 'name' => raw_properties['nickname'],
18
+ 'name' => raw_properties['name'],
19
19
  'email' => raw_properties['email'],
20
20
  'gender' => gender,
21
21
  'image' => image,
@@ -26,7 +26,6 @@ module OmniAuth
26
26
  {:raw_info => raw_info}
27
27
  end
28
28
 
29
-
30
29
  private
31
30
 
32
31
  def gender
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-naver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Surim Kim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-01 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2