omniauth-trello 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -10,7 +10,7 @@ Add this line to your application's Gemfile:
10
10
 
11
11
  gem 'omniauth-trello'
12
12
 
13
- And then execute:
13
+ And then bundle:
14
14
 
15
15
  $ bundle
16
16
 
@@ -29,22 +29,33 @@ Place this into `config/initializers/omniauth.rb`:
29
29
  ```ruby
30
30
  Rails.application.config.middleware.use OmniAuth::Builder do
31
31
  provider :trello, ENV['TRELLO_KEY'], ENV['TRELLO_SECRET'],
32
- app_name: "APP_NAME", scope: 'read,write', expiration: '1day'
32
+ app_name: "APP_NAME", scope: 'read,write,account', expiration: 'never'
33
33
  end
34
34
  ```
35
35
 
36
- `scope` if omitted, it defaults to "read". Or it can have the value "read,write"
36
+ ##Scope
37
37
 
38
- `expiration` if omitted, it defaults to 30 days (Trello default). Or it can have the values: "never", "1day", "30days"
38
+ The `scope` argument defaults to 'read'.
39
39
 
40
- More info in [the Trello docs](https://trello.com/docs/gettingstarted/index.html#getting-a-token-from-a-user)
40
+ Specify other scopes with a comma separated string (no spaces), example: 'read,write,account'
41
+
42
+ ###`read` scope
43
+ * Read all of your boards and organizations
44
+
45
+ ###`write` scope
46
+ * Create and update cards, lists and boards
47
+ * Make comments for you
41
48
 
42
- ## Known Issues
49
+ ###`account` scope
50
+ * Read your email address
43
51
 
44
- Any help with these would be appreciated:
52
+ Contrary to Trello's documentation, user email is only given when using the `read,write,account` scope.
45
53
 
46
- * [#1](https://github.com/joshrowley/omniauth-trello/issues/1): For some user authentications, the raw info returned from Trello has a null value for email
47
- * [#2](https://github.com/joshrowley/omniauth-trello/issues/2): The `app_name` authorization is correctly showing up at the Trello authorization page as the `name` parameter per the documentation, however Trello still displays "An Unknown Application"
54
+ `expiration` if omitted, it defaults to 30 days (Trello default). You can use arguments like: "never", "1day", "30days"
55
+
56
+ If you don't specify 'never', Trello will ask for user approval on every subsequent login and application will duplicate on the user's account settings page in Trello. I recommend using the `never` scope.
57
+
58
+ More info in [the Trello docs](https://trello.com/docs/gettingstarted/index.html#getting-a-token-from-a-user)
48
59
 
49
60
  ## Contributing
50
61
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Trello
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-trello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-13 00:00:00.000000000 Z
12
+ date: 2013-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 1.8.23
196
+ rubygems_version: 1.8.24
197
197
  signing_key:
198
198
  specification_version: 3
199
199
  summary: An OAuth 1.0 Strategy for Trello that abstracts the OAuth flow using the