omniauth-headquarters 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/omniauth/strategies/headquarters.rb +3 -3
- data/lib/omniauth-headquarters/version.rb +1 -1
- data/omniauth-headquarters.gemspec +3 -3
- metadata +21 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 917443b6389c19d0cf7c8c46daa24d42b3c33d72
|
4
|
+
data.tar.gz: ad24f5436eb6648043f2543c87870b7e4f0d81c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7523c9d56b15bddb0dc3be62509b29ae9c122317202a3c6d5aff3b2736b3c5554fc2dbc78e61cb687c5676d03027a0802535b10a36e1fa79418cc844e706bde6
|
7
|
+
data.tar.gz: af6d988135934d8affadc6e948313a057c9b1295196bf630d539a3599afadb23b2211a8e3b56135f06d2b2e38d97320c8ae146c32301481b22f207426bca6b68
|
data/.gitignore
CHANGED
@@ -5,11 +5,11 @@ module OmniAuth
|
|
5
5
|
class Headquarters < ::OmniAuth::Strategies::OAuth2
|
6
6
|
include ::OmniAuth::Strategy
|
7
7
|
|
8
|
-
URL = '
|
9
|
-
PATH = '/
|
8
|
+
URL = ENV['HQ_URL'] || 'http://localhost:3000'
|
9
|
+
PATH = '/oauth/authorize'
|
10
10
|
|
11
11
|
option :name, :headquarters
|
12
|
-
option :client_options, site: URL,
|
12
|
+
option :client_options, site: URL, authorize_url: PATH
|
13
13
|
|
14
14
|
uid do
|
15
15
|
raw_info['id']
|
@@ -18,11 +18,11 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'omniauth', '~> 1.2.2'
|
22
|
-
spec.add_dependency 'omniauth-oauth2', '~> 1.2.0'
|
21
|
+
spec.add_dependency 'omniauth', '~> 1.2', '>= 1.2.2'
|
22
|
+
spec.add_dependency 'omniauth-oauth2', '~> 1.2', '>= 1.2.0'
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.7"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
26
|
spec.add_development_dependency 'rubocop', '~> 0.27.1'
|
27
|
-
spec.add_development_dependency 'rspec', '~> 3.1.0'
|
27
|
+
spec.add_development_dependency 'rspec', '~> 3.1', '~> 3.1.0'
|
28
28
|
end
|
metadata
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-headquarters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Palhas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.2'
|
20
|
+
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 1.2.2
|
20
23
|
type: :runtime
|
@@ -22,6 +25,9 @@ dependencies:
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.2'
|
30
|
+
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 1.2.2
|
27
33
|
- !ruby/object:Gem::Dependency
|
@@ -29,6 +35,9 @@ dependencies:
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.2'
|
40
|
+
- - ">="
|
32
41
|
- !ruby/object:Gem::Version
|
33
42
|
version: 1.2.0
|
34
43
|
type: :runtime
|
@@ -36,6 +45,9 @@ dependencies:
|
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.2'
|
50
|
+
- - ">="
|
39
51
|
- !ruby/object:Gem::Version
|
40
52
|
version: 1.2.0
|
41
53
|
- !ruby/object:Gem::Dependency
|
@@ -84,6 +96,9 @@ dependencies:
|
|
84
96
|
name: rspec
|
85
97
|
requirement: !ruby/object:Gem::Requirement
|
86
98
|
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '3.1'
|
87
102
|
- - "~>"
|
88
103
|
- !ruby/object:Gem::Version
|
89
104
|
version: 3.1.0
|
@@ -91,6 +106,9 @@ dependencies:
|
|
91
106
|
prerelease: false
|
92
107
|
version_requirements: !ruby/object:Gem::Requirement
|
93
108
|
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '3.1'
|
94
112
|
- - "~>"
|
95
113
|
- !ruby/object:Gem::Version
|
96
114
|
version: 3.1.0
|
@@ -139,3 +157,4 @@ summary: OAuth2 strategy for the Headquarters API, by Group Buddies
|
|
139
157
|
test_files:
|
140
158
|
- spec/omniauth/strategies/headquarters_spec.rb
|
141
159
|
- spec/spec_helper.rb
|
160
|
+
has_rdoc:
|