liangzan_omniauth-trello 0.0.8 → 0.0.9

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', app_name: 'YourApp'
22
+ provider :trello, ENV['TRELLO_KEY'], ENV['TRELLO_SECRET'], scope: 'read,write', app_name: 'YourApp', expiration: '30days'
23
23
  end
24
24
  ```
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Trello
3
- VERSION = '0.0.8'
3
+ VERSION = '0.0.9'
4
4
  end
5
5
  end
@@ -4,6 +4,8 @@ require 'multi_json'
4
4
  module OmniAuth
5
5
  module Strategies
6
6
  class Trello < OmniAuth::Strategies::OAuth
7
+ EXPIRATION_PERIOD = '30days'
8
+
7
9
  option :name, 'trello'
8
10
 
9
11
  option :client_options, {
@@ -33,7 +35,8 @@ module OmniAuth
33
35
  def request_phase
34
36
  options[:authorize_params] = {
35
37
  :scope => options["scope"],
36
- :name => options["app_name"]
38
+ :name => options["app_name"],
39
+ :expiration => options["expiration"] || EXPIRATION_PERIOD
37
40
  }
38
41
  super
39
42
  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.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-19 00:00:00.000000000 Z
13
+ date: 2013-05-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json
@@ -139,15 +139,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  - - ! '>='
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
+ segments:
143
+ - 0
144
+ hash: 489866044255288407
142
145
  required_rubygems_version: !ruby/object:Gem::Requirement
143
146
  none: false
144
147
  requirements:
145
148
  - - ! '>='
146
149
  - !ruby/object:Gem::Version
147
150
  version: '0'
151
+ segments:
152
+ - 0
153
+ hash: 489866044255288407
148
154
  requirements: []
149
155
  rubyforge_project:
150
- rubygems_version: 1.8.24
156
+ rubygems_version: 1.8.25
151
157
  signing_key:
152
158
  specification_version: 3
153
159
  summary: Trello strategy for OmniAuth.