omniauth-github 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7986a2ed4311a685808c9e48398b32f6139ebd8
4
- data.tar.gz: 36aba37491bc6a201d890367e072cd6b15313c99
3
+ metadata.gz: 72538f29bb0f32daba3074d330d8e5524ec05d3a
4
+ data.tar.gz: 4b2077a891853d05e098024fb0e7cdaab2ce1436
5
5
  SHA512:
6
- metadata.gz: 6c4e0eb536076fb833f47dfe595d341080d4423baf1c4ec4ef6ada5c3edaca4b988014b33a9e8b843d5702481d5c02dd29daca1b9a5ee0f14dbb9411a36a69b1
7
- data.tar.gz: f391830a231cfa72d82c413084d1978c1a7de3d3794552504e42ba26a442ee4b88fae13fd4b1ff85ca3d4c6a625e6703c0e8c24bd1c0a354b66ab7c61ca0f99e
6
+ metadata.gz: a80670fc15ad32bb5ebd033cdf80ee1da215141180963b8df2560d9763a9f1c2bcad916312dd9f1e75bc5770ada73ca327e39fe48adbc0ffcd9b8b8431dd7171
7
+ data.tar.gz: 903d08d81f70fe1ef648a19b8b468e027a8c6b41de7635486a2680f806eadc62b5135cf45a6722ccd6e23eb28b04fac3a104fb28004bc688cf1811d5e3d3f8be
data/Gemfile CHANGED
@@ -9,4 +9,5 @@ group :development, :test do
9
9
  gem 'guard-bundler'
10
10
  gem 'rb-fsevent'
11
11
  gem 'growl'
12
+ gem 'rake'
12
13
  end
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
- use OmniAuth::Builder do
10
- provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET']
11
- end
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
- provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'],
16
- {
17
- :client_options => {
18
- :site => 'https://github.YOURDOMAIN.com/api/v3',
19
- :authorize_url => 'https://github.YOURDOMAIN.com/login/oauth/authorize',
20
- :token_url => 'https://github.YOURDOMAIN.com/login/oauth/access_token',
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
- use OmniAuth::Builder do
29
- provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'], scope: "user,repo,gist"
30
- end
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
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module GitHub
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
@@ -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.3.2'
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.0
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-01 00:00:00.000000000 Z
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.3.2
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.3.2
26
+ version: 1.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: omniauth-oauth2
29
29
  requirement: !ruby/object:Gem::Requirement