rake_announcer 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/README.md +3 -1
- data/lib/rake_announcer/rake_task.rb +2 -2
- data/lib/rake_announcer/version.rb +1 -1
- data/lib/rake_announcer.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '03802cbe7b318f07c4a49591ce1b0df4ada43879c0a4258db770e4bda7adc18c'
|
4
|
+
data.tar.gz: 7ae57eed1599047206c10aa258c69db4377576ede910ac310db8a29154d01d10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbd5e9ab4cf0239308bd89de1f42f949c58afbf2a770e129a524d9430228b2bda718a39a12c215140bc2ef7d475714505411f9e61280de86e25d5e9ef053548b
|
7
|
+
data.tar.gz: 8feb6ceb3324c93587279401449b298c0bef7ba6b4bebf4aa86cffe4cfe4eefef7502025c7457655933f5aba3d8cbfb27f72080a085982047b39a8350f9d5700
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
-
## 1.0
|
1
|
+
## v1.1.0 (12 February 2025)
|
2
2
|
|
3
|
-
|
3
|
+
* feat: Add option to prepend announce tasks
|
4
|
+
* fix: Prevent own tasks from being announced
|
5
|
+
* fix: Rename RakeAnnouncer.enhance_rake_task to RakeAnnouncer.announce_rake_task
|
6
|
+
|
7
|
+
## v1.0.0 (06 February 2025)
|
8
|
+
|
9
|
+
* Initial release
|
data/README.md
CHANGED
@@ -47,7 +47,9 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
47
47
|
|
48
48
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
49
49
|
|
50
|
-
To release a new version, run `bundle exec rake semver:XXX` (replacing `XXX` with `major` or `minor` or `patch`), which will bump the version number and create a git tag for the version. Then run `
|
50
|
+
To release a new version, run `bundle exec rake semver:XXX` (replacing `XXX` with `major` or `minor` or `patch`), which will bump the version number and create a git tag for the version. Then run `git push origin main --tags` to push the new tag.
|
51
|
+
|
52
|
+
Then run `bundle exec rake release`, which will build and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
51
53
|
|
52
54
|
## Contributing
|
53
55
|
|
@@ -5,12 +5,12 @@ require "rake_announcer"
|
|
5
5
|
|
6
6
|
module RakeAnnouncer
|
7
7
|
class RakeTask < Rake::TaskLib
|
8
|
-
def initialize(name: :rake_announcer, tasks: [])
|
8
|
+
def initialize(name: :rake_announcer, tasks: [], prepend: false)
|
9
9
|
super()
|
10
10
|
|
11
11
|
namespace name do
|
12
12
|
tasks.each do |t|
|
13
|
-
RakeAnnouncer.
|
13
|
+
RakeAnnouncer.announce_rake_task(t, prepend:) unless t.to_s.start_with?(name.to_s)
|
14
14
|
end
|
15
15
|
|
16
16
|
desc "Print the 'ALL TESTS PASSED' message"
|
data/lib/rake_announcer.rb
CHANGED
@@ -7,11 +7,16 @@ require_relative "rake_announcer/version"
|
|
7
7
|
module RakeAnnouncer
|
8
8
|
class Error < StandardError; end
|
9
9
|
|
10
|
-
def self.
|
10
|
+
def self.announce_rake_task(task_name, prepend: false)
|
11
11
|
announce_task = Rake::Task.define_task("announce_#{task_name}") do
|
12
12
|
RakeAnnouncer.announce("Running #{task_name}")
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
|
+
if prepend
|
16
|
+
Rake::Task[task_name].prereqs.prepend(announce_task.name)
|
17
|
+
else
|
18
|
+
Rake::Task[task_name].enhance([announce_task.name])
|
19
|
+
end
|
15
20
|
end
|
16
21
|
|
17
22
|
def self.announce(message)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_announcer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Bull
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|