omniauth-campus 3.1 → 3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/strategies/campus.rb +7 -9
- data/lib/omniauth-campus/version.rb +1 -1
- data/omniauth-campus.gemspec +2 -2
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81fc46cf2f4f6c2cb988a320860d02644031a169
|
4
|
+
data.tar.gz: fa38788172120023d11a828c092f46ad1831858b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a5faf0aebafc2aedffd8355694b3cf9b15d06463009c1fa936a035f0e83c0e50b73a17a929981a8109472a9492234c9618796ab2b014da5bb72c60fd60307e
|
7
|
+
data.tar.gz: b53e154dd466dcdde7cfc047cee7cffb1eb2c4e02a7d8bac6c636ef33965a690bfc35bc81b2ac85cdcc124f886531cad13c474aa395efc42ddf4eed2404e62bc
|
@@ -1,5 +1,4 @@
|
|
1
|
-
require 'oauth'
|
2
|
-
require 'omniauth'
|
1
|
+
require 'omniauth-oauth'
|
3
2
|
require 'multi_json'
|
4
3
|
require 'openssl'
|
5
4
|
#require 'omniauth/core'
|
@@ -9,8 +8,7 @@ require 'uri'
|
|
9
8
|
module OmniAuth
|
10
9
|
module Strategies
|
11
10
|
# Your code goes here...
|
12
|
-
class Campus
|
13
|
-
include OmniAuth::Strategy
|
11
|
+
class Campus < OmniAuth::Strategies::OAuth
|
14
12
|
|
15
13
|
|
16
14
|
#site: 'http://community3dev.devcloud.acquia-sites.com/api'
|
@@ -52,11 +50,11 @@ module OmniAuth
|
|
52
50
|
super
|
53
51
|
end
|
54
52
|
|
55
|
-
def auth_hash
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
end
|
53
|
+
#def auth_hash
|
54
|
+
# OmniAuth::Utils.deep_merge(super(), {
|
55
|
+
# 'uid' => @uid
|
56
|
+
# })
|
57
|
+
#end
|
60
58
|
|
61
59
|
|
62
60
|
end
|
data/omniauth-campus.gemspec
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
22
|
spec.add_development_dependency 'rake', '~> 0'
|
23
|
-
spec.add_runtime_dependency 'omniauth', '~> 1.0'
|
24
|
-
spec.add_runtime_dependency 'oauth', '~> 0'
|
23
|
+
spec.add_runtime_dependency 'omniauth-oauth', '~> 1.0'
|
24
|
+
#spec.add_runtime_dependency 'oauth', '~> 0'
|
25
25
|
spec.add_dependency 'faraday', ['>= 0.8', '<0.10']
|
26
26
|
spec.add_dependency 'multi_json', '~> 1.3'
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-campus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '3.
|
4
|
+
version: '3.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- johnvehr
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: omniauth
|
42
|
+
name: omniauth-oauth
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: oauth
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: faraday
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|