travis 1.6.18.travis.608.5 → 1.6.18.travis.609.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +10 -0
  3. data/lib/travis/cli/pubkey.rb +9 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWQzYTI1MGRiOGE2OWQ2YTFkMDUzMTg4NTgyYWM4MjVhZjdjNGUyZA==
4
+ OGQ5NDZlZDI3OTVjMWYxZGM3N2VmNmY4YjI2YzJhNzBlZWE0ZTM5NA==
5
5
  data.tar.gz: !binary |-
6
- M2VmMTFkMzFkY2E0N2IxNWQ1NTVjZGM1YjJjZWM5NDMyNTNjZTFmZA==
6
+ NjU5YjA1NGZiYWUwMGI3YWRlMGJjMmZjZWY1MWY4NDYxNDI3NjE2Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjRiYWFiYzVlMjJmMjc1YjlmZTczZTYwMGY2ZmIwNDllNDNiZGRhNGE2MGMx
10
- NGE1MGUxYmExNDBkZjkxYTRiMzY4YTE3ZWM5OGZlNTg3ZGU4M2RmN2Y1MDdl
11
- NzJhNDU0NTZiN2UyMWIyNDZiYTJhNmQ4MDJhZjAzYTQ0OGI2MmI=
9
+ NzBiM2YwM2VmYjM5MWJiOGRmYzYxMTFlOTBlZDU4NzQ0MDhiMTU2ZGNkMzli
10
+ MzFkOGU1N2NkYjA4MWQwOTFkODhiM2YyMzYwZjFkZDFjZGQyYmE1YmUzMThi
11
+ YmQxNjUxM2UyZTJlNGZmZTg3OTdiNTc0NjJiZTg1NjExNDFhMzg=
12
12
  data.tar.gz: !binary |-
13
- OTcwODFmMmQ5MDFkN2YwNzFmNWRlODdlMjQzMjEzZjFjMDQ5ZjYxZjFjNjg5
14
- YjU1ZWYzNTJmNWY0ODE4YjEyZjgwNmNmYTI2NTBjMThlYTAwNTNlMThmNjY1
15
- YjQ0OWM4MDE0Yjg1Yzg0M2M2ODU2YjZiNGJmZGJjMWYyNDRiMDY=
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)
@@ -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', '--[no-]pem', 'encode in format used by pem')
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
- pem? ? key.to_s : key.to_ssh
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.18.travis.608.5
4
+ version: 1.6.18.travis.609.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase