Skip to content

Commit 29afbfc

Browse files
committed
rake bundle:update should package gems for all platforms
1 parent a9e844e commit 29afbfc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## [Unreleased]
22
### Fixed
33
* Update rubocop version dependency
4+
* rake bundle:update should package gems for all platforms
45

56
## 7.3.2 / 2025-05-01
67
### Fixed

lib/tasks/audit_bundle.rake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,12 @@ namespace :bundle do
138138
end
139139

140140
# Retrieve binary gems for platforms listed in Gemfile.lock
141-
platforms = `bundle platform`.split("\n").grep(/^[*] x86_64-/).collect { |s| s[2..] }
142141
Dir.chdir('vendor/cache') do
142+
platforms = `bundle platform`.split("\n").grep(/^[*] x86_64-/).collect { |s| s[2..] }
143143
platforms.each do |platform|
144144
system("gem fetch #{gem} --version=#{new_gem_version2} --platform=#{platform}")
145145
end
146+
system('bundle package --all-platforms')
146147
end if Dir.exist?('vendor/cache')
147148

148149
if gem == 'webpacker'
@@ -206,7 +207,7 @@ namespace :bundle do
206207
207208
$ ( git rm #{files_to_git_rm.join(' ')}
208209
git add #{files_to_git_add.join(' ')}
209-
git commit -m '# Bump #{gem} to #{new_gem_version2}'
210+
git commit -m 'Bump #{gem} to #{new_gem_version2}'
210211
)
211212
MSG
212213
end

0 commit comments

Comments
 (0)