kettle-dev 3.1.29 → 3.1.31

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.
@@ -787,6 +787,7 @@ module Kettle
787
787
  if skip_changelog?
788
788
  puts "Skipping kettle-changelog because --skip-changelog was provided."
789
789
  else
790
+ materialize_borrowed_changelog_bundles!
790
791
  run_changelog!
791
792
  end
792
793
  end
@@ -1135,6 +1136,44 @@ module Kettle
1135
1136
  @changelog_generated_coverage = true
1136
1137
  end
1137
1138
 
1139
+ # The changelog step borrows bundles the release does not otherwise
1140
+ # install: the tool bundle kettle-changelog runs from
1141
+ # (release_changelog_gemfile) and the coverage bundle its coverage step
1142
+ # execs against (changelog_coverage_gemfile). `bundle exec` never
1143
+ # auto-installs, so a cold gem home (e.g. right after a Ruby upgrade
1144
+ # emptied it) dies mid-publish with Bundler::GemNotFound. Install both
1145
+ # before the exec; `bundle install` is a fast no-op on a warm machine.
1146
+ def materialize_borrowed_changelog_bundles!
1147
+ borrowed_changelog_gemfiles.each do |gemfile|
1148
+ environment = {"BUNDLE_GEMFILE" => gemfile}
1149
+ if (lockfile = release_borrowed_bundle_lockfile(gemfile))
1150
+ environment["BUNDLE_LOCKFILE"] = lockfile
1151
+ end
1152
+ puts "Installing changelog bundle for #{gemfile}..."
1153
+ run_cmd!(release_child_command("bundle install", environment: environment))
1154
+ end
1155
+ end
1156
+
1157
+ def borrowed_changelog_gemfiles
1158
+ [release_changelog_gemfile, changelog_coverage_gemfile].compact.uniq.select { |gemfile| File.file?(gemfile) }
1159
+ end
1160
+
1161
+ # A disposable BUNDLE_LOCKFILE for a borrowed-bundle install: the
1162
+ # existing release-task copy of the bundle's canonical lockfile when one
1163
+ # exists, otherwise a fresh tmp path so `bundle install` resolves there
1164
+ # and never writes a new lockfile into the repo. Registered for cleanup
1165
+ # with the other release task lockfiles.
1166
+ def release_borrowed_bundle_lockfile(gemfile)
1167
+ task_lockfile = release_task_lockfile_path(gemfile: gemfile)
1168
+ return task_lockfile if task_lockfile
1169
+
1170
+ directory = File.join(@root, "tmp", "kettle-release", "lockfiles")
1171
+ FileUtils.mkdir_p(directory)
1172
+ path = File.join(directory, "#{File.basename(gemfile)}-#{$$}.lock")
1173
+ @release_task_lockfile_paths[gemfile] = path
1174
+ path
1175
+ end
1176
+
1138
1177
  # The changelog executable is owned by kettle-changelog, not kettle-dev.
1139
1178
  # During the bootstrap release of kettle-dev it is therefore intentionally
1140
1179
  # absent from kettle-dev's bundle. When a local kettle-dev workspace is
@@ -5,7 +5,7 @@ module Kettle
5
5
  # Version namespace for this gem.
6
6
  module Version
7
7
  # Current gem version.
8
- VERSION = "3.1.29"
8
+ VERSION = "3.1.31"
9
9
  end
10
10
  # Current gem version exposed at the traditional constant location.
11
11
  VERSION = Version::VERSION # Traditional Constant Location
data/lib/kettle/dev.rb CHANGED
@@ -54,6 +54,8 @@ module Kettle
54
54
  autoload :ReleaseGraphContract, "kettle/dev/release_graph_contract"
55
55
  autoload :ReleaseSecrets, "kettle/dev/release_secrets"
56
56
  autoload :ReleaseSecretsDoctor, "kettle/dev/release_secrets_doctor"
57
+ autoload :Rebase, "kettle/dev/rebase"
58
+ autoload :RebaseCLI, "kettle/dev/rebase_cli"
57
59
  autoload :ResetCLI, "kettle/dev/reset_cli"
58
60
  autoload :PreReleaseCLI, "kettle/dev/pre_release_cli"
59
61
  autoload :Version, "kettle/dev/version"
data.tar.gz.sig CHANGED
@@ -1,6 +1 @@
1
- Zpܪ7����:�}���c2:,:�.�[�0����ߑ!@�î�s��(��+�B����*��P�+��F��}T���>����m�Cvx��-� +5��x
2
- ��WɶRh�T׮���- �N9��\�ut ��:��G��
3
- fy&�V��x
4
- f:|�l ^ �`��"^ɒ�>]�I('ڕ�k
5
- ���
6
- �K3��W��'�7��Ja��A݌���"���iF}O49���\��}�c R,\p��(�y/���@��@e�Y<p�O��"��i�:}�6�js���ƃ�RʏCO �T
1
+ RK2D�������;-��L��H,�h�1����J��{-����c6���q�n!Z�