Warnings when editing user to be an admin
-
I just followed the docs to make a user an admin and there were some warnings:
/app/code# bin/tootctl accounts modify doughnuteconomics --role admin warning: parser/current is loading parser/ruby27, which recognizes2.7.6-compliant syntax, but you are running 2.7.0. Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri. /var/lib/gems/2.7.0/gems/activerecord-6.1.6/lib/active_record/connection_adapters/postgresql_adapter.rb:78: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /var/lib/gems/2.7.0/gems/pg-1.3.5/lib/pg.rb:68: warning: The called method `connect' is defined here OKNot sure if any of that actually matters, but figured I'd report it in case it does.
-
In Ruby 3.0, positional arguments and keyword arguments will be separated. Ruby 2.7 will warn for behaviors that will change in Ruby 3.0. If you see the following warnings, you need to update your code
Nothing you can fix. It's up to Mastodon devs to adjust their code

-
In Ruby 3.0, positional arguments and keyword arguments will be separated. Ruby 2.7 will warn for behaviors that will change in Ruby 3.0. If you see the following warnings, you need to update your code
Nothing you can fix. It's up to Mastodon devs to adjust their code

-
@robi afaik parser has to be compatible with the ruby version used but since this is just a standard depreciation warning, we can ignore it for now. If you really need to use a newer version, unit tests will fail before a new package is released.
PS:
If you want to get rid of the warning, use parser/ruby27 instead of parser/currentlol just saw that ruby27 is actually used....hmmmm....mhhhh....dunno what this is about then
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login