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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5856b0a4973bcc0931a8427560e13110f1bf9b5b
4
- data.tar.gz: 8787b5faa65f53aeca87a796329acdf56aa35ef7
3
+ metadata.gz: 95ba1b30668ba6146d4c0210dfd0bfd3f3716406
4
+ data.tar.gz: 08d5994d314939b59e0ef80d52ca2362fbae7622
5
5
  SHA512:
6
- metadata.gz: 93890105a9be66b7cd38b3ff43c97144b1900bd8bd6b07180fe4468e75ca721a48d3c7672259c6f79fa43d5c98ad48e7bbbe8f1cc38e4449f393d1a8f45a1b57
7
- data.tar.gz: 0d9cd00e6295b4c1a55c1d71c86788750eb17e051745c5b5425ab09c0b3ea954d6fec73c8abd111ce1f6f9681a8062771569dcb68ef560479c941eadf798def1
6
+ metadata.gz: c8534eb674ca7721b64a4c3c194d68b936bc328669a35b8f18a643cd88ed1384445d3c8de6ede3f788faa6bb8446814fe9ec85c1cffa22a118521a0eb183ad1f
7
+ data.tar.gz: fc564a3fd079bc40c1f6684972064c32c7d16a6b34a1795f561fb3ba76e10f8970a52a0e20886eedb568ac5384867afd3c3865e6ba7e0695901b49b3e3f545ff
@@ -35,8 +35,9 @@ module CircleStatus
35
35
 
36
36
  def latest_build
37
37
  @latest_build ||= begin
38
- build = builds.find { |build| %w(failed success).include?(build['status']) }
39
- fail ProjectError, 'no builds for this branch yet' if build.nil?
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
@@ -1,3 +1,3 @@
1
1
  module CircleStatus
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  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.0
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-01-11 00:00:00.000000000 Z
11
+ date: 2016-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler