rake-osc7501 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3793bd5bf5af2934712bc5962ccbeb80cef8048675482a133d9283bad5401fb
4
- data.tar.gz: 7226e2c5cef989c4f1d8ec0939680fb509b2f8f2c9d20e84fbf7bcfd353725e7
3
+ metadata.gz: 868cd8a5aa617ffa44d3a9da5c6d02ff514d223ff294d3723afa0cc1c139c9f4
4
+ data.tar.gz: 8bc395f13a34ad648a31a3c364c172242a5624f01880cfd417b4efa82babc800
5
5
  SHA512:
6
- metadata.gz: 9772443fdd8848641e903512d6486c96340003ef53ab65d9e44d3b8d737c35fa2fd574287e97716b3e0bf96c8295949f20c8e044e93c729e0c70fdba43f93f7c
7
- data.tar.gz: 5d7a32e74808f681733f5a1ae28062836b8220567599cbff40ea47941c1ae57b4d8dbe9c13e73543857efb312bbd5614dd5911756641e4830fa9df345fbcd289
6
+ metadata.gz: 98b140b5886a2a428394477cdd9bb0f2f20ab4d2a7bd5af1bca441ec95ec4234e5f501fd6f7ff8d10abbd3bc7e8e08cd8c8d24ef0257f764e613d4bf5b5d0634
7
+ data.tar.gz: 796a7c336a8e980cdac4c0b315e6d2fc5d184591162ec8cf97ceda6a839ca1a1b9e9e5644a94e9f83d9104037893f43370b7aa24519bb1a4bf5372e7ff202ae9
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.1.1 - 2026-11-12
6
+
7
+ - Preserve release failure diagnostics on retries ([5e89c7b](https://github.com/cosgroveb/rake-osc7501/commit/5e89c7b0f84a9ed45342b4f5e5d8154f309f6b67))
8
+ - Declare the RubyGems owner during OIDC exchange ([841eb7e](https://github.com/cosgroveb/rake-osc7501/commit/841eb7e606759b81bdd61241aec11da221ae41c4))
9
+ - Verify existing release tags directly ([6635c10](https://github.com/cosgroveb/rake-osc7501/commit/6635c10844d95bf77f4fa60fa9b0a3e9a6869d62))
10
+ - Use the released RSpec companion ([907ec9e](https://github.com/cosgroveb/rake-osc7501/commit/907ec9eddbe66b438e5ecb465ffaa7141696df91))
11
+ - Simplify development setup and test pure Rake ([68bee02](https://github.com/cosgroveb/rake-osc7501/commit/68bee02f0871332ae2a0dc198c96ede852061b8d))
12
+ - Report Rake runs through the root record ([d1dcd42](https://github.com/cosgroveb/rake-osc7501/commit/d1dcd42bce0cd87100b6733742a77e52d1be3c7e))
13
+
5
14
  ## 0.1.0 - 2026-11-11
6
15
 
7
16
  - Report Rake tasks and managed RSpec progress ([0245b76](https://github.com/cosgroveb/rake-osc7501/commit/0245b76c4f88f18b416e20fccc62f84cfa8b3239))
data/CONTRIBUTING.md CHANGED
@@ -28,9 +28,10 @@ with `bundle exec rspec --seed <seed>` and narrow it with
28
28
  `bundle exec rspec --seed <seed> --bisect`. Generated subprocess fixtures keep a
29
29
  defined order because their interrupt and fail-fast cases depend on sequence.
30
30
 
31
- Keep runtime dependencies limited to `rake`. Cover task lifecycle behavior with real Rake subprocesses. Check paired RSpec
32
- reporting with `Gemfile.integration` and `RSPEC_OSC7501_PATH` pointing to a
33
- checkout that includes `rspec/osc7501/managed.rb`.
31
+ Keep runtime dependencies limited to `rake`. Cover task lifecycle behavior with real Rake subprocesses.
32
+ The normal development bundle includes `rspec-osc7501`, so `bundle exec rake spec`
33
+ also checks paired reporting. Set `RSPEC_OSC7501_PATH` before `bundle install` to
34
+ use a local companion checkout.
34
35
 
35
36
  Build the gem and documentation:
36
37
 
@@ -44,6 +45,8 @@ The package is `pkg/rake-osc7501-<version>.gem`. Open `tmp/rdoc/index.html` to c
44
45
  rendered documentation. Keep generated files out of commits.
45
46
  The smoke task builds and installs the gem in a temporary directory, then checks
46
47
  passing and failing tasks without loading the checkout's library.
48
+ The `pure-rake` CI job runs this check with only Rake and the built gem installed
49
+ in the isolated directory, and rejects any installed RSpec gems.
47
50
 
48
51
  ## Runtime compatibility
49
52
 
data/README.md CHANGED
@@ -15,18 +15,17 @@ task(:example) { sleep 5 }
15
15
  task default: :example
16
16
  ```
17
17
 
18
- Run `bundle exec rake`. A supporting terminal receives one named Rake record
19
- with task activity and the command's outcome. Ordinary command output continues.
18
+ Run `bundle exec rake`. A supporting terminal receives the overall Rake run as
19
+ its root record, with task activity and the command's outcome. Each new Rake
20
+ run replaces that root record. Ordinary command output continues.
20
21
  Rake-only projects need no RSpec dependencies.
21
22
 
22
23
  ## RSpec tasks
23
24
 
24
- RubyGems release `rspec-osc7501` 0.1.3 does not include the managed entrypoint.
25
- Until a gem release includes it, pin the reviewed companion commit in your Gemfile:
25
+ Add `rspec-osc7501` 0.1.4 or newer for managed child reporting:
26
26
 
27
27
  ```ruby
28
- gem 'rspec-osc7501', git: 'https://github.com/cosgroveb/rspec-osc7501.git',
29
- ref: '098bb55433dd05265910995b2c349e4db99869bb'
28
+ gem 'rspec-osc7501', '>= 0.1.4'
30
29
  ```
31
30
 
32
31
  Run `bundle install`, then load the standard RSpec task class before this integration:
@@ -41,7 +40,10 @@ task default: [:example, :spec]
41
40
  ```
42
41
 
43
42
  Existing and later-created standard tasks receive a unique child record for each
44
- invocation. Automatic selection preserves RSpec's default progress formatter and
43
+ invocation. Child records keep their own identities, so each new Rake run
44
+ replaces only the root record and previously finished children may remain until
45
+ the terminal retires them.
46
+ Automatic selection preserves RSpec's default progress formatter and
45
47
  configured formatters, including their output files. An explicit OSC formatter
46
48
  keeps its destination and receives no duplicate.
47
49
 
@@ -99,18 +101,22 @@ Runtime targets MRI Ruby >= 2.1 and Rake >= 12.3.3. The optional adapter targets
99
101
  RSpec >= 3.6. The oldest paired check uses Ruby 2.1.10, Rake 12.3.3 and RSpec 3.6.0.
100
102
  Linux checks also cover Ruby 2.7, 3.1, 3.3, 3.4 and 4.0 with compatible RSpec
101
103
  versions, including RSpec 4.0.0.beta1 on Ruby 4.0. RSpec 3.6 has no
102
- clean-environment option. Other Ruby engines and macOS are unverified.
104
+ clean-environment option. CI also checks macOS with Ruby 3.4.
105
+ Other Ruby engines are unverified.
103
106
 
104
107
  On modern Ruby:
105
108
 
106
109
  ```sh
107
110
  bundle install
108
111
  bundle exec rake
109
- RSPEC_OSC7501_PATH=../rspec-osc7501 BUNDLE_GEMFILE=Gemfile.integration bundle install
110
- BUNDLE_GEMFILE=Gemfile.integration bundle exec rake spec
111
- bundle exec ruby script/smoke.rb pkg/rake-osc7501-*.gem
112
+ bundle exec rake spec
112
113
  ```
113
114
 
115
+ The development bundle includes the RSpec companion, so the normal suite exercises
116
+ both reporters. The `pure-rake` CI job checks passing and failing tasks with only
117
+ Rake and the built gem installed in an isolated gem directory.
118
+ Set `RSPEC_OSC7501_PATH` to test a local companion checkout instead of the released gem.
119
+
114
120
  `rake types` checks method annotation coverage across authored Ruby files,
115
121
  generates inline RBS with pinned development tools, and validates signatures.
116
122
  Generated signatures stay in ignored `tmp/`. See [CONTRIBUTING.md](CONTRIBUTING.md)
@@ -24,7 +24,7 @@ module Rake
24
24
  def initialize(output, mode:)
25
25
  @mode = mode
26
26
  @id = "rake-#{Process.pid}-#{SecureRandom.hex(6)}"
27
- @writer = Writer.new(output, mode: mode, id: @id)
27
+ @writer = Writer.new(output, mode: mode)
28
28
  @finished = false
29
29
  @active = []
30
30
  @counter = 0
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Rake
5
5
  module OSC7501
6
- VERSION = '0.1.0' #: String
6
+ VERSION = '0.1.1' #: String
7
7
  end
8
8
  end
@@ -5,22 +5,14 @@ module Rake
5
5
  module OSC7501
6
6
  class Writer # :nodoc: all
7
7
  # @rbs @output: IO | StringIO
8
- # @rbs @id: String
9
8
  # @rbs @enabled: bool
10
- #: (String?) -> bool
11
- def self.valid_id?(id)
12
- id.is_a?(String) && id.ascii_only? && id.bytesize <= 128 &&
13
- !!(id =~ %r{\A[A-Za-z0-9_.+-]{1,32}(?:/[A-Za-z0-9_.+-]{1,32}){0,7}\z})
14
- end
15
9
 
16
- #: (IO | StringIO output, mode: String, id: String) -> void
17
- def initialize(output, mode:, id:)
10
+ #: (IO | StringIO output, mode: String) -> void
11
+ def initialize(output, mode:)
18
12
  raise ArgumentError, 'RAKE_OSC7501 must be auto, off, or force' unless %w[auto off force].include?(mode)
19
13
 
20
14
  @output = output
21
- @id = id
22
- @enabled = self.class.valid_id?(id) &&
23
- (mode == 'force' || (mode == 'auto' && automatic_output?))
15
+ @enabled = mode == 'force' || (mode == 'auto' && automatic_output?)
24
16
  rescue IOError, SystemCallError
25
17
  @enabled = false
26
18
  end
@@ -30,7 +22,6 @@ module Rake
30
22
  return unless @enabled
31
23
 
32
24
  fields = ['app=rake', 'title=UmFrZQ==', "state=#{state}", "msg=#{encode(msg, 2048)}"]
33
- fields << "id=#{@id}" if @id
34
25
  @output.write("\e]7501;#{fields.join(':')}\e\\")
35
26
  @output.flush if @output.respond_to?(:flush)
36
27
  rescue IOError, SystemCallError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-osc7501
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
  - Brian Cosgrove