Skip to content

Commit 49df19e

Browse files
Remove if RUBY_VERSION from gemspec (#366)
* Remove `if RUBY_VERSION` from gemspec The gemspec is evaluated during `rake release`, so the `if RUBY_VERSION` condition does not depend on the user's Ruby version. See: https://docs.rubocop.org/rubocop/cops_gemspec.html * Updating config to allow tests to pass --------- Co-authored-by: Kyle Burgess <kylemburgess03@gmail.com>
1 parent f6f3b14 commit 49df19e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ functions:
5050
# Make an evergreen exapanstion file with dynamic values
5151
- command: shell.exec
5252
params:
53+
shell: bash
5354
working_dir: "src"
5455
script: |
5556
# Get the current unique version of this checkout

.evergreen/config/functions.yml.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ functions:
1515
# Make an evergreen exapanstion file with dynamic values
1616
- command: shell.exec
1717
params:
18+
shell: bash
1819
working_dir: "src"
1920
script: |
2021
# Get the current unique version of this checkout

bson.gemspec

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ Gem::Specification.new do |s|
3434
s.platform = 'java'
3535
end
3636

37-
if RUBY_VERSION > '3.2.99'
38-
s.add_dependency 'base64'
39-
s.add_dependency 'bigdecimal'
40-
s.add_dependency 'ostruct'
41-
end
37+
s.add_dependency 'base64'
38+
s.add_dependency 'bigdecimal'
39+
s.add_dependency 'ostruct'
4240

4341
s.test_files = Dir.glob('spec/**/*')
4442

0 commit comments

Comments
 (0)