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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfd8a12d1c3599555c0034273fd282419812db78
4
- data.tar.gz: 3a9ef5635d2a553d096f7d8a7e574c600fa48dc1
3
+ metadata.gz: 917443b6389c19d0cf7c8c46daa24d42b3c33d72
4
+ data.tar.gz: ad24f5436eb6648043f2543c87870b7e4f0d81c3
5
5
  SHA512:
6
- metadata.gz: 94a0a370e992522f68abd44d810bb01bd9547e0d770b5b75cec17a53f13d289b4f0afc98f412428c0df174f946d30a438df167d298b1aa41f045a093be4c57f0
7
- data.tar.gz: f06d37cdff0a189ffd60c1402315a78d799e19a4bfc355370f6b7319f1b4fd85771667c3a3fa3fbb07b6893d4bf4c8e00e6b24e9745323751ff4f40345b68026
6
+ metadata.gz: 7523c9d56b15bddb0dc3be62509b29ae9c122317202a3c6d5aff3b2736b3c5554fc2dbc78e61cb687c5676d03027a0802535b10a36e1fa79418cc844e706bde6
7
+ data.tar.gz: af6d988135934d8affadc6e948313a057c9b1295196bf630d539a3599afadb23b2211a8e3b56135f06d2b2e38d97320c8ae146c32301481b22f207426bca6b68
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ *.gem
@@ -5,11 +5,11 @@ module OmniAuth
5
5
  class Headquarters < ::OmniAuth::Strategies::OAuth2
6
6
  include ::OmniAuth::Strategy
7
7
 
8
- URL = 'https://hq.groupbuddies.com'
9
- PATH = '/admin/hq/authorize'
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, authorize_path: PATH
12
+ option :client_options, site: URL, authorize_url: PATH
13
13
 
14
14
  uid do
15
15
  raw_info['id']
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Headquarters
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -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.1
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-07 00:00:00.000000000 Z
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: