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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/travis/client/states.rb +8 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTRkNjJhZDZmZjc2MWE2OWJkZDZmNWJmMDJjNGI3OTlhYWY1ZWVjZA==
4
+ OTdkNDJiMjM1MThjZmZiMWMxZjk5ZTBjYjA0ODZlZGUwZjRhZTFjOA==
5
5
  data.tar.gz: !binary |-
6
- MGRmYTYxNTJiMTdlNDg3NGVjMzA5ODRiMTZkNDgyNWMyYzhhN2Y4YQ==
6
+ MmZkMDlmNWE3ZjAxMzM4NjYyM2MwNWZjYmM2NTA2NzQyY2E0ZGYyYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDNjOGJkYTMxYmVmMWQ5NTM4NmQ0ZTExZTk5NGUyMzRhOTFiODM0MDNjYTdl
10
- YzkxMjNhMWYwYmJiYTk4N2UwZGFjMDIwZTJjOWRjMTRkZGNkZWRiNmFjMWZh
11
- MThiOWZkOGE1ZDIzYzlmNTk1OTUzOTJlMjIxMzFlMDEwOGY3NzU=
9
+ ZjlmYjU4MDY5MzZhY2FjYWYyZGI2MThiNDgyZDc1MTMwNmJjM2Y3M2E1M2Jj
10
+ YTg0NWE1YzA2MzM2YzQ1M2RkMDAwY2E1MTU5MmI1YTE2YjFkODQyNmYzZTQz
11
+ OTAyNzIwNWI5ZTdiNzAxYmY4ZWE2ZTBkMzM4Y2M2YmYwMjUyMTc=
12
12
  data.tar.gz: !binary |-
13
- OTE5N2U5ZjI5ZDk1MjA5ZjJiZWM3MmI5ZTYxOWIwNzI2OTE1Y2I3Y2E5OGMy
14
- OTc1NmMwNzFlYmIzNDYyMDNkZWQ2ODMxZmM5ZDAxOTJmMmQyMGE1Y2Y3OWU4
15
- OTRkYTY1YWRiZDZiYmVmY2RkNzAwMjY4MWJjNmI0YjJmMDhiYWU=
13
+ YmQ3ZmU1MTM1NDkyNWIwNDYyOTgxNzUwOThlNzU0M2YzNDU4Yjg5NjE2MmUz
14
+ OTlkNWMwMzgyY2E4OTg3OWE3Nzg2ZGI5Yzc2ODAzYzFmYTAzOTBhOTYxNjk1
15
+ NDhjODliNGZiOTM1NTdjZGUxNmI0NTExNTFjYjVhYTU5NTM0M2M=
@@ -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' then 'yellow'
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
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.7.6.travis.672.5
4
+ version: 1.7.6.travis.673.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase