carson 3.23.0 → 3.23.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: 3b09da719cacfca1da3e00f8c542719283e0f1e0d73554371449fa01d3d1b331
4
- data.tar.gz: 33d2ab2f5881e8f96934037f715893492b495354eda5c77c64b47ded8d1ee710
3
+ metadata.gz: 74175b83073b45d8ffdf3ee6aa1af6ebe02f4e8c7eacbc315d5cb7fb42d89578
4
+ data.tar.gz: 9f7eae79be834f3a7b78f9caa5b415946a1205a3d5e09029b88b5f9234a962bc
5
5
  SHA512:
6
- metadata.gz: d5c0dbbae4f9424054cbed42c0d6ed6430643a7f974252bf532f98c8aeeafb5e0962c9204e3e9d806752ac5ee063c98d005b4693d570c2b3d9699b2ac1808bef
7
- data.tar.gz: d49e6eef6854bf55eb3fe788e6f549585806a03d9266ef5aefdd42b960b3ed9e9f8750d48c3d893d94415e43a56df685701989724d1ff8af439375218f5af743
6
+ metadata.gz: dfc053ce86819ec64133a52a436a52c5719f2f2af60aebbe85ee0316f1173bc706b6c9e9158254319ff3d3c5cd457bd5583d86c818bbc3b4c866a5b90f53c427
7
+ data.tar.gz: 608c6af987bc8351db9febdb9c5d5ef7f181f4b19b0991c20e4033b98f788ba227c9da1bde01f3b40b92299110e91c0bee0f7a23acc95d25f26f44c0ccaddee9
data/RELEASE.md CHANGED
@@ -5,6 +5,14 @@ Release-note scope rule:
5
5
  - `RELEASE.md` records only version deltas, breaking changes, and migration actions.
6
6
  - Operational usage guides live in `MANUAL.md` and `API.md`.
7
7
 
8
+ ## 3.23.1
9
+
10
+ ### What changed
11
+
12
+ - **Govern no longer depends on cache-report writes** — `carson govern` no longer writes `govern_latest.md/json` under `~/.carson/cache` as part of its normal execution. Govern now advances deliveries directly from the ledger and prints results to stdout/JSON only.
13
+
14
+ ### No migration required
15
+
8
16
  ## 3.23.0
9
17
 
10
18
  ### What changed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.23.0
1
+ 3.23.1
@@ -2,14 +2,10 @@
2
2
  # Govern reassesses queued/gated deliveries, records revision cycles, and integrates one ready delivery at a time.
3
3
  require "json"
4
4
  require "time"
5
- require "fileutils"
6
5
 
7
6
  module Carson
8
7
  class Runtime
9
8
  module Govern
10
- GOVERN_REPORT_MD = "govern_latest.md".freeze
11
- GOVERN_REPORT_JSON = "govern_latest.json".freeze
12
-
13
9
  # Portfolio-level entry point. Scans governed repos (or the current repo) and advances deliveries.
14
10
  def govern!( dry_run: false, json_output: false, loop_seconds: nil )
15
11
  if loop_seconds
@@ -31,7 +27,6 @@ module Carson
31
27
  repositories: repositories.map { |path| govern_repo!( repo_path: path, dry_run: dry_run ) }
32
28
  }
33
29
 
34
- write_govern_report( report: report )
35
30
  if json_output
36
31
  output.puts JSON.pretty_generate( report )
37
32
  else
@@ -423,51 +418,6 @@ module Carson
423
418
  ""
424
419
  end
425
420
 
426
- def write_govern_report( report: )
427
- report_dir = report_dir_path
428
- FileUtils.mkdir_p( report_dir )
429
- File.write( File.join( report_dir, GOVERN_REPORT_JSON ), JSON.pretty_generate( report ) )
430
- File.write( File.join( report_dir, GOVERN_REPORT_MD ), render_govern_markdown( report: report ) )
431
- end
432
-
433
- def render_govern_markdown( report: )
434
- lines = []
435
- lines << "# Carson Govern Report"
436
- lines << ""
437
- lines << "**Cycle**: #{report[ :cycle_at ]}"
438
- lines << "**Dry run**: #{report[ :dry_run ]}"
439
- lines << ""
440
-
441
- Array( report[ :repositories ] ).each do |repo_report|
442
- lines << "## #{repo_report[ :path ]}"
443
- lines << ""
444
- if repo_report[ :error ]
445
- lines << "**Error**: #{repo_report[ :error ]}"
446
- lines << ""
447
- next
448
- end
449
-
450
- deliveries = Array( repo_report[ :deliveries ] )
451
- if deliveries.empty?
452
- lines << "No active deliveries."
453
- lines << ""
454
- next
455
- end
456
-
457
- deliveries.each do |delivery|
458
- lines << "### #{delivery[ :branch ]}"
459
- lines << ""
460
- lines << "- **Status**: #{delivery[ :status ]}"
461
- lines << "- **Action**: #{delivery[ :action ]}"
462
- lines << "- **Summary**: #{delivery[ :summary ]}" unless delivery[ :summary ].to_s.empty?
463
- lines << "- **Revision count**: #{delivery[ :revision_count ]}"
464
- lines << ""
465
- end
466
- end
467
-
468
- lines.join( "\n" )
469
- end
470
-
471
421
  def print_govern_summary( report: )
472
422
  Array( report[ :repositories ] ).each do |repo_report|
473
423
  if repo_report[ :error ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carson
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.23.0
4
+ version: 3.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hailei Wang