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 OK
Not 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
-
@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 -
Looks like it wants a slightly higher ruby version than that is bundled with ubuntu 20. I guess we can install the ruby version it wants via rvm but this seems like an overkill to remove a warning.