DEV: Bump sprockets to include ERB kwargs fix (#19850)

This should resolve these warnings under Ruby 3.1

```
warning: Passing safe_level with the 2nd argument of ERB.new is deprecated
```

Unfortunately Sprockets 3.x has not seen a rubygems release since 2018, so we need to fetch these improvements via git.
This commit is contained in:
David Taylor 2023-01-13 10:52:05 +00:00 committed by GitHub
parent b4b8b03461
commit ce6335693a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 6 deletions

View File

@ -32,8 +32,8 @@ end
gem "json" gem "json"
# TODO: At the moment Discourse does not work with Sprockets 4, we would need to correct internals # TODO: At the moment Discourse does not work with Sprockets 4, we would need to correct internals
# This is a desired upgrade we should get to. # We intend to drop sprockets rather than upgrade to 4.x
gem "sprockets", "3.7.2" gem "sprockets", git: "https://github.com/rails/sprockets", branch: "3.x"
# this will eventually be added to rails, # this will eventually be added to rails,
# allows us to precompile all our templates in the unicorn master # allows us to precompile all our templates in the unicorn master

View File

@ -5,6 +5,15 @@ GIT
mail (2.8.0.edge) mail (2.8.0.edge)
mini_mime (>= 0.1.1) mini_mime (>= 0.1.1)
GIT
remote: https://github.com/rails/sprockets
revision: f4d3dae71ef29c44b75a49cfbf8032cce07b423a
branch: 3.x
specs:
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
@ -442,9 +451,6 @@ GEM
snaky_hash (2.0.1) snaky_hash (2.0.1)
hashie hashie
version_gem (~> 1.1, >= 1.1.1) version_gem (~> 1.1, >= 1.1.1)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.4.2) sprockets-rails (3.4.2)
actionpack (>= 5.2) actionpack (>= 5.2)
activesupport (>= 5.2) activesupport (>= 5.2)
@ -621,7 +627,7 @@ DEPENDENCIES
shoulda-matchers shoulda-matchers
sidekiq sidekiq
simplecov simplecov
sprockets (= 3.7.2) sprockets!
sprockets-rails sprockets-rails
sshkey sshkey
stackprof stackprof