Skip to content

Commit f13708b

Browse files
alyssaistmilewski
authored andcommitted
Syntax highlighting in README.md
1 parent 443a6b3 commit f13708b

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

README.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,34 @@ on the [GitHub Applications Page](https://github.com/settings/applications).
66

77
## Basic Usage
88

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+
```
1214

1315
## Github Enterprise Usage
1416

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+
```
2327

2428
## Scopes
2529

2630
GitHub API v3 lets you set scopes to provide granular access to different types of data:
2731

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+
```
3137

3238
More info on [Scopes](http://developer.github.com/v3/oauth/#scopes).
3339

0 commit comments

Comments
 (0)