buildkite_watcher 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 726c2e3d9be54242bda460aa9fd6266ba8b161224a998e0f8d30df61ae59da8f
4
- data.tar.gz: 1b6d1d2b98df6fccbc0adea4850f95bf5942040fb1d2aff15ce3996119c751a5
3
+ metadata.gz: 92f00810d0e3273b6d330c28a75f3ece4b22fdcdd0870e53193a1f92578fb3be
4
+ data.tar.gz: 47aeb03350b54192c6444e8ca480a3a7fbf1ce5c2110a73826c464442912a4d3
5
5
  SHA512:
6
- metadata.gz: a0491fdfb51a48d578713cef7d37ac3041cf49f3263b103f471e783b799f302239629e3a223d8df3969f9a8089837ed9974e2bc4a1ca8b54d4e3721143c18f43
7
- data.tar.gz: e22d61c087e0bb8c75f77d82ca4471037076e2118fbf53f5d7375db7accb3a71c5e6dc9220c650610e44081d23fd247024dd0eddeb48d71bd620de38eb83b159
6
+ metadata.gz: 36664edc82f91e7a5f3513c6b94c0d430779077fcda0925167b3f049990640e5dabebb39b3a9b268eacfb4d7e54e1e3e795491a420f85817fa27df8efd2681ca
7
+ data.tar.gz: 20e64a2459e523d00b75e7f96fbc9c54d58b5a1b3ab761edf9563db55d75c08de48616eb1e8e4ed041361872f6a27d3a92f4dcf5f71d50e40fc4c4a6af0cf198
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- buildkite_watcher (0.1.1)
4
+ buildkite_watcher (0.1.2)
5
5
  rest-client (~> 2.1.0)
6
6
 
7
7
  GEM
@@ -161,7 +161,7 @@ module BuildkiteWatcher
161
161
  return if new_result == previous_result || previous_result == BUILD_UNKNOWN_STATUS
162
162
 
163
163
  case new_result
164
- when build_passed?(new_result)
164
+ when BUILD_PASSED, BUILD_BLOCKED
165
165
  system('osascript -e \'display notification "CI PASSED" with title "CI Result Watch" sound name "Glass"\'')
166
166
  when BUILD_FAILED
167
167
  system('osascript -e \'display notification "CI FAILED" with title "CI Result Watch" sound name "Basso"\'')
@@ -211,7 +211,7 @@ module BuildkiteWatcher
211
211
 
212
212
  def print_state(state)
213
213
  case state
214
- when build_passed?(state)
214
+ when BUILD_PASSED, BUILD_BLOCKED
215
215
  puts Rainbow("CI Status: ").bright + Rainbow(state).green
216
216
  when BUILD_RUNNING
217
217
  puts Rainbow("CI Status: ").bright + Rainbow(state).yellow
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BuildkiteWatcher
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildkite_watcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arturo Pie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-04 00:00:00.000000000 Z
11
+ date: 2021-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client