omniauth-snoonet 1.1.0 → 1.2.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: 7c2dc444c4812ffc30cf2f330aa28569ed9ca338
4
- data.tar.gz: 4900b5898daafb2a66dbb5eca8ec8fc2efec7c34
3
+ metadata.gz: 4b44a8b0589caf3b0b869f4b1d0d4b64070aed34
4
+ data.tar.gz: 560208076037643621c354667805e205e9c17ab2
5
5
  SHA512:
6
- metadata.gz: d331aba578391fdeca8df906a8d38dcbc356240797c7bd9d6cbe80368719b48a7df416df70594907888433c240f8a15f359a1f76f2426fd234a64ad3529084af
7
- data.tar.gz: 66093cb0784470ed4bf31de3c40107e6293388fbb6b88c7506f612752bab9927d60933b2d97d8cdb80bf7f452d33893025ac27250f1fa8afc5e9c53a74ca533f
6
+ metadata.gz: dc628b09267b70b98bca1f9e7066fb533f8c8d44cd31b109e796a907a2e49c78321a412163f8619723ff426de97ccd56695c0b12759fac9530722ae5096c0d72
7
+ data.tar.gz: 27cb141dc03c09db11f12db52e0415f7f1054a2779ddbf339478f4503630cb13277a1227e36819173c56b3eb34c400ac159a38e47845f500e76cc3f6cc51b7c2
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Snoonet
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
- omniauth-snoonet
2
- ==============
1
+ # omniauth-snoonet
3
2
 
4
3
  [![Gem Version](https://badge.fury.io/rb/omniauth-snoonet.png)](http://badge.fury.io/rb/omniauth-snoonet)
5
4
  [![Build Status](https://travis-ci.org/snoonetIRC/omniauth-snoonet.png?branch=master)](https://travis-ci.org/snoonetIRC/omniauth-snoonet)
@@ -53,33 +52,39 @@ Here's an example *Auth Hash* available in `request.env['omniauth.auth']`:
53
52
 
54
53
  ```ruby
55
54
  {
56
- :provider => 'snoonet',
57
- :uid => 'Nickname',
55
+ :provider => "snoonet",
56
+ :uid => "AwesomeUser",
58
57
  :info => {
59
- :identifier => 'Nickname',
60
- :registered => '2012-12-21 18:30:23',
61
- :vhost => 'user/Nickname',
62
- :lastquit => 'I quit.',
63
- :options => ['Option', 'Other Option', 'Even Different Option'],
64
- :email => 'john@example.com'
58
+ :name => "AwesomeUser",
59
+ :registered => "2014-01-23 01:06:47",
60
+ :vhost => "user/AwesomeUser",
61
+ :lastquit => "I am now disconnected!",
62
+ :options => [
63
+ "Option 1",
64
+ "Option 2"
65
+ ],
66
+ :email => "email@email.com"
65
67
  },
66
68
  :credentials => {
67
- :token => 'ABCDEF...',
68
- :refresh_token => 'ABCDEF...',
69
+ :token => "PtrCChoaiVXXKcofhgCP8Sf7vO9OxlyblPJdhQka",
70
+ :expires_at => 1437073311,
69
71
  :expires => true
70
72
  },
71
73
  :extra => {
72
- :identifier => 'Nickname',
73
- :info => {
74
+ :raw_info => {
75
+ :name => "AwesomeUser",
74
76
  :registered => {
75
- :date => '2012-12-21 18:30:23',
76
- :timezone_type => 3,
77
- :timezone => 'UTC'
78
- }
79
- :vhost => 'user/Nickname',
80
- :lastquit => 'I quit.',
81
- :options => ['Option', 'Other Option', 'Even Different Option'],
82
- :email => 'john@example.com'
77
+ :date => "2014-01-23 01:06:47",
78
+ :timezone_type => 2,
79
+ :timezone => "PST"
80
+ },
81
+ :vhost => "user/AwesomeUser",
82
+ :lastQuit => "I am now disconnected!",
83
+ :options => [
84
+ "Option 1",
85
+ "Option 2"
86
+ ],
87
+ :email => "email@email.com"
83
88
  }
84
89
  }
85
90
  }
@@ -87,14 +92,10 @@ Here's an example *Auth Hash* available in `request.env['omniauth.auth']`:
87
92
 
88
93
  ## Supported Ruby Versions
89
94
  `omniauth-snoonet` is tested under 1.9.2, 1.9.3, 2.0.0, 2.1.0, MRI Ruby HEAD, JRuby (1.9 mode and HEAD), and Rubinius
90
- (2.0 mode).
95
+ (2.0 mode). If the build is passing it will work under any of those Ruby versions.
91
96
 
92
- ## License
93
97
 
94
- Copyright (c) 2014 by Snoonet
95
98
 
96
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
99
+ ## Copyright and license
97
100
 
98
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
99
-
100
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
101
+ Copyright 2015 by Snoonet. Licensed under the [MIT license](https://github.com/snoonetIRC/omniauth-snoonet/blob/master/LICENSE).
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Snoonet
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
@@ -5,6 +5,7 @@ require 'dotenv'
5
5
  require 'sinatra'
6
6
  require 'omniauth'
7
7
  require 'omniauth-snoonet'
8
+ require 'json'
8
9
 
9
10
  Dotenv.load
10
11
 
@@ -25,7 +26,6 @@ get '/auth/failure' do
25
26
  end
26
27
 
27
28
  get '/auth/:name/callback' do
28
- puts request.env['omniauth.auth'].inspect
29
-
30
- 'Check logs for user information.'
29
+ auth = request.env['omniauth.auth']
30
+ puts JSON.pretty_generate(auth)
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-snoonet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Snoonet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-09 00:00:00.000000000 Z
11
+ date: 2015-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -76,6 +76,7 @@ files:
76
76
  - ".gitignore"
77
77
  - ".travis.yml"
78
78
  - Gemfile
79
+ - LICENSE
79
80
  - README.md
80
81
  - Rakefile
81
82
  - lib/omniauth-snoonet.rb