travis 1.6.18.travis.607.5 → 1.6.18.travis.608.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 +1 -0
- data/lib/travis/client/repository.rb +5 -5
- data/spec/client/repository_spec.rb +4 -0
- data/spec/support/fake_api.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWQzYTI1MGRiOGE2OWQ2YTFkMDUzMTg4NTgyYWM4MjVhZjdjNGUyZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2VmMTFkMzFkY2E0N2IxNWQ1NTVjZGM1YjJjZWM5NDMyNTNjZTFmZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjRiYWFiYzVlMjJmMjc1YjlmZTczZTYwMGY2ZmIwNDllNDNiZGRhNGE2MGMx
|
10
|
+
NGE1MGUxYmExNDBkZjkxYTRiMzY4YTE3ZWM5OGZlNTg3ZGU4M2RmN2Y1MDdl
|
11
|
+
NzJhNDU0NTZiN2UyMWIyNDZiYTJhNmQ4MDJhZjAzYTQ0OGI2MmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTcwODFmMmQ5MDFkN2YwNzFmNWRlODdlMjQzMjEzZjFjMDQ5ZjYxZjFjNjg5
|
14
|
+
YjU1ZWYzNTJmNWY0ODE4YjEyZjgwNmNmYTI2NTBjMThlYTAwNTNlMThmNjY1
|
15
|
+
YjQ0OWM4MDE0Yjg1Yzg0M2M2ODU2YjZiNGJmZGJjMWYyNDRiMDY=
|
data/README.md
CHANGED
@@ -2051,6 +2051,7 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
|
|
2051
2051
|
* Announce repository slug when first detected, ask for confirmation in interactive mode.
|
2052
2052
|
* Have `travis repos` only print repository slugs in non-interactive mode.
|
2053
2053
|
* Add `travis/auto_login` and `travis/pro/auto_login` to the Ruby API for easy authentication.
|
2054
|
+
* Add `fingerprint` to `Repository#public_key`.
|
2054
2055
|
|
2055
2056
|
**1.6.17** (July 25, 2014)
|
2056
2057
|
|
@@ -5,10 +5,11 @@ module Travis
|
|
5
5
|
module Client
|
6
6
|
class Repository < Entity
|
7
7
|
class Key
|
8
|
-
attr_reader :to_s
|
8
|
+
attr_reader :to_s, :fingerprint
|
9
9
|
|
10
|
-
def initialize(data)
|
10
|
+
def initialize(data, fingerprint)
|
11
11
|
@to_s = data
|
12
|
+
@fingerprint = fingerprint
|
12
13
|
end
|
13
14
|
|
14
15
|
def encrypt(value)
|
@@ -52,7 +53,7 @@ module Travis
|
|
52
53
|
def public_key
|
53
54
|
attributes["public_key"] ||= begin
|
54
55
|
payload = session.get_raw("/repos/#{id}/key")
|
55
|
-
Key.new(payload.fetch('key'))
|
56
|
+
Key.new(payload.fetch('key'), payload.fetch('fingerprint'))
|
56
57
|
end
|
57
58
|
end
|
58
59
|
|
@@ -61,8 +62,7 @@ module Travis
|
|
61
62
|
end
|
62
63
|
|
63
64
|
def public_key=(key)
|
64
|
-
|
65
|
-
set_attribute(:public_key, key)
|
65
|
+
# ignored
|
66
66
|
end
|
67
67
|
|
68
68
|
alias key public_key
|
data/spec/support/fake_api.rb
CHANGED