herkko 0.0.10 → 0.0.11

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: 81586564c5621abc9ed86e17e1064e88bad114c5
4
- data.tar.gz: 14ccc4f0394f4f9ef457fe17a4480db56f74b105
3
+ metadata.gz: c7f3fb18dc2f13db2b6b5bf56b72e0016defaf57
4
+ data.tar.gz: 86b0f423a79d54263196d422d905f6ab545a8dbb
5
5
  SHA512:
6
- metadata.gz: e221dd5c64b107d04762907024010a60de2b4954d26a81fac9a1392d1e4ededefc07713eb06971d6649bf0c0d11208ccdfb8339e3d965d5a4ff6e07e63cabab6
7
- data.tar.gz: 4f0ad63ecb906f3162fa6373ad6fb0ec011c288616fd7fc07f38869f578503e2fccdba49b7d8634f44f1d091dd6d8b422ebe303aaec2a68d5e59bd1790b08544
6
+ metadata.gz: ca16f36e53e48e0a0f5aad9202665f6d6574350875fb6750e000a46bf788c168ee9c79248f37d2955f784ab13b77f906c7416b2e3532021843ff634f329881af
7
+ data.tar.gz: f6ddcdb8defbdcaa0b08af989506134ba5eb85b7c8c12ff046e9d00d4725e50cd899c3f239af932bbb4e25fe3b7ae423b3d40b3d82d6be7514f5aef175f99f80
data/lib/herkko/runner.rb CHANGED
@@ -94,6 +94,8 @@ END
94
94
  deploy!
95
95
  elsif ci_state == :yellow
96
96
  Herkko.info "CI is running. Wait a while."
97
+ elsif ci_state == :not_used
98
+ Herkko.info "CI not in use for this project. Deploying..."
97
99
  else
98
100
  Herkko.info "CI is in unknown state. Can't continue."
99
101
  end
data/lib/herkko/travis.rb CHANGED
@@ -9,13 +9,17 @@ module Herkko
9
9
  Herkko.info "There was an error with checking Travis: #{status[1]}"
10
10
  :red
11
11
  else
12
- case status[0].split(":")[0]
13
- when /passed/
14
- :green
15
- when /started/
16
- :yellow
12
+ if status[0].strip.length == 0
13
+ :not_used
17
14
  else
18
- :red
15
+ case status[0].split(":")[0]
16
+ when /passed/
17
+ :green
18
+ when /started/
19
+ :yellow
20
+ else
21
+ :red
22
+ end
19
23
  end
20
24
  end
21
25
  else
@@ -1,3 +1,3 @@
1
1
  module Herkko
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herkko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vesa Vänskä