omniauth-redbooth 1.0.1 → 1.0.2
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/.travis.yml +3 -4
- data/CHANGELOG.md +25 -1
- data/lib/omniauth-redbooth/version.rb +1 -1
- data/lib/omniauth/strategies/redbooth.rb +11 -0
- data/omniauth-redbooth.gemspec +2 -12
- metadata +5 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fa82c3f1852ffed5619376197894a8e4ee99921
|
4
|
+
data.tar.gz: ce97ac44d3aa08ee885aea9e68877954dede98b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 345ca164f3392580e9e9d75ab8641af82d132bcf4e150cbc98f8ae971a79c69b0afa254db3ffe753440b052a76eceff54125664c50fc92c922652ac34514303d
|
7
|
+
data.tar.gz: 7d7cc130f571d68f6949ef784082d7af67d9da16dd659ec91ff718668ac48ab862760cb1ec86c862387e337671c20a8173d1a1845f8de1e935af337f7b12dd8f
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,29 @@
|
|
10
10
|
### Fixed
|
11
11
|
### Security
|
12
12
|
|
13
|
+
## [1.0.2] - 2017-04-03
|
14
|
+
|
15
|
+
### Added
|
16
|
+
|
17
|
+
- Workaround on `#callback_url` for omniauth-oauth2 1.4.0
|
18
|
+
|
19
|
+
### Changed
|
20
|
+
|
21
|
+
- CI test will only run on ruby > 2.2.x
|
22
|
+
|
23
|
+
### Deprecated
|
24
|
+
|
25
|
+
- Ruby 1.9.3
|
26
|
+
- Ruby 2.1
|
27
|
+
|
28
|
+
### Removed
|
29
|
+
|
30
|
+
- Restriction on omniauth-oauth2 `< 1.4.0`
|
31
|
+
|
32
|
+
### Deprecated
|
33
|
+
### Fixed
|
34
|
+
### Security
|
35
|
+
|
13
36
|
## [1.0.1] - 2015-11-26
|
14
37
|
|
15
38
|
### Added
|
@@ -33,7 +56,8 @@
|
|
33
56
|
## Previous changes
|
34
57
|
Undocumented. Please review git commits history.
|
35
58
|
|
36
|
-
[Unreleased]: https://github.com/redbooth/omniauth-redbooth/compare/1.0.
|
59
|
+
[Unreleased]: https://github.com/redbooth/omniauth-redbooth/compare/1.0.2...HEAD
|
60
|
+
[1.0.2]: https://github.com/redbooth/omniauth-redbooth/compare/1.0.1...1.0.2
|
37
61
|
[1.0.1]: https://github.com/redbooth/omniauth-redbooth/compare/1.0.0...1.0.1
|
38
62
|
[1.0.0]: https://github.com/redbooth/omniauth-redbooth/compare/0.0.4...1.0.0
|
39
63
|
|
@@ -27,6 +27,17 @@ module OmniAuth
|
|
27
27
|
{ 'raw_info' => raw_info }
|
28
28
|
end
|
29
29
|
|
30
|
+
# This is needed in order to support omniauth-oauth2 1.4.0, as for this
|
31
|
+
# version they made the gem more supportive of the OAuth2 standard,
|
32
|
+
# unfortunately not all OAuth2 providers support it.
|
33
|
+
#
|
34
|
+
# Theres more information about it here:
|
35
|
+
#
|
36
|
+
# https://github.com/intridea/omniauth-oauth2/issues/81
|
37
|
+
def callback_url
|
38
|
+
full_host + script_name + callback_path
|
39
|
+
end
|
40
|
+
|
30
41
|
def raw_info
|
31
42
|
@raw_info ||=
|
32
43
|
access_token.get("#{options[:client_options][:site]}/me").parsed
|
data/omniauth-redbooth.gemspec
CHANGED
@@ -13,12 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.require_paths = ['lib']
|
14
14
|
gem.version = OmniAuth::Redbooth::VERSION
|
15
15
|
|
16
|
-
|
17
|
-
# prevents this gem from working.
|
18
|
-
#
|
19
|
-
# The issue is documented here:
|
20
|
-
# https://github.com/intridea/omniauth-oauth2/issues/81
|
21
|
-
gem.add_dependency 'omniauth-oauth2', '>= 1.0', '<= 1.3.1'
|
16
|
+
gem.add_dependency 'omniauth-oauth2', '~> 1.0'
|
22
17
|
|
23
18
|
gem.add_development_dependency 'rspec', '~> 3.0'
|
24
19
|
gem.add_development_dependency 'rspec-its', '~> 1.2'
|
@@ -32,10 +27,5 @@ Gem::Specification.new do |gem|
|
|
32
27
|
gem.add_development_dependency 'growl', '~> 1.0'
|
33
28
|
gem.add_development_dependency 'sinatra', '~> 1.4'
|
34
29
|
gem.add_development_dependency 'rake', '~> 10.4'
|
35
|
-
|
36
|
-
if Gem.ruby_version < Gem::Version.new('2.0.0')
|
37
|
-
gem.add_development_dependency 'debugger'
|
38
|
-
else
|
39
|
-
gem.add_development_dependency 'byebug'
|
40
|
-
end
|
30
|
+
gem.add_development_dependency 'byebug'
|
41
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-redbooth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andres Bravo
|
@@ -10,28 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: omniauth-oauth2
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '1.0'
|
22
|
-
- - "<="
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version: 1.3.1
|
25
22
|
type: :runtime
|
26
23
|
prerelease: false
|
27
24
|
version_requirements: !ruby/object:Gem::Requirement
|
28
25
|
requirements:
|
29
|
-
- - "
|
26
|
+
- - "~>"
|
30
27
|
- !ruby/object:Gem::Version
|
31
28
|
version: '1.0'
|
32
|
-
- - "<="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: 1.3.1
|
35
29
|
- !ruby/object:Gem::Dependency
|
36
30
|
name: rspec
|
37
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -256,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
250
|
version: '0'
|
257
251
|
requirements: []
|
258
252
|
rubyforge_project:
|
259
|
-
rubygems_version: 2.4.5.
|
253
|
+
rubygems_version: 2.4.5.2
|
260
254
|
signing_key:
|
261
255
|
specification_version: 4
|
262
256
|
summary: Official OmniAuth strategy for Redbooth.com.
|