Skip to content

Commit 0d59657

Browse files
committed
Fix capitalization of GitHub and OAuth in messages
1 parent 9c04757 commit 0d59657

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ with gist. It doesn't store your username and password, it just uses them to get
8484
an OAuth2 token (with the "gist" permission).
8585

8686
gist --login
87-
Obtaining OAuth2 access_token from github.
87+
Obtaining OAuth2 access_token from GitHub.
8888
GitHub username: ConradIrwin
8989
GitHub password:
9090
2-factor auth code:
@@ -101,7 +101,7 @@ file.
101101
#### Password-less login
102102

103103
If you have a complicated authorization requirement you can manually create a
104-
token file by pasting a Github token with only the `gist` permission into a
104+
token file by pasting a GitHub token with only the `gist` permission into a
105105
file called `~/.gist`. You can create one from https://github.com/settings/tokens
106106

107107
This file should contain only the token (~40 hex characters), and to make it
@@ -119,7 +119,7 @@ you need to export the `GITHUB_URL` environment variable (usually done in your `
119119
export GITHUB_URL=http://github.internal.example.com/
120120

121121
Once you've done this and restarted your terminal (or run `source ~/.bashrc`), gist will
122-
automatically use github enterprise instead of the public github.com
122+
automatically use GitHub Enterprise instead of the public github.com
123123

124124
Your token for GitHub Enterprise will be stored in `.gist.<protocol>.<server.name>[.<port>]` (e.g.
125125
`~/.gist.http.github.internal.example.com` for the GITHUB_URL example above) instead of `~/.gist`.

bin/gist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ filenames can be overridden by repeating the "-f" flag. The most useful reason
2525
to do this is to change the syntax highlighting.
2626
2727
All gists must to be associated with a GitHub account, so you will need to login with
28-
`gist --login` to obtain an Oauth2 access token. This is stored and used by gist in the future.
28+
`gist --login` to obtain an OAuth2 access token. This is stored and used by gist in the future.
2929
3030
Private gists do not have guessable URLs and can be created with "-p", you can
3131
also set the description at the top of the gist by passing "-d".
@@ -142,7 +142,7 @@ end.parse!
142142
begin
143143
if Gist.auth_token.nil?
144144
puts 'Please log in with `gist --login`. ' \
145-
'(Github now requires credentials to gist https://bit.ly/2GBBxKw)'
145+
'(GitHub now requires credentials to gist https://bit.ly/2GBBxKw)'
146146
exit(1)
147147
end
148148

lib/gist.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def default_filename
110110
def multi_gist(files, options={})
111111
if options[:anonymous]
112112
raise 'Anonymous gists are no longer supported. Please log in with `gist --login`. ' \
113-
'(Github now requires credentials to gist https://bit.ly/2GBBxKw)'
113+
'(GitHub now requires credentials to gist https://bit.ly/2GBBxKw)'
114114
else
115115
access_token = (options[:access_token] || auth_token())
116116
end
@@ -346,7 +346,7 @@ def rawify(url)
346346
# @option credentials [String] :password
347347
# @see http://developer.github.com/v3/oauth/
348348
def login!(credentials={})
349-
puts "Obtaining OAuth2 access_token from github."
349+
puts "Obtaining OAuth2 access_token from GitHub."
350350
loop do
351351
print "GitHub username: "
352352
username = credentials[:username] || $stdin.gets.strip

spec/rawify_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
it 'should raise an error when trying to do operations without being logged in' do
1313
error_msg = 'Anonymous gists are no longer supported. Please log in with `gist --login`. ' \
14-
'(Github now requires credentials to gist https://bit.ly/2GBBxKw)'
14+
'(GitHub now requires credentials to gist https://bit.ly/2GBBxKw)'
1515

1616
expect do
1717
Gist.gist("Test gist", output: :raw_url, anonymous: true)

spec/shorten_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
it 'should raise an error when trying to get short urls without being logged in' do
1717
error_msg = 'Anonymous gists are no longer supported. Please log in with `gist --login`. ' \
18-
'(Github now requires credentials to gist https://bit.ly/2GBBxKw)'
18+
'(GitHub now requires credentials to gist https://bit.ly/2GBBxKw)'
1919

2020
expect do
2121
Gist.gist("Test gist", output: :short_url, anonymous: true)

0 commit comments

Comments
 (0)