omniauth-do 1.0.0.alpha → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## 1.0.0 (2012-08-30)
2
+
3
+ * Initial release.
data/Gemfile CHANGED
@@ -1,6 +1,5 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in omniauth-do.gemspec
4
3
  gemspec
5
4
 
6
5
  group :development, :test do
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT/Expat License
2
+
3
+ Copyright (c) 2012 Do.com
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # OmniAuth Do
2
2
 
3
- This is an OmniAuth strategy for authenticating to [Do](https://do.com). To
4
- use it, you'll need to request an OAuth2 Application ID and Secret
5
- by e-mailing dev@do.com.
3
+ This is an OmniAuth strategy for authenticating to [Do][do]. To use it, you'll
4
+ need to request an OAuth2 Application ID and Secret by e-mailing
5
+ operations@do.com.
6
6
 
7
7
  ## Basic Usage
8
8
 
@@ -12,37 +12,44 @@ by e-mailing dev@do.com.
12
12
 
13
13
  ### User Scopes
14
14
 
15
- Do lets you set scopes to provide granular access to different portions
16
- of a user's data. Note that during the Do API Beta period, all scopes
17
- will result in full-access to user data.
15
+ Do lets you set scopes to provide granular access to different portions of a
16
+ user's data. Note that during the Do API Beta period, all scopes will result in
17
+ full-access to user data.
18
18
 
19
19
  use OmniAuth::Builder do
20
20
  provider :do, ENV['DO_KEY'], ENV['DO_SECRET'], scope: "user.profile"
21
21
  end
22
22
 
23
23
  For questions about the forthcoming implementations of scopes, e-mail
24
- dev@do.com
24
+ operations@do.com
25
25
 
26
26
  ### Provisioning
27
27
 
28
- In addition to accessing user data, [confidential
29
- clients](http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-2.1)
28
+ In addition to accessing user data, [confidential clients][confidential-clients]
30
29
  can utilize Do's User and Group Provisioning API's, allowed by the
31
- `user.provisioning` and `group.provisioning` scopes respectively.
30
+ `user.provisioning` and `group.provisioning` scopes respectively.
32
31
 
33
32
  ### Beta
34
33
 
35
34
  The use of the Do API is subject to the terms and conditions found at
36
- [do.com/legal](https://do.com/legal). Take care to note Section 8.4:
35
+ [do.com/legal][legal]. Take care to note Section 8.4:
37
36
 
38
37
  > Any Non-GA Services will be clearly designated as beta, pilot, limited release, developer preview, non-production or by a description of similar import. Non-GA Services are provided for evaluation purposes and not for production use, are not supported, may contain bugs or errors, and may be subject to additional terms. NON-GA SERVICES ARE NOT CONSIDERED "SERVICES" HEREUNDER AND ARE PROVIDED "AS IS" WITH NO EXPRESS OR IMPLIED WARRANTY. We may discontinue Non-GA Services at any time in Our sole discretion and may never make them generally available.
39
38
 
40
- ## License
39
+ ### Contributions
41
40
 
42
- Copyright (c) 2011 Austin Bales and Do.com, Inc.
41
+ Patches and bug reports are welcome. Just send a [pull request][pullrequests] or
42
+ file an [issue][issues]. [Project changelog][changelog].
43
43
 
44
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44
+ [License][license]
45
45
 
46
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
47
46
 
48
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
47
+
48
+
49
+ [do]: https://do.com
50
+ [legal]: https://do.com/legal
51
+ [confidential-clients] http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-2.1
52
+ [pullrequests]: https://github.com/Do/omniauth-do/pulls
53
+ [issues]: https://github.com/Do/omniauth-do/issues
54
+ [changelog]: https://github.com/Do/omniauth-do/blob/master/CHANGELOG.md
55
+ [license]: https://github.com/Do/omniauth-do/blob/master/LICENSE
@@ -3,29 +3,29 @@ require 'omniauth-oauth2'
3
3
  module OmniAuth
4
4
  module Strategies
5
5
  class Do < OmniAuth::Strategies::OAuth2
6
- SITE_URL = "https://do.com"
6
+ SITE_URL = 'https://www.do.com'
7
7
 
8
8
  option :name, "do"
9
9
  option :client_options, {
10
- :site => SITE_URL,
10
+ :site => SITE_URL,
11
11
  :authorize_url => SITE_URL + '/oauth2/authorize',
12
- :token_url => SITE_URL + '/oauth2/token'
12
+ :token_url => SITE_URL + '/oauth2/token'
13
13
  }
14
14
 
15
- uid {raw_info['id']}
15
+ uid { raw_info['id'].to_s }
16
16
 
17
17
  info do
18
18
  {
19
- name: raw_info['name'],
20
- first_name: raw_info['first_name'],
21
- last_name: raw_info['last_name'],
22
- email: raw_info['email'],
23
- image: raw_info['avatar']['48']
19
+ :name => raw_info['name'],
20
+ :first_name => raw_info['first_name'],
21
+ :last_name => raw_info['last_name'],
22
+ :email => raw_info['email'],
23
+ :image => raw_info['avatar']['48']
24
24
  }
25
25
  end
26
26
 
27
27
  extra do
28
- {:raw_info => raw_info}
28
+ { :raw_info => raw_info }
29
29
  end
30
30
 
31
31
  def raw_info
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Do
3
- VERSION = "1.0.0.alpha"
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
data/lib/omniauth-do.rb CHANGED
@@ -1,2 +1,2 @@
1
- require "omniauth-do/version"
1
+ require 'omniauth-do/version'
2
2
  require 'omniauth/strategies/do'
data/omniauth-do.gemspec CHANGED
@@ -1,19 +1,21 @@
1
1
  # -*- encoding: utf-8 -*-
2
+
2
3
  require File.expand_path('../lib/omniauth-do/version', __FILE__)
3
4
 
4
5
  Gem::Specification.new do |gem|
6
+ gem.name = 'omniauth-do'
7
+ gem.version = OmniAuth::Do::VERSION
5
8
  gem.authors = ["Austin Bales"]
6
9
  gem.email = ["austin@do.com"]
7
- gem.description = %q{OmniAuth strategy for Do (do.com).}
8
- gem.summary = %q{OmniAuth strategy for Do (do.com).}
9
- gem.homepage = "https://github.com/do/omniauth-do"
10
+ gem.license = 'MIT'
11
+ gem.homepage = 'https://github.com/do/omniauth-do'
12
+ gem.description = 'Official OmniAuth strategy for Do (do.com).'
13
+ gem.summary = 'Official OmniAuth strategy for Do (do.com).'
10
14
 
11
15
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
16
  gem.files = `git ls-files`.split("\n")
13
17
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
- gem.name = "omniauth-do"
15
- gem.require_paths = ["lib"]
16
- gem.version = OmniAuth::Do::VERSION
18
+ gem.require_paths = ['lib']
17
19
 
18
20
  gem.add_dependency 'omniauth', '~> 1.0'
19
21
  gem.add_dependency 'omniauth-oauth2', '~> 1.1'
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-do
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha
5
- prerelease: 6
4
+ version: 1.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Austin Bales
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-30 00:00:00.000000000 Z
12
+ date: 2012-08-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
@@ -107,7 +107,7 @@ dependencies:
107
107
  - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
- description: OmniAuth strategy for Do (do.com).
110
+ description: Official OmniAuth strategy for Do (do.com).
111
111
  email:
112
112
  - austin@do.com
113
113
  executables: []
@@ -116,8 +116,10 @@ extra_rdoc_files: []
116
116
  files:
117
117
  - .gitignore
118
118
  - .rspec
119
+ - CHANGELOG.md
119
120
  - Gemfile
120
121
  - Guardfile
122
+ - LICENSE
121
123
  - README.md
122
124
  - Rakefile
123
125
  - lib/omniauth-do.rb
@@ -127,7 +129,8 @@ files:
127
129
  - spec/omniauth/strategies/do.rb
128
130
  - spec/spec_helper.rb
129
131
  homepage: https://github.com/do/omniauth-do
130
- licenses: []
132
+ licenses:
133
+ - MIT
131
134
  post_install_message:
132
135
  rdoc_options: []
133
136
  require_paths:
@@ -141,15 +144,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
144
  required_rubygems_version: !ruby/object:Gem::Requirement
142
145
  none: false
143
146
  requirements:
144
- - - ! '>'
147
+ - - ! '>='
145
148
  - !ruby/object:Gem::Version
146
- version: 1.3.1
149
+ version: '0'
147
150
  requirements: []
148
151
  rubyforge_project:
149
152
  rubygems_version: 1.8.24
150
153
  signing_key:
151
154
  specification_version: 3
152
- summary: OmniAuth strategy for Do (do.com).
155
+ summary: Official OmniAuth strategy for Do (do.com).
153
156
  test_files:
154
157
  - spec/omniauth/strategies/do.rb
155
158
  - spec/spec_helper.rb