omniauth-nctu 0.1.0 → 1.0.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: ec20404fb79a769de42f06583db429c11b5decb1
4
- data.tar.gz: 192ac2d6546ff81c1fd35c9fd305f4d03476af69
3
+ metadata.gz: 48f9ff7727d634c6f7fafdaffb22846be21b8478
4
+ data.tar.gz: 80a9339d591652e37b712b9e1762d03e73ca751d
5
5
  SHA512:
6
- metadata.gz: c7f83c70977c1379adb7ca82a1acafed3ce27a7c69b5f116ddcf0db84f1b1d00fd9aaf188eecbdc34fbb6577f2543909353401b39302dc0d31bac5488582d5e8
7
- data.tar.gz: 56d93de1e712afdd20d560f92914d95dc58a59d5c3ae4d1189766aa7ee0eacbebf7d7ef4faed3f9eb80184f56a38bccfc57937f964ef8e2df2ff1a86790911b6
6
+ metadata.gz: c8620e955143d712a716210de5a7099884322e0ece75a3571241f1ad41596b72b347aca84ffe5b6517593e76d5c2726e1c7d5f56a070f800ff6035b777dfff60
7
+ data.tar.gz: c4e80d0d737b383e8e8c4b1d3a6b32ac22520d15959cf8bb11bb11916329444b705404eebf057f3c5a1477501c0854f450dbeda29e6de9d8c017d85478b48542
data/README.md CHANGED
@@ -37,7 +37,7 @@ end
37
37
 
38
38
  get '/auth/nctu/callback' do
39
39
  request.env['omniauth.auth'].to_hash.inspect rescue "No Data"
40
- erb "您好,#{request.env['omniauth.auth'].to_hash["uid"]}。您的D2信箱是#{request.env['omniauth.auth'].to_hash["info"]["d2_email"]}。"
40
+ erb "您好,#{request.env['omniauth.auth'].to_hash["uid"]}。您的D2信箱是#{request.env['omniauth.auth'].to_hash["info"]["email"]}。"
41
41
  end
42
42
  ```
43
43
 
data/example/config.ru CHANGED
@@ -15,5 +15,5 @@ end
15
15
  get '/auth/nctu/callback' do
16
16
  request.env['omniauth.auth'].to_hash.inspect rescue "No Data"
17
17
  puts request.env['omniauth.auth']
18
- erb "您好,#{request.env['omniauth.auth'].to_hash["uid"]}。您的D2信箱是#{request.env['omniauth.auth'].to_hash["info"]["d2_email"]}。"
18
+ erb "您好,#{request.env['omniauth.auth']["uid"]}。您的D2信箱是#{request.env['omniauth.auth']["info"]["email"]}。"
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Nctu
3
- VERSION = "0.1.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -20,7 +20,7 @@ module OmniAuth
20
20
 
21
21
  info do
22
22
  {
23
- :d2_email => raw_info["d2_email"]
23
+ :email => raw_info["email"]
24
24
  }
25
25
  end
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-nctu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuan-Yao Sung
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-03 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.5.1
124
+ rubygems_version: 2.6.11
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: OmniAuth OAuth2 strategy for NCTU Oauth