github-auth 3.0.0 → 3.0.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/lib/github/auth/cli.rb +1 -1
- data/lib/github/auth/keys_client.rb +2 -1
- data/lib/github/auth/version.rb +1 -1
- data/spec/unit/github/auth/keys_client_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eecc11bd98d7c5b5e9e9cc9960d9014436eeb03b
|
|
4
|
+
data.tar.gz: 5a2224d0c897df8081c4cf6d5d30bb2f2551e58e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb444e01a35db84ac5b4b004a91fde73ac642804d44710cc2dc183551634e3a2f758487642407a10a6cd26fbc8b08fba929428aec2ba2b33dc0e164980197781
|
|
7
|
+
data.tar.gz: 38294052e2a81453c7d68b9974007f3897b37da1c582633d3ff591e8e0547781337861c793f8906ac3f8c830837b0ff38af064e00d1eea702aaffb50767b33ba
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
##v3.0.1
|
|
4
|
+
*2013-10-25*
|
|
5
|
+
|
|
6
|
+
[\[8 commits\]](https://github.com/chrishunt/github-auth/compare/v3.0.0...v3.0.1)
|
|
7
|
+
|
|
8
|
+
- [URL escape GitHub usernames](https://github.com/chrishunt/github-auth/pull/20)
|
|
9
|
+
- [Show pretty file permission errors for `list` command](https://github.com/chrishunt/github-auth/pull/21)
|
|
10
|
+
|
|
3
11
|
##v3.0.0
|
|
4
12
|
*2013-10-24*
|
|
5
13
|
|
|
@@ -12,6 +20,8 @@ usage instructions.
|
|
|
12
20
|
|
|
13
21
|
- [Use `Thor` for parsing CLI options](https://github.com/chrishunt/github-auth/pull/18)
|
|
14
22
|
- [Add `--command` option for custom ssh commands](https://github.com/chrishunt/github-auth/pull/18)
|
|
23
|
+
- [Add `--host` option for specifying GitHub host](https://github.com/chrishunt/github-auth/pull/18)
|
|
24
|
+
- [Add `--path` option for specifying keys file path](https://github.com/chrishunt/github-auth/pull/18)
|
|
15
25
|
|
|
16
26
|
##v2.0.0
|
|
17
27
|
*2013-10-22*
|
data/Gemfile.lock
CHANGED
data/lib/github/auth/cli.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
require 'cgi'
|
|
1
2
|
require 'httparty'
|
|
2
3
|
|
|
3
4
|
module Github::Auth
|
|
@@ -21,7 +22,7 @@ module Github::Auth
|
|
|
21
22
|
options = DEFAULT_OPTIONS.merge options
|
|
22
23
|
raise UsernameRequiredError unless options.fetch :username
|
|
23
24
|
|
|
24
|
-
@username = options.fetch :username
|
|
25
|
+
@username = CGI.escape(options.fetch :username)
|
|
25
26
|
@hostname = options.fetch :hostname
|
|
26
27
|
end
|
|
27
28
|
|
data/lib/github/auth/version.rb
CHANGED
|
@@ -33,6 +33,11 @@ describe Github::Auth::KeysClient do
|
|
|
33
33
|
keys_client = described_class.new username: username
|
|
34
34
|
expect(keys_client.username).to eq username
|
|
35
35
|
end
|
|
36
|
+
|
|
37
|
+
it 'url escapes the username' do
|
|
38
|
+
keys_client = described_class.new username: 'spaces are !o.k.'
|
|
39
|
+
expect(keys_client.username).to eq 'spaces+are+%21o.k.'
|
|
40
|
+
end
|
|
36
41
|
end
|
|
37
42
|
|
|
38
43
|
describe '#keys' do
|