Skip to content

Commit ee3d54e

Browse files
authored
rake bundle:update should package gems for all platforms (#147)
Drop support for Ruby 3.0
1 parent a9e844e commit ee3d54e

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Ruby
1616
uses: ruby/setup-ruby@v1
1717
with:
18-
ruby-version: 3.0
18+
ruby-version: 3.3
1919
- name: Install dependencies
2020
run: bundle install
2121
- name: Run RuboCop against BASE..HEAD changes

.github/workflows/test.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jobs:
77
strategy:
88
matrix:
99
ruby-version:
10-
- '3.0'
1110
- '3.1'
1211
- '3.2'
1312
- '3.3'
@@ -17,14 +16,8 @@ jobs:
1716
- gemfiles/Gemfile.rails72
1817
- gemfiles/Gemfile.rails80
1918
exclude:
20-
# rails 7.2 requires ruby >= 3.1
21-
# https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
22-
- ruby-version: '3.0'
23-
gemfile: 'gemfiles/Gemfile.rails72'
2419
# rails 8.0 requires ruby >= 3.2
2520
# https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
26-
- ruby-version: '3.0'
27-
gemfile: 'gemfiles/Gemfile.rails80'
2821
- ruby-version: '3.1'
2922
gemfile: 'gemfiles/Gemfile.rails80'
3023

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
## [Unreleased]
22
### Fixed
33
* Update rubocop version dependency
4+
* rake bundle:update should package gems for all platforms
5+
6+
## Changed
7+
* Drop support for Ruby 3.0
48

59
## 7.3.2 / 2025-05-01
610
### 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

ndr_dev_support.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
2020
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2121
spec.require_paths = ['lib']
2222

23-
spec.required_ruby_version = '>= 3.0'
23+
spec.required_ruby_version = '>= 3.1'
2424

2525
spec.add_dependency 'pry'
2626

0 commit comments

Comments
 (0)