omniauth-box-oauth2 0.1.0 → 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/Gemfile +1 -5
- data/LICENSE.txt +21 -0
- data/README.md +2 -20
- data/Rakefile +3 -3
- data/lib/omniauth/box_oauth2/version.rb +2 -2
- data/omniauth-box-oauth2.gemspec +8 -8
- data/spec/spec_helper.rb +0 -2
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MzQyOGIxYzA1NjlhMDg5NWZhZTAzNWU4ZDdmZjJiMjEwM2FhY2QxMg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OGQwZDA1OTdjYzNhYzBmNmRlYzY3NzEzYjc0N2JjYzY0ZDhkY2M5MA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDc1MDMyZGRjNzc3MDdmZWE0Yjk1NDIzNDVkODUyYjNmMDgxYTlhMTk0Mjc5
|
10
|
+
Zjk3MDExOTlmMDc1N2UxODNjMjQ2OTEyZjIwNzQ2MThhYTc1ZmUxOWE5N2Rh
|
11
|
+
MmJhODRkODZiMDIyN2EzOTZiMmJlYWIxMDkyOGUxZGU5MWI4MmM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NmMzZWZjYmZmYTM5MDk2MTcxYzYzNmMxZTc0NTlkZmI4NWI0MGY3OTZkMzdi
|
14
|
+
ZjhiMzNhOGRhYjhiZmE0OTVkNDA5ZDYyZWJlZjU2OTcxNjE5Yzg5NTM0N2Yz
|
15
|
+
YTBjYTE4NWRmNjc3NzQyMzA3MGFlNDczMTY1NzRjODQ3YzgyOTM=
|
data/Gemfile
CHANGED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 TODO: Write your name
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all 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,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/omniauth-box-oauth2.svg)](https://badge.fury.io/rb/omniauth-box-oauth2)
|
2
2
|
[![Build Status](https://travis-ci.org/pramodshinde/omniauth-box-oauth2.svg?branch=master)](https://travis-ci.org/pramodshinde/omniauth-box-oauth2)
|
3
|
-
[![Code Climate](https://codeclimate.com/github/pramodshinde/omniauth-box-oauth2/badges/gpa.svg)](https://codeclimate.com/github/pramodshinde/omniauth-box-oauth2)
|
4
|
-
[![Test Coverage](https://codeclimate.com/github/pramodshinde/omniauth-box-oauth2/badges/coverage.svg)](https://codeclimate.com/github/pramodshinde/omniauth-box-oauth2/coverage)
|
5
|
-
[![Dependency Status](https://gemnasium.com/pramodshinde/omniauth-box-oauth2.svg)](https://gemnasium.com/pramodshinde/omniauth-box-oauth2)
|
6
3
|
|
7
4
|
# OmniAuth::Strategies::BoxOauth2
|
8
5
|
|
@@ -40,14 +37,6 @@ Or If your are using devise add follwing in config/initializers/devise.rb
|
|
40
37
|
config.omniauth :box_oauth2, ENV["BOX_CLIENT_ID"], ENV["BOX_CLIENT_SECRET"]
|
41
38
|
```
|
42
39
|
|
43
|
-
Then add the following to 'config/routes.rb' so the callback routes are defined.
|
44
|
-
|
45
|
-
```ruby
|
46
|
-
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
|
47
|
-
```
|
48
|
-
|
49
|
-
Make sure your model is omniauthable. Generally this is "/app/models/user.rb"
|
50
|
-
|
51
40
|
## Sample Auth Hash
|
52
41
|
```ruby
|
53
42
|
{
|
@@ -93,16 +82,9 @@ Make sure your model is omniauthable. Generally this is "/app/models/user.rb"
|
|
93
82
|
|
94
83
|
## Contributing
|
95
84
|
|
96
|
-
Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
97
|
-
|
98
|
-
1. Fork it
|
99
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
100
|
-
3. Commit your changes along with test cases (`git commit -am 'Add some feature'`)
|
101
|
-
4. If possible squash your commits to one commit if they all belong to same feature.
|
102
|
-
5. Push to the branch (`git push origin my-new-feature`)
|
103
|
-
6. Create new Pull Request.
|
85
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/omniauth-box-oauth2. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
104
86
|
|
105
87
|
|
106
88
|
## License
|
107
89
|
|
108
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
90
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
CHANGED
data/omniauth-box-oauth2.gemspec
CHANGED
@@ -4,22 +4,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'omniauth/box_oauth2/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = "omniauth-box-oauth2"
|
8
8
|
spec.version = OmniAuth::BoxOauth2::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ["Pramod Shinde"]
|
10
|
+
spec.email = ["pramodshinde7@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{A Box OAuth2 strategy for OmniAuth 1.x}
|
13
13
|
spec.description = %q{A Box OAuth2 strategy for OmniAuth 1.x}
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
14
|
+
spec.homepage = "https://github.com/pramodshinde/omniauth-box-oauth2"
|
15
|
+
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0")
|
18
18
|
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
-
spec.require_paths = [
|
19
|
+
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.2'
|
22
22
|
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
spec.add_development_dependency "rspec", "~> 3.4"
|
25
25
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-box-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pramod Shinde
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.4'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.4'
|
55
55
|
description: A Box OAuth2 strategy for OmniAuth 1.x
|
@@ -59,13 +59,14 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-
|
62
|
+
- .codeclimate.yml
|
63
|
+
- .gitignore
|
64
|
+
- .rspec
|
65
|
+
- .travis.yml
|
66
66
|
- CODE_OF_CONDUCT.md
|
67
67
|
- Gemfile
|
68
68
|
- LICENSE
|
69
|
+
- LICENSE.txt
|
69
70
|
- README.md
|
70
71
|
- Rakefile
|
71
72
|
- lib/omniauth-box-oauth2.rb
|
@@ -85,19 +86,18 @@ require_paths:
|
|
85
86
|
- lib
|
86
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
87
88
|
requirements:
|
88
|
-
- -
|
89
|
+
- - ! '>='
|
89
90
|
- !ruby/object:Gem::Version
|
90
91
|
version: '0'
|
91
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
93
|
requirements:
|
93
|
-
- -
|
94
|
+
- - ! '>'
|
94
95
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
96
|
+
version: 1.3.1
|
96
97
|
requirements: []
|
97
98
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.2.2
|
99
100
|
signing_key:
|
100
101
|
specification_version: 4
|
101
102
|
summary: A Box OAuth2 strategy for OmniAuth 1.x
|
102
103
|
test_files: []
|
103
|
-
has_rdoc:
|