travis 1.7.6.travis.672.5 → 1.7.6.travis.673.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/travis/client/states.rb +8 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTdkNDJiMjM1MThjZmZiMWMxZjk5ZTBjYjA0ODZlZGUwZjRhZTFjOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmZkMDlmNWE3ZjAxMzM4NjYyM2MwNWZjYmM2NTA2NzQyY2E0ZGYyYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjlmYjU4MDY5MzZhY2FjYWYyZGI2MThiNDgyZDc1MTMwNmJjM2Y3M2E1M2Jj
|
10
|
+
YTg0NWE1YzA2MzM2YzQ1M2RkMDAwY2E1MTU5MmI1YTE2YjFkODQyNmYzZTQz
|
11
|
+
OTAyNzIwNWI5ZTdiNzAxYmY4ZWE2ZTBkMzM4Y2M2YmYwMjUyMTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmQ3ZmU1MTM1NDkyNWIwNDYyOTgxNzUwOThlNzU0M2YzNDU4Yjg5NjE2MmUz
|
14
|
+
OTlkNWMwMzgyY2E4OTg3OWE3Nzg2ZGI5Yzc2ODAzYzFmYTAzOTBhOTYxNjk1
|
15
|
+
NDhjODliNGZiOTM1NTdjZGUxNmI0NTExNTFjYjVhYTU5NTM0M2M=
|
data/lib/travis/client/states.rb
CHANGED
@@ -3,7 +3,7 @@ require 'travis/client'
|
|
3
3
|
module Travis
|
4
4
|
module Client
|
5
5
|
module States
|
6
|
-
STATES = %w[created queued started passed failed errored canceled ready]
|
6
|
+
STATES = %w[created queued received started passed failed errored canceled ready]
|
7
7
|
|
8
8
|
def ready?
|
9
9
|
state == 'ready'
|
@@ -11,10 +11,15 @@ module Travis
|
|
11
11
|
|
12
12
|
def pending?
|
13
13
|
check_state
|
14
|
-
%w[created started queued].include? state
|
14
|
+
%w[created started queued received ].include? state
|
15
15
|
end
|
16
16
|
|
17
17
|
def started?
|
18
|
+
check_state
|
19
|
+
state != 'created' and state != 'received' and state != 'queued'
|
20
|
+
end
|
21
|
+
|
22
|
+
def received?
|
18
23
|
check_state
|
19
24
|
state != 'created' and state != 'queued'
|
20
25
|
end
|
@@ -59,7 +64,7 @@ module Travis
|
|
59
64
|
|
60
65
|
def color
|
61
66
|
case state
|
62
|
-
when 'created', 'queued', 'started'
|
67
|
+
when 'created', 'queued', 'received', 'started' then 'yellow'
|
63
68
|
when 'passed', 'ready' then 'green'
|
64
69
|
when 'errored', 'canceled', 'failed' then 'red'
|
65
70
|
end
|