omniauth-yammer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,12 @@ module OmniAuth
33
33
  end
34
34
 
35
35
  def request_phase
36
- options[:authorize_params] = {:scope => options[:scope]} if options[:scope]
36
+ options[:response_type] ||= 'code'
37
+ super
38
+ end
39
+
40
+ def callback_phase
41
+ request.params['state'] = session['omniauth.state']
37
42
  super
38
43
  end
39
44
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Yammer
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -18,9 +18,9 @@ Gem::Specification.new do |gem|
18
18
  gem.version = OmniAuth::Yammer::VERSION
19
19
 
20
20
 
21
- gem.add_runtime_dependency 'omniauth-oauth2', '>= 1.0'
21
+ gem.add_runtime_dependency 'omniauth-oauth2', '>= 1.1'
22
22
 
23
- gem.add_development_dependency 'rspec', '~> 2.7'
23
+ gem.add_development_dependency 'rspec', '>= 2.7'
24
24
  gem.add_development_dependency 'rack-test'
25
25
  gem.add_development_dependency 'simplecov'
26
26
  gem.add_development_dependency 'webmock'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-yammer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,29 +13,29 @@ date: 2012-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2
16
- requirement: &70295466396420 !ruby/object:Gem::Requirement
16
+ requirement: &70277493356740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: '1.0'
21
+ version: '1.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70295466396420
24
+ version_requirements: *70277493356740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70295466395880 !ruby/object:Gem::Requirement
27
+ requirement: &70277493356180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
- - - ~>
30
+ - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2.7'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70295466395880
35
+ version_requirements: *70277493356180
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rack-test
38
- requirement: &70295466395340 !ruby/object:Gem::Requirement
38
+ requirement: &70277493355620 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70295466395340
46
+ version_requirements: *70277493355620
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: simplecov
49
- requirement: &70295466394680 !ruby/object:Gem::Requirement
49
+ requirement: &70277493354980 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70295466394680
57
+ version_requirements: *70277493354980
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: webmock
60
- requirement: &70295466394080 !ruby/object:Gem::Requirement
60
+ requirement: &70277493354360 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70295466394080
68
+ version_requirements: *70277493354360
69
69
  description: OmniAuth strategy for Yammer
70
70
  email:
71
71
  - leopard.not.a@gmail.com