-
Notifications
You must be signed in to change notification settings - Fork 5
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
Ruby 3.0 issue - wrong number of arguments (given 2, expected 1) #4
Comments
Hi @ptfly Can you share with me how you are calling the |
Nothing special, it was working before, may be some other dependency. Here is the implementation on my side:
|
Hi @ptfly Just tested with one message will all the above params, It is working for me... post_to_slack(
channel: slackChannel,
api_token: slackToken,
pretext: "This is a testing slack message", # testing slack message
default_payloads: [:git_branch, :number_of_commits, :last_git_commit],
payload: {
"iOS:" => "iosStoreLink",
"Android:" => "androidStoreLink",
"Build Details:" => "appPackage[:version]" +" / "+ "appPackage[:build]",
}
) |
The exact same error. I even tried with just this:
No difference at all :( If I comment out this line: Also, I have to remove the Ruby version: |
Ok, here is the fix, replacing this:
Found the fix here: slack-notifier/slack-notifier#124 (comment) |
Cool, but that is |
Yes, its 3.0 but have no idea why its working. Probably fastlane is using another ruby in a different context which I might have installed with something else. Have to check this thing out :) |
Hi @ptfly Push the fix and release the new version 1.1.0... You may need to run |
Cant right now, not in front of a computer. Will test tmr and report back. Thanks for your cooperation! |
Works, thanks for the update! |
I'm having a crash when trying to use the plugin:
Awesome plugin btw, thanks for sharing!!!
The text was updated successfully, but these errors were encountered: