Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logger as dependency to address warnings against Ruby 3.4.0dev #813

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

yahonda
Copy link
Member

@yahonda yahonda commented Oct 23, 2024

This commit addresses the warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0. against Ruby 3.4.0dev

  • Steps to reproduce
$ ruby -v
ruby 3.4.0dev (2024-10-21T16:48:53Z master 5131fb5dbe) +PRISM [x86_64-linux]
$ bundle exec rake 2>&1 |grep 'warning: logger'
  • Warnings addressed by this commit:
/path/to/sprockets/lib/sprockets/base.rb:4: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
/path/to/sprockets/lib/sprockets/cache/file_store.rb:3: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
/path/to/sprockets/lib/sprockets/cache.rb:2: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
/path/to/sprockets/lib/sprockets/manifest_utils.rb:3: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
/path/to/sprockets/lib/sprockets.rb:5: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.

This commit addresses the `warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.`
against Ruby 3.4.0dev

* Steps to reproduce

```ruby
$ ruby -v
ruby 3.4.0dev (2024-10-21T16:48:53Z master 5131fb5dbe) +PRISM [x86_64-linux]
$ bundle exec rake 2>&1 |grep 'warning: logger'
```

* Warnings addressed by this commit:

```
/path/to/sprockets/lib/sprockets/base.rb:4: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
/path/to/sprockets/lib/sprockets/cache/file_store.rb:3: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
/path/to/sprockets/lib/sprockets/cache.rb:2: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
/path/to/sprockets/lib/sprockets/manifest_utils.rb:3: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
/path/to/sprockets/lib/sprockets.rb:5: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
```

* Refer to the following URL for the background of this change:
https://bugs.ruby-lang.org/issues/20309
ruby/ruby@d7e558e
@yahonda yahonda merged commit 19b056c into rails:main Feb 25, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants