omniauth-redbooth 1.0.1 → 1.0.2

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: 80e48c21567a5199a5a02c3362f230c8b2cc21dc
4
- data.tar.gz: 28acba46f05e4847c1a20789e235db6644a01c89
3
+ metadata.gz: 9fa82c3f1852ffed5619376197894a8e4ee99921
4
+ data.tar.gz: ce97ac44d3aa08ee885aea9e68877954dede98b5
5
5
  SHA512:
6
- metadata.gz: ba43719939e45b9028e68e0b280e4ca77f2233847b6bb01d0feba433f7ed2cc30f57f9bd04a2fdc8c767a0505c0b87a952b6e413b1adea3211d9cc962c8089b3
7
- data.tar.gz: d30fb620f97205bfbdc36af6deda0630afcd4a94d3b36edd05bb3a4a66a857abb4e9a7b9dde916bef32dba6b9380934f00c8a780521e0bc34a41cc3d37b89399
6
+ metadata.gz: 345ca164f3392580e9e9d75ab8641af82d132bcf4e150cbc98f8ae971a79c69b0afa254db3ffe753440b052a76eceff54125664c50fc92c922652ac34514303d
7
+ data.tar.gz: 7d7cc130f571d68f6949ef784082d7af67d9da16dd659ec91ff718668ac48ab862760cb1ec86c862387e337671c20a8173d1a1845f8de1e935af337f7b12dd8f
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ test/version_tmp
16
16
  tmp
17
17
  Gemfile.lock
18
18
  .byebug_history
19
+ .ruby-version
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.7
6
- - 2.2.3
3
+ - 2.2.7
4
+ - 2.3.4
5
+ - 2.4.1
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.1...HEAD
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
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Redbooth
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
@@ -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
@@ -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
- # Using 1.3.x branch since 1.4 added a non backward compatible change which
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.1
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: 2015-11-26 00:00:00.000000000 Z
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.1
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.