Skip to content

Commit c09c923

Browse files
Merge pull request #7264 from rubygems/segiddins/add-3.4-as-a-supported-ruby-version
Add 3.4 as a supported ruby version in Gemfile DSL
2 parents 2e09691 + 36dd9a3 commit c09c923

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

bundler/lib/bundler/dependency.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Dependency < Gem::Dependency
99
attr_reader :autorequire
1010
attr_reader :groups, :platforms, :gemfile, :path, :git, :github, :branch, :ref
1111

12-
ALL_RUBY_VERSIONS = ((18..27).to_a + (30..33).to_a).freeze
12+
ALL_RUBY_VERSIONS = (18..27).to_a.concat((30..34).to_a).freeze
1313
PLATFORM_MAP = {
1414
ruby: [Gem::Platform::RUBY, ALL_RUBY_VERSIONS],
1515
mri: [Gem::Platform::RUBY, ALL_RUBY_VERSIONS],

bundler/spec/bundler/dependency_spec.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
ruby_31: Gem::Platform::RUBY,
5656
ruby_32: Gem::Platform::RUBY,
5757
ruby_33: Gem::Platform::RUBY,
58+
ruby_34: Gem::Platform::RUBY,
5859
mri: Gem::Platform::RUBY,
5960
mri_18: Gem::Platform::RUBY,
6061
mri_19: Gem::Platform::RUBY,
@@ -70,6 +71,7 @@
7071
mri_31: Gem::Platform::RUBY,
7172
mri_32: Gem::Platform::RUBY,
7273
mri_33: Gem::Platform::RUBY,
74+
mri_34: Gem::Platform::RUBY,
7375
rbx: Gem::Platform::RUBY,
7476
truffleruby: Gem::Platform::RUBY,
7577
jruby: Gem::Platform::JAVA,
@@ -89,7 +91,8 @@
8991
windows_30: Gem::Platform::WINDOWS,
9092
windows_31: Gem::Platform::WINDOWS,
9193
windows_32: Gem::Platform::WINDOWS,
92-
windows_33: Gem::Platform::WINDOWS }
94+
windows_33: Gem::Platform::WINDOWS,
95+
windows_34: Gem::Platform::WINDOWS }
9396
end
9497

9598
let(:deprecated) do
@@ -108,6 +111,7 @@
108111
mswin_31: Gem::Platform::MSWIN,
109112
mswin_32: Gem::Platform::MSWIN,
110113
mswin_33: Gem::Platform::MSWIN,
114+
mswin_34: Gem::Platform::MSWIN,
111115
mswin64: Gem::Platform::MSWIN64,
112116
mswin64_19: Gem::Platform::MSWIN64,
113117
mswin64_20: Gem::Platform::MSWIN64,
@@ -122,6 +126,7 @@
122126
mswin64_31: Gem::Platform::MSWIN64,
123127
mswin64_32: Gem::Platform::MSWIN64,
124128
mswin64_33: Gem::Platform::MSWIN64,
129+
mswin64_34: Gem::Platform::MSWIN64,
125130
mingw: Gem::Platform::MINGW,
126131
mingw_18: Gem::Platform::MINGW,
127132
mingw_19: Gem::Platform::MINGW,
@@ -137,6 +142,7 @@
137142
mingw_31: Gem::Platform::MINGW,
138143
mingw_32: Gem::Platform::MINGW,
139144
mingw_33: Gem::Platform::MINGW,
145+
mingw_34: Gem::Platform::MINGW,
140146
x64_mingw: Gem::Platform::X64_MINGW,
141147
x64_mingw_20: Gem::Platform::X64_MINGW,
142148
x64_mingw_21: Gem::Platform::X64_MINGW,
@@ -149,7 +155,8 @@
149155
x64_mingw_30: Gem::Platform::X64_MINGW,
150156
x64_mingw_31: Gem::Platform::X64_MINGW,
151157
x64_mingw_32: Gem::Platform::X64_MINGW,
152-
x64_mingw_33: Gem::Platform::X64_MINGW }
158+
x64_mingw_33: Gem::Platform::X64_MINGW,
159+
x64_mingw_34: Gem::Platform::X64_MINGW }
153160
end
154161
# rubocop:enable Naming/VariableNumber
155162

0 commit comments

Comments
 (0)