Skip to content

Commit 29a3593

Browse files
committed
Pin the async gem to a ruby < 3 compatible version
Fixes #181. While we still support Ruby < 3 we need to workaround a limitation in the 'async' gem that relies on the latest ruby, since RubyGems doesn't resolve gems based on the required ruby version.
1 parent f372280 commit 29a3593

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • lib/solidus_dev_support/templates/extension

lib/solidus_dev_support/templates/extension/Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ else
2727
gem 'sqlite3'
2828
end
2929

30+
# While we still support Ruby < 3 we need to workaround a limitation in
31+
# the 'async' gem that relies on the latest ruby, since RubyGems doesn't
32+
# resolve gems based on the required ruby version.
33+
gem 'async', '< 3' if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3')
34+
3035
gemspec
3136

3237
# Use a local Gemfile to include development dependencies that might not be

0 commit comments

Comments
 (0)