omniauth-marvin 1.0.2 → 1.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 +5 -5
- data/.travis.yml +2 -2
- data/Gemfile +6 -6
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/bin/console +3 -3
- data/lib/omniauth-marvin.rb +1 -1
- data/lib/omniauth/marvin.rb +2 -2
- data/lib/omniauth/marvin/version.rb +1 -1
- data/lib/omniauth/strategies/marvin.rb +12 -13
- data/omniauth-marvin.gemspec +15 -15
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d2fc45be7a35ffd63d0a14ee18fff9667819c26c7118e7ad1f31ad03631e9f1e
|
4
|
+
data.tar.gz: 1c3bc8637ee3682ee6848d0ca20d0bca5d594e62857b8783cd89bcbcca7b1dd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dd8566e0d5c3bad143989e21df70e83c1a32b126b3c7be469d5b5797498f9aae2f8a71d3ba55a24dbc281b90b7f2ba890b63187425e7337e36bce368e44ea00
|
7
|
+
data.tar.gz: 72a7994eee29aebabf84adf566455aeea9acb31aea96dcc86a05ca0312c89855fe3e16f1f8ccea6a944d4feeca49cb1c7705f5bfa2d03ed64e250ca75a2c726e
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -3,12 +3,12 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in omniauth-marvin.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
gem 'rake', '
|
6
|
+
gem 'rake', '12.3.1'
|
7
7
|
|
8
8
|
group :test do
|
9
|
-
gem '
|
10
|
-
gem 'rack-test'
|
11
|
-
gem '
|
12
|
-
gem 'simplecov', require: false
|
13
|
-
gem '
|
9
|
+
gem 'coveralls', '0.8.22', require: false
|
10
|
+
gem 'rack-test', '1.1.0'
|
11
|
+
gem 'rspec', '3.8.0'
|
12
|
+
gem 'simplecov', '0.16.1', require: false
|
13
|
+
gem 'webmock', '3.4.2'
|
14
14
|
end
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Omniauth Marvin
|
2
2
|
|
3
|
-
[](https://travis-ci.org/fakenine/omniauth-marvin) [](https://travis-ci.org/fakenine/omniauth-marvin) [](https://codeclimate.com/github/fakenine/omniauth-marvin/maintainability) [](https://coveralls.io/github/fakenine/omniauth-marvin?branch=master)
|
4
4
|
|
5
5
|
OmniAuth OAuth2 strategy for 42 School.
|
6
6
|
|
@@ -9,7 +9,7 @@ OmniAuth OAuth2 strategy for 42 School.
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'omniauth-marvin', '~> 1.0.
|
12
|
+
gem 'omniauth-marvin', '~> 1.0.2'
|
13
13
|
```
|
14
14
|
|
15
15
|
Or, install it yourself like below:
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'omniauth/marvin'
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -10,5 +10,5 @@ require "omniauth/marvin"
|
|
10
10
|
# require "pry"
|
11
11
|
# Pry.start
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'irb'
|
14
14
|
IRB.start
|
data/lib/omniauth-marvin.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require
|
1
|
+
require 'omniauth/marvin'
|
data/lib/omniauth/marvin.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'omniauth/marvin/version'
|
2
|
+
require 'omniauth/strategies/marvin'
|
@@ -1,27 +1,26 @@
|
|
1
|
-
require
|
1
|
+
require 'omniauth/strategies/oauth2'
|
2
2
|
|
3
3
|
module OmniAuth
|
4
4
|
module Strategies
|
5
5
|
class Marvin < OmniAuth::Strategies::OAuth2
|
6
|
-
option :name,
|
6
|
+
option :name, 'marvin'
|
7
7
|
|
8
|
-
option :client_options,
|
9
|
-
|
10
|
-
|
11
|
-
}
|
8
|
+
option :client_options,
|
9
|
+
site: 'https://api.intra.42.fr',
|
10
|
+
authorize_path: 'v2/oauth/authorize'
|
12
11
|
|
13
12
|
uid { raw_info['id'] }
|
14
13
|
|
15
14
|
info do
|
16
15
|
{
|
17
|
-
name: raw_info[
|
18
|
-
email: raw_info[
|
19
|
-
nickname: raw_info[
|
20
|
-
location: raw_info[
|
21
|
-
image: raw_info[
|
22
|
-
phone: raw_info[
|
16
|
+
name: raw_info['displayname'],
|
17
|
+
email: raw_info['email'],
|
18
|
+
nickname: raw_info['login'],
|
19
|
+
location: raw_info['location'],
|
20
|
+
image: raw_info['image_url'],
|
21
|
+
phone: raw_info['mobile'],
|
23
22
|
urls: {
|
24
|
-
|
23
|
+
'Profile' => raw_info['url']
|
25
24
|
}
|
26
25
|
}
|
27
26
|
end
|
data/omniauth-marvin.gemspec
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
|
1
|
+
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require 'omniauth/marvin/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'omniauth-marvin'
|
8
8
|
spec.version = Omniauth::Marvin::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Samy KACIMI']
|
10
|
+
spec.email = ['samy.kacimi@gmail.com']
|
11
11
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
12
|
+
spec.summary = 'OmniAuth OAuth2 strategy for 42 School'
|
13
|
+
spec.description = 'This gem is an OmniAuth OAuth2 strategy for 42 School. 42 Students can use it to signup/login on their apps.'
|
14
|
+
spec.homepage = 'https://github.com/fakenine/omniauth-marvin'
|
15
|
+
spec.license = 'MIT'
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
18
|
# delete this section to allow pushing this gem to any host.
|
19
19
|
if spec.respond_to?(:metadata)
|
20
|
-
spec.metadata['allowed_push_host'] =
|
20
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
21
21
|
else
|
22
|
-
raise
|
22
|
+
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
23
23
|
end
|
24
24
|
|
25
25
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
-
spec.bindir =
|
26
|
+
spec.bindir = 'exe'
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
-
spec.require_paths = [
|
28
|
+
spec.require_paths = ['lib']
|
29
29
|
|
30
|
-
spec.add_dependency 'omniauth-oauth2', '1.
|
31
|
-
spec.add_runtime_dependency 'multi_json', '~> 1.
|
30
|
+
spec.add_dependency 'omniauth-oauth2', '1.5.0'
|
31
|
+
spec.add_runtime_dependency 'multi_json', '~> 1.13.1'
|
32
32
|
|
33
|
-
spec.add_development_dependency
|
33
|
+
spec.add_development_dependency 'bundler', '~> 1.17.1'
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-marvin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samy KACIMI
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.5.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: multi_json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.13.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.13.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.17.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.17.1
|
55
55
|
description: This gem is an OmniAuth OAuth2 strategy for 42 School. 42 Students can
|
56
56
|
use it to signup/login on their apps.
|
57
57
|
email:
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.7.8
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: OmniAuth OAuth2 strategy for 42 School
|