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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e2df238246be462b6e5e5d9120e2e7629232a102
4
- data.tar.gz: ec5864fdd50f89329d0ab3dcb42c1de39d82ca6e
2
+ SHA256:
3
+ metadata.gz: d2fc45be7a35ffd63d0a14ee18fff9667819c26c7118e7ad1f31ad03631e9f1e
4
+ data.tar.gz: 1c3bc8637ee3682ee6848d0ca20d0bca5d594e62857b8783cd89bcbcca7b1dd5
5
5
  SHA512:
6
- metadata.gz: ab893eac20274328cd128db787f071e0f5b652aa88b8717843e7bca735a46e0d2e232ee027b600c2278a6772425656e410a4bffac701fce56abb25ea963b0935
7
- data.tar.gz: dabb6c60cd20311e8da49a7bf331dd21bf5f198ec83644069846f57466ab41596af637d1461a0084b0679b7d2f764e5ee8783fd489686e2d5c37dfb3d1d65976
6
+ metadata.gz: 1dd8566e0d5c3bad143989e21df70e83c1a32b126b3c7be469d5b5797498f9aae2f8a71d3ba55a24dbc281b90b7f2ba890b63187425e7337e36bce368e44ea00
7
+ data.tar.gz: 72a7994eee29aebabf84adf566455aeea9acb31aea96dcc86a05ca0312c89855fe3e16f1f8ccea6a944d4feeca49cb1c7705f5bfa2d03ed64e250ca75a2c726e
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
4
- before_install: gem install bundler -v 1.10.6
3
+ - 2.4.2
4
+ before_install: gem install bundler -v 1.16.1
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', '~> 10.0'
6
+ gem 'rake', '12.3.1'
7
7
 
8
8
  group :test do
9
- gem 'rspec'
10
- gem 'rack-test'
11
- gem 'webmock'
12
- gem 'simplecov', require: false
13
- gem 'coveralls', require: false
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
- [![Build Status](https://travis-ci.org/fakenine/omniauth-marvin.svg)](https://travis-ci.org/fakenine/omniauth-marvin) [![Code Climate](https://codeclimate.com/repos/5603ccdee30ba01582008c19/badges/acaf7e62ac0c254e87ef/gpa.svg)](https://codeclimate.com/repos/5603ccdee30ba01582008c19/feed) [![Coverage Status](https://coveralls.io/repos/fakenine/omniauth-marvin/badge.svg?branch=master&service=github)](https://coveralls.io/github/fakenine/omniauth-marvin?branch=master)
3
+ [![Build Status](https://travis-ci.org/fakenine/omniauth-marvin.svg)](https://travis-ci.org/fakenine/omniauth-marvin) [![Maintainability](https://api.codeclimate.com/v1/badges/3c2ac09cff4d46183947/maintainability)](https://codeclimate.com/github/fakenine/omniauth-marvin/maintainability) [![Coverage Status](https://coveralls.io/repos/fakenine/omniauth-marvin/badge.svg?branch=master&service=github)](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.1'
12
+ gem 'omniauth-marvin', '~> 1.0.2'
13
13
  ```
14
14
 
15
15
  Or, install it yourself like below:
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "omniauth/marvin"
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 "irb"
13
+ require 'irb'
14
14
  IRB.start
@@ -1 +1 @@
1
- require "omniauth/marvin"
1
+ require 'omniauth/marvin'
@@ -1,2 +1,2 @@
1
- require "omniauth/marvin/version"
2
- require "omniauth/strategies/marvin"
1
+ require 'omniauth/marvin/version'
2
+ require 'omniauth/strategies/marvin'
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Marvin
3
- VERSION = "1.0.2"
3
+ VERSION = '1.1.0'.freeze
4
4
  end
5
5
  end
@@ -1,27 +1,26 @@
1
- require "omniauth/strategies/oauth2"
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, "marvin"
6
+ option :name, 'marvin'
7
7
 
8
- option :client_options, {
9
- site: "https://api.intra.42.fr",
10
- authorize_path: "v2/oauth/authorize"
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["displayname"],
18
- email: raw_info["email"],
19
- nickname: raw_info["login"],
20
- location: raw_info["location"],
21
- image: raw_info["image_url"],
22
- phone: raw_info["mobile"],
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
- "Profile" => raw_info["url"]
23
+ 'Profile' => raw_info['url']
25
24
  }
26
25
  }
27
26
  end
@@ -1,34 +1,34 @@
1
- # coding: utf-8
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 = "omniauth-marvin"
7
+ spec.name = 'omniauth-marvin'
8
8
  spec.version = Omniauth::Marvin::VERSION
9
- spec.authors = ["Samy KACIMI"]
10
- spec.email = ["samy.kacimi@gmail.com"]
9
+ spec.authors = ['Samy KACIMI']
10
+ spec.email = ['samy.kacimi@gmail.com']
11
11
 
12
- spec.summary = %q{OmniAuth OAuth2 strategy for 42 School}
13
- spec.description = %q{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"
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'] = "https://rubygems.org"
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
21
  else
22
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
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 = "exe"
26
+ spec.bindir = 'exe'
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
28
+ spec.require_paths = ['lib']
29
29
 
30
- spec.add_dependency 'omniauth-oauth2', '1.3.1'
31
- spec.add_runtime_dependency 'multi_json', '~> 1.3'
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 "bundler", "~> 1.10"
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.2
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: 2015-11-27 00:00:00.000000000 Z
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.3.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.3.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: '1.3'
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: '1.3'
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: '1.10'
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: '1.10'
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.4.5.1
98
+ rubygems_version: 2.7.8
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: OmniAuth OAuth2 strategy for 42 School