travis 1.6.18.travis.608.5 → 1.6.18.travis.609.5
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 +8 -8
- data/README.md +10 -0
- data/lib/travis/cli/pubkey.rb +9 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
OGQ5NDZlZDI3OTVjMWYxZGM3N2VmNmY4YjI2YzJhNzBlZWE0ZTM5NA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NjU5YjA1NGZiYWUwMGI3YWRlMGJjMmZjZWY1MWY4NDYxNDI3NjE2Ng==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NzBiM2YwM2VmYjM5MWJiOGRmYzYxMTFlOTBlZDU4NzQ0MDhiMTU2ZGNkMzli
|
|
10
|
+
MzFkOGU1N2NkYjA4MWQwOTFkODhiM2YyMzYwZjFkZDFjZGQyYmE1YmUzMThi
|
|
11
|
+
YmQxNjUxM2UyZTJlNGZmZTg3OTdiNTc0NjJiZTg1NjExNDFhMzg=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YmFjN2Q2MDhlYjkyY2ZkMTJmNTk0YTkzMDAwZWVhNGY3YzRhNTI1ZmQzZTRj
|
|
14
|
+
YWU2ZDc3MmJlZmI3MmQzN2ViZDYyMjhhN2RmMjcxYjRlMzVhNTViMGFjYWYy
|
|
15
|
+
Y2RiNzE2Y2M1Y2RjNjEyM2NhZDQ0NTMyMzYyOWI2YjdhMzc0ODc=
|
data/README.md
CHANGED
|
@@ -1106,6 +1106,15 @@ Public key for travis-ci/travis.rb:
|
|
|
1106
1106
|
-----END PUBLIC KEY-----
|
|
1107
1107
|
```
|
|
1108
1108
|
|
|
1109
|
+
Whereas the `--fingerprint` flag will print out the key's fingerprint:
|
|
1110
|
+
|
|
1111
|
+
``` console
|
|
1112
|
+
$ travis pubkey --pem
|
|
1113
|
+
Public key for travis-ci/travis.rb:
|
|
1114
|
+
|
|
1115
|
+
9f:57:01:4b:af:42:67:1e:b4:3c:0f:b6:cd:cc:c0:04
|
|
1116
|
+
```
|
|
1117
|
+
|
|
1109
1118
|
#### `requests`
|
|
1110
1119
|
|
|
1111
1120
|
With the `requests` command, you can list the build requests received by Travis CI from GitHub. This is handy for figuring out why a repository might not be building.
|
|
@@ -2051,6 +2060,7 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
|
|
|
2051
2060
|
* Announce repository slug when first detected, ask for confirmation in interactive mode.
|
|
2052
2061
|
* Have `travis repos` only print repository slugs in non-interactive mode.
|
|
2053
2062
|
* Add `travis/auto_login` and `travis/pro/auto_login` to the Ruby API for easy authentication.
|
|
2063
|
+
* Add `--fingerprint` to `pubkey` command.
|
|
2054
2064
|
* Add `fingerprint` to `Repository#public_key`.
|
|
2055
2065
|
|
|
2056
2066
|
**1.6.17** (July 25, 2014)
|
data/lib/travis/cli/pubkey.rb
CHANGED
|
@@ -4,8 +4,10 @@ require 'travis/cli'
|
|
|
4
4
|
module Travis
|
|
5
5
|
module CLI
|
|
6
6
|
class Pubkey < RepoCommand
|
|
7
|
+
attr_accessor :key_format
|
|
7
8
|
description "prints out a repository's public key"
|
|
8
|
-
on('-p', '--
|
|
9
|
+
on('-p', '--pem', 'encode in format used by pem') { |c,_| c.key_format = :pem }
|
|
10
|
+
on('-f', '--fingerprint', 'display fingerprint') { |c,_| c.key_format = :fingerprint }
|
|
9
11
|
|
|
10
12
|
def run
|
|
11
13
|
say key, "Public key for #{color(repository.slug, :info)}:\n\n%s", :bold
|
|
@@ -15,7 +17,12 @@ module Travis
|
|
|
15
17
|
|
|
16
18
|
def key
|
|
17
19
|
key = repository.public_key
|
|
18
|
-
|
|
20
|
+
case self.key_format ||= :ssh
|
|
21
|
+
when :fingerprint then key.fingerprint
|
|
22
|
+
when :pem then key.to_s
|
|
23
|
+
when :ssh then key.to_ssh
|
|
24
|
+
else raise "unknown format #{key_format}"
|
|
25
|
+
end
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|