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 +4 -4
- data/LICENSE +21 -0
- data/README.md +30 -29
- data/lib/omniauth/snoonet/version.rb +1 -1
- data/spec/app.rb +3 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b44a8b0589caf3b0b869f4b1d0d4b64070aed34
|
4
|
+
data.tar.gz: 560208076037643621c354667805e205e9c17ab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
[](http://badge.fury.io/rb/omniauth-snoonet)
|
5
4
|
[](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 =>
|
57
|
-
:uid =>
|
55
|
+
:provider => "snoonet",
|
56
|
+
:uid => "AwesomeUser",
|
58
57
|
:info => {
|
59
|
-
:
|
60
|
-
:registered =>
|
61
|
-
:vhost =>
|
62
|
-
:lastquit =>
|
63
|
-
:options => [
|
64
|
-
|
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 =>
|
68
|
-
:
|
69
|
+
:token => "PtrCChoaiVXXKcofhgCP8Sf7vO9OxlyblPJdhQka",
|
70
|
+
:expires_at => 1437073311,
|
69
71
|
:expires => true
|
70
72
|
},
|
71
73
|
:extra => {
|
72
|
-
:
|
73
|
-
|
74
|
+
:raw_info => {
|
75
|
+
:name => "AwesomeUser",
|
74
76
|
:registered => {
|
75
|
-
:date =>
|
76
|
-
:timezone_type =>
|
77
|
-
:timezone =>
|
78
|
-
}
|
79
|
-
:vhost =>
|
80
|
-
:
|
81
|
-
:options => [
|
82
|
-
|
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
|
-
|
99
|
+
## Copyright and license
|
97
100
|
|
98
|
-
|
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).
|
data/spec/app.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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
|