buildkite_watcher 0.2.0 → 0.3.0

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: f17d15a101ef237e245b187564856fbc4666c913486437265bfb77e020038ab7
4
- data.tar.gz: 4773e6a2a588434fa59e7c938ae12ebb944561d7ed17c22dcd65a05f76587ebf
3
+ metadata.gz: d3a24a5b71c0b483775becf3121225b092adfea7af00912325854bb9ffce00ca
4
+ data.tar.gz: e190ca0fefacc2760abaae640650761c68af784a7618f3055e43783bc04db9cf
5
5
  SHA512:
6
- metadata.gz: 06653c75f6956f156d5f241925ce6bbb3010af57e4f73947842247ed465579b7c38436f5f43ead4fcb1bef42fef1306f3976a513e649ce35d1ff3ae55048ea78
7
- data.tar.gz: c8835752539f180c8d5bf912dabd7c984541d31a69e2d1f14b9e6a2359caead97ed9b32b03cfbac19beee259dca049ba346cf38b670d8d9309de4e1392a9dc15
6
+ metadata.gz: b0227a1e7d51c320d4d4b9439addb6304212bb9175e0158b5195c74dd22663c74a012e3fdea16cb5882fd2ccdc02d92119c2b84b166f5abb9b32c3e90aad6a80
7
+ data.tar.gz: a6af957c33a368227766afbe5bcdf4ef392facaf1e84ccc348580fc3d3fc877fd13cfa34331cb8243a7cfe0226c40419652dabf2746bbc54f0e99938d97053b3
@@ -1,4 +1,4 @@
1
- name: Ruby
1
+ name: CI
2
2
 
3
3
  on: [push,pull_request]
4
4
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.0] - 2021-07-20
4
+
5
+ - Changed notification title to use name of this gem
6
+
3
7
  ## [0.2.0] - 2021-07-17
4
8
 
5
9
  - Uses config files to store buildkite token and buildkite pipeline slug
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- buildkite_watcher (0.1.2)
4
+ buildkite_watcher (0.3.0)
5
5
  rest-client (~> 2.0)
6
6
  tty-config (~> 0.5)
7
7
  tty-link (~> 0.1)
data/README.md CHANGED
@@ -1,24 +1,37 @@
1
1
  # Buildkite Watcher
2
2
 
3
- Command line utility that continuously watches for the buildkite job running current git HEAD and notifies on build status changes.
3
+ [![Gem Version](https://badge.fury.io/rb/buildkite_watcher.svg)](https://badge.fury.io/rb/buildkite_watcher)
4
+ [![CI Status](https://github.com/nulogy/buildkite_watcher/workflows/CI/badge.svg?branch=main)](https://github.com/nulogy/buildkite_watcher/actions?query=workflow%3ACI)
5
+
6
+ It continuously watches the most recent buildkite job running the current git branch and notifies on build status changes.
7
+
8
+ ![Notification Screenshot](docs/notification_screenshot.png)
4
9
 
5
10
  ## Installation
6
11
 
7
- 1. Run this command:
12
+ Run this command:
8
13
 
9
- $ gem install buildkite_watcher
14
+ gem install buildkite_watcher
10
15
 
11
16
  ## Usage
12
17
 
13
- From a directory in your project, run.
18
+ From your project's root directory, run:
14
19
 
15
- `$ bw`
20
+ bw
16
21
 
17
22
  ## Development
18
23
 
19
24
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
20
25
 
21
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+ To install this gem onto your local machine, run `bundle exec rake install`.
27
+
28
+ ### To release a new version
29
+
30
+ 1. Update `CHANGELOG.md`
31
+ 1. Update the version number in `version.rb`
32
+ 1. Run `bundle install`
33
+ 1. Commit the changes
34
+ 1. Run `bundle exec rake release`
22
35
 
23
36
  ## Contributing
24
37
 
Binary file
@@ -166,9 +166,9 @@ module BuildkiteWatcher
166
166
  # You can find available sounds here: '/System/Library/Sounds'
167
167
  case new_result
168
168
  when BUILD_PASSED, BUILD_BLOCKED
169
- system('osascript -e \'display notification "CI PASSED" with title "CI Result Watch" sound name "Glass"\'')
169
+ system('osascript -e \'display notification "CI PASSED" with title "Buildkite Watcher" sound name "Glass"\'')
170
170
  when BUILD_FAILED
171
- system('osascript -e \'display notification "CI FAILED" with title "CI Result Watch" sound name "Funk"\'')
171
+ system('osascript -e \'display notification "CI FAILED" with title "Buildkite Watcher" sound name "Funk"\'')
172
172
  end
173
173
  end
174
174
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BuildkiteWatcher
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
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.2.0
4
+ version: 0.3.0
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-07-17 00:00:00.000000000 Z
11
+ date: 2021-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -92,6 +92,7 @@ files:
92
92
  - buildkite_watcher.gemspec
93
93
  - docs/buildkite_token.md
94
94
  - docs/new_api_access_token_page.png
95
+ - docs/notification_screenshot.png
95
96
  - docs/pipeline_slug.md
96
97
  - exe/bw
97
98
  - lib/buildkite_watcher.rb