circle_status 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/circle_status/script.rb +3 -2
- data/lib/circle_status/version.rb +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: 95ba1b30668ba6146d4c0210dfd0bfd3f3716406
|
4
|
+
data.tar.gz: 08d5994d314939b59e0ef80d52ca2362fbae7622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8534eb674ca7721b64a4c3c194d68b936bc328669a35b8f18a643cd88ed1384445d3c8de6ede3f788faa6bb8446814fe9ec85c1cffa22a118521a0eb183ad1f
|
7
|
+
data.tar.gz: fc564a3fd079bc40c1f6684972064c32c7d16a6b34a1795f561fb3ba76e10f8970a52a0e20886eedb568ac5384867afd3c3865e6ba7e0695901b49b3e3f545ff
|
data/lib/circle_status/script.rb
CHANGED
@@ -35,8 +35,9 @@ module CircleStatus
|
|
35
35
|
|
36
36
|
def latest_build
|
37
37
|
@latest_build ||= begin
|
38
|
-
|
39
|
-
|
38
|
+
completed_build_statii = %w(fixed failed success)
|
39
|
+
build = builds.find { |build| completed_build_statii.include?(build['status']) }
|
40
|
+
fail ProjectError, 'no completed builds for this branch yet' if build.nil?
|
40
41
|
build
|
41
42
|
end
|
42
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: circle_status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Moffatt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|