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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4820a1741b347219adce20aeebf63d1082b19894
4
- data.tar.gz: 6b28fd0ecbbbbc6fdde94fac117f28dc0683f64b
3
+ metadata.gz: eecc11bd98d7c5b5e9e9cc9960d9014436eeb03b
4
+ data.tar.gz: 5a2224d0c897df8081c4cf6d5d30bb2f2551e58e
5
5
  SHA512:
6
- metadata.gz: 70137debed74f2596644550f765f4dfb9ea006251eda640d28a26e6664909ffcaf50923e0a00d29ec785df7413ccec2d19cc2e407d986ff28c0d13dee49c65d3
7
- data.tar.gz: a804be8659549eb4762e58652ef34a4361124d14193558be46d1fd2af026254efafa8556091ba938d19207ffbe5bf1308742e27ee274325947dbe5e9293cd1fb
6
+ metadata.gz: fb444e01a35db84ac5b4b004a91fde73ac642804d44710cc2dc183551634e3a2f758487642407a10a6cd26fbc8b08fba929428aec2ba2b33dc0e164980197781
7
+ data.tar.gz: 38294052e2a81453c7d68b9974007f3897b37da1c582633d3ff591e8e0547781337861c793f8906ac3f8c830837b0ff38af064e00d1eea702aaffb50767b33ba
@@ -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*
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github-auth (3.0.0)
4
+ github-auth (3.0.1)
5
5
  httparty (~> 0.11.0)
6
6
  thor (~> 0.18)
7
7
 
@@ -53,7 +53,7 @@ module Github::Auth
53
53
  \x5> chrishunt, zachmargolis
54
54
  LONGDESC
55
55
  def list
56
- puts keys_file.github_users.join(' ')
56
+ rescue_keys_file_errors { puts keys_file.github_users.join(' ') }
57
57
  end
58
58
 
59
59
  desc 'version', 'Show gh-auth version'
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Github
2
2
  module Auth
3
- VERSION = "3.0.0"
3
+ VERSION = "3.0.1"
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Hunt