omniauth-marvin 1.0.0 → 1.0.1

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: 8973cc487ddd0c9c10d27e88a1321db5a7796ef5
4
- data.tar.gz: d4ad963f6c13f543c53d58aa6fa2d6e2b60389bd
3
+ metadata.gz: e84e0c90cacd480409a7b99ed86a7467dab9bbe5
4
+ data.tar.gz: 768fd3a77f7faad3119d47d4818b5986382caf66
5
5
  SHA512:
6
- metadata.gz: 3fb8073c2e268d037117ce83bf8df3cad44a469f1df04ece5892dc45a65c53118a17037d6fe40190ab6e35a73a68c799a0eeaa0cc0d1b2db3c571883deec60c8
7
- data.tar.gz: cc5717573ba18833ae87c07b6d39c5e050c948da059169512a5590dc89fc4ed9a4f0e7bdc439668b0ece3a5b3e6c6f08eeed8f113c5b1618478eed8d13d4e0ba
6
+ metadata.gz: 153097b95326b1455c88b8c08df07f34d41b441b77b3014336081ed0048e148641559e6ee5216ade432d6ff01ae4754e0ad1d66fd5fb41a2ac775011613ce5a9
7
+ data.tar.gz: b7332c17a18ad237e0df9071ee3114a58234730358cea6221d3bed7ea81f788092cb1e6cba76a71c73373720de6b1c843fa29ef9b0e119fbfd889e269569d18f
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
data/README.md CHANGED
@@ -9,13 +9,21 @@ 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', github: "fakenine/omniauth-marvin"
12
+ gem 'omniauth-marvin', '~> 1.0.1'
13
+ ``
14
+
15
+ Or, install it yourself like below:
16
+
17
+ ```
18
+ gem install omniauth-marvin
13
19
  ```
14
20
 
15
21
  run `bundle install`
16
22
 
17
23
  ## Usage
18
24
 
25
+ **(Skip this if you want to use the gem with Devise to authenticate users)**
26
+
19
27
  Register your application on 42's intranet to receive an API Key.
20
28
 
21
29
  Here's an example for adding the middleware to a Rails app in `config/initializers/omniauth.rb`
@@ -28,9 +36,11 @@ end
28
36
 
29
37
  You can now access the OmniAuth 42 OAuth2 URL: `/auth/marvin`
30
38
 
39
+ Read the <a href="https://github.com/intridea/omniauth/wiki" target="_blank">Omniauth Wiki</a> or see this <a href="http://railscasts.com/episodes/241-simple-omniauth" target="_blank">RailsCast</a> for an example on how to use this Rack middleware without any other gem.
40
+
31
41
  ## Devise
32
42
 
33
- If you wish to use this gem with devise, do not use the code snippet above in the Usage section. Instead, follow these steps:
43
+ If you wish to use this gem with devise, do **NOT** use the code snippet above in the Usage section. Instead, follow these steps:
34
44
 
35
45
  Add the devise gem to your Gemfile.
36
46
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Marvin
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ module OmniAuth
6
6
  option :name, "marvin"
7
7
 
8
8
  option :client_options, {
9
- site: "https://api.intrav2.42.fr",
9
+ site: "https://api.intra.42.fr",
10
10
  authorize_path: "v2/oauth/authorize"
11
11
  }
12
12
 
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.0
4
+ version: 1.0.1
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-09-25 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -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.8
98
+ rubygems_version: 2.4.5.1
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: OmniAuth OAuth2 strategy for 42 School