travis 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -2
- data/bin/travis +4 -0
- data/lib/travis/cli/command.rb +2 -0
- data/lib/travis/cli/history.rb +1 -1
- data/lib/travis/cli/pubkey.rb +4 -1
- data/lib/travis/client/repository.rb +16 -0
- data/lib/travis/version.rb +1 -1
- data/travis.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf0bedc3ebeb0308526c8df70e1961f840b499a3
|
4
|
+
data.tar.gz: 42789765d91dc5975f884cc8f34468be355bf020
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e57f58c84db9bbe82efac4f7f35a4111730ac1fdb1c9ae9546c3d43f98353507bef69564382e126d71dfe10885428757af12a02be6dfbe6be66fc64308bb03e
|
7
|
+
data.tar.gz: 45aa4e29b71736c48bccb28e63d59609b75a0106749e8c53362108fd1e014a2b19041ac29d0179ca79fc1181bd5bfc837d97998e55e6f1663cce465059644df4
|
data/README.md
CHANGED
@@ -424,11 +424,17 @@ Outputs the public key for a repository.
|
|
424
424
|
$ travis pubkey
|
425
425
|
Public key for travis-ci/travis:
|
426
426
|
|
427
|
+
ssh-rsa ...
|
428
|
+
$ travis pubkey -r rails/rails > rails.key
|
429
|
+
|
430
|
+
The `--pem` flag will print out the key PEM encoded:
|
431
|
+
|
432
|
+
$ travis pubkey --pem
|
433
|
+
Public key for travis-ci/travis:
|
434
|
+
|
427
435
|
-----BEGIN PUBLIC KEY-----
|
428
436
|
...
|
429
437
|
-----END PUBLIC KEY-----
|
430
|
-
|
431
|
-
$ travis pubkey -r rails/rails > rails.key
|
432
438
|
|
433
439
|
#### `restart`
|
434
440
|
|
@@ -902,6 +908,12 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
|
|
902
908
|
|
903
909
|
## Version History
|
904
910
|
|
911
|
+
**1.2.8** (July 19, 2013)
|
912
|
+
|
913
|
+
* Make pubkey print out key in ssh encoding, add --pem flag for old format
|
914
|
+
* Fix more encoding issues
|
915
|
+
* Fix edge cases that broke history view
|
916
|
+
|
905
917
|
**1.2.7** (July 15, 2013)
|
906
918
|
|
907
919
|
* Add pubkey command
|
data/bin/travis
CHANGED
data/lib/travis/cli/command.rb
CHANGED
@@ -147,6 +147,8 @@ module Travis
|
|
147
147
|
style ||= :important
|
148
148
|
data = format % color(data, style) if format and interactive?
|
149
149
|
data = data.gsub(/<\[\[/, '<%=').gsub(/\]\]>/, '%>')
|
150
|
+
data.encode! 'utf-8' if data.respond_to? :encode!
|
151
|
+
data
|
150
152
|
end
|
151
153
|
|
152
154
|
def template(*args)
|
data/lib/travis/cli/history.rb
CHANGED
data/lib/travis/cli/pubkey.rb
CHANGED
@@ -4,6 +4,8 @@ require 'travis/cli'
|
|
4
4
|
module Travis
|
5
5
|
module CLI
|
6
6
|
class Pubkey < RepoCommand
|
7
|
+
on('-p', '--[no-]pem', 'encode in format used by pem')
|
8
|
+
|
7
9
|
def run
|
8
10
|
say key, "Public key for #{color(repository.slug, :info)}:\n\n%s", :bold
|
9
11
|
end
|
@@ -11,7 +13,8 @@ module Travis
|
|
11
13
|
private
|
12
14
|
|
13
15
|
def key
|
14
|
-
repository.public_key
|
16
|
+
key = repository.public_key
|
17
|
+
pem? ? key.to_s : key.to_ssh
|
15
18
|
end
|
16
19
|
end
|
17
20
|
end
|
@@ -17,6 +17,10 @@ module Travis
|
|
17
17
|
Base64.encode64(encrypted).gsub(/\s+/, "")
|
18
18
|
end
|
19
19
|
|
20
|
+
def to_ssh
|
21
|
+
['ssh-rsa ', "\0\0\0\assh-rsa#{sized_bytes(to_rsa.e)}#{sized_bytes(to_rsa.n)}"].pack('a*m').gsub("\n", '')
|
22
|
+
end
|
23
|
+
|
20
24
|
def to_rsa
|
21
25
|
@to_rsa ||= OpenSSL::PKey::RSA.new(to_s)
|
22
26
|
rescue OpenSSL::PKey::RSAError
|
@@ -27,6 +31,18 @@ module Travis
|
|
27
31
|
def ==(other)
|
28
32
|
other.to_s == self
|
29
33
|
end
|
34
|
+
|
35
|
+
private
|
36
|
+
|
37
|
+
def sized_bytes(value)
|
38
|
+
bytes = to_byte_array(value.to_i)
|
39
|
+
[bytes.size, *bytes].pack('NC*')
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_byte_array(num, *significant)
|
43
|
+
return significant if num.between?(-1, 0) and significant[0][7] == num[7]
|
44
|
+
to_byte_array(*num.divmod(256)) + significant
|
45
|
+
end
|
30
46
|
end
|
31
47
|
|
32
48
|
include States
|
data/lib/travis/version.rb
CHANGED
data/travis.gemspec
CHANGED
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.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -16,7 +16,7 @@ authors:
|
|
16
16
|
autorequire:
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
|
-
date: 2013-07-
|
19
|
+
date: 2013-07-19 00:00:00.000000000 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: faraday
|