You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.
The line in the code which causes the error is this one:
user = Octopussy.user(username)
Apparently due to the fact that username is actually an array.
Paraphrasing the code:
USER = /[^a-z0-9_]@([a-z0-9_]+)/i
m = "fabric commands for executing arbitrary commands #reviewthis @garethr"
m.scan(USER) do |username|
puts username.class
end
>> Array
The text was updated successfully, but these errors were encountered:
Resolving the above issue by getting username.first and passing that to Octopussy.user raises another issue.
A bit more debugging. Using irb locally to run Octopussy.user('garethr') works correctly, however running it on Heroku (via heroku run irb) it fails with
NoMethodError: undefined method `to_params' for {}:Hash
The version of Octopussy in the Gemfile however is out of date. The following diff got me back up and running.
I'll try and sort a pull request if I get a chance, but currently this doesn't work on Heroku without these changes and the must ashe template ones in issue 7.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Pushing the latest source to heroku gives me an error when I try and hit it from a post commit hook.
The line in the code which causes the error is this one:
Apparently due to the fact that username is actually an array.
Paraphrasing the code:
The text was updated successfully, but these errors were encountered: