omniauth-github 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/README.md +20 -14
- data/lib/omniauth-github/version.rb +1 -1
- data/omniauth-github.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72538f29bb0f32daba3074d330d8e5524ec05d3a
|
4
|
+
data.tar.gz: 4b2077a891853d05e098024fb0e7cdaab2ce1436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a80670fc15ad32bb5ebd033cdf80ee1da215141180963b8df2560d9763a9f1c2bcad916312dd9f1e75bc5770ada73ca327e39fe48adbc0ffcd9b8b8431dd7171
|
7
|
+
data.tar.gz: 903d08d81f70fe1ef648a19b8b468e027a8c6b41de7635486a2680f806eadc62b5135cf45a6722ccd6e23eb28b04fac3a104fb28004bc688cf1811d5e3d3f8be
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -6,28 +6,34 @@ on the [GitHub Applications Page](https://github.com/settings/applications).
|
|
6
6
|
|
7
7
|
## Basic Usage
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
```ruby
|
10
|
+
use OmniAuth::Builder do
|
11
|
+
provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET']
|
12
|
+
end
|
13
|
+
```
|
12
14
|
|
13
15
|
## Github Enterprise Usage
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
```ruby
|
18
|
+
provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'],
|
19
|
+
{
|
20
|
+
:client_options => {
|
21
|
+
:site => 'https://github.YOURDOMAIN.com/api/v3',
|
22
|
+
:authorize_url => 'https://github.YOURDOMAIN.com/login/oauth/authorize',
|
23
|
+
:token_url => 'https://github.YOURDOMAIN.com/login/oauth/access_token',
|
24
|
+
}
|
25
|
+
}
|
26
|
+
```
|
23
27
|
|
24
28
|
## Scopes
|
25
29
|
|
26
30
|
GitHub API v3 lets you set scopes to provide granular access to different types of data:
|
27
31
|
|
28
|
-
|
29
|
-
|
30
|
-
|
32
|
+
```ruby
|
33
|
+
use OmniAuth::Builder do
|
34
|
+
provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'], scope: "user,repo,gist"
|
35
|
+
end
|
36
|
+
```
|
31
37
|
|
32
38
|
More info on [Scopes](http://developer.github.com/v3/oauth/#scopes).
|
33
39
|
|
data/omniauth-github.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.require_paths = ["lib"]
|
17
17
|
gem.version = OmniAuth::GitHub::VERSION
|
18
18
|
|
19
|
-
gem.add_dependency 'omniauth', '~> 1.
|
19
|
+
gem.add_dependency 'omniauth', '~> 1.4.0'
|
20
20
|
gem.add_dependency 'omniauth-oauth2', '>= 1.4.0', '< 2.0'
|
21
21
|
gem.add_development_dependency 'rspec', '~> 3.5'
|
22
22
|
gem.add_development_dependency 'rack-test'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.4.0
|
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
|
-
version: 1.
|
26
|
+
version: 1.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: omniauth-oauth2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|