liangzan_omniauth-trello 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -19,6 +19,6 @@ gem install liangzan_omniauth-trello
19
19
 
20
20
  ``` ruby
21
21
  use OmniAuth::Builder do
22
- provider :github, ENV[TRELLO_KEY'], ENV[TRELLO_SECRET'], scope: 'read,write'
22
+ provider :github, ENV['TRELLO_KEY'], ENV['TRELLO_SECRET'], scope: 'read,write', name: 'YourApp'
23
23
  end
24
24
  ```
@@ -31,12 +31,12 @@ module OmniAuth
31
31
  end
32
32
 
33
33
  def request_phase
34
- if request.params["scope"]
35
- super.merge({:scope => request.params["scope"]})
36
- else
37
- super
38
- end
39
- end
34
+ options[:authorize_params] = {
35
+ :scope => options["scope"],
36
+ :name => options["name"]
37
+ }
38
+ super
39
+ end
40
40
 
41
41
  extra do
42
42
  {
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Trello
3
- VERSION = "0.0.6"
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liangzan_omniauth-trello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: