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
Until rake v.11.1.2, we can run sh commands with hash style option, like the follow. But we have "TypeError" now.
task :dir do
sh "pwd", {chdir: "/home"}, { vernbose: true }
end
# before rake v.11.1.2 #=> /home [OK]
# after rake v.11.2.0 #=> TypeError: no implicit conversion of Hash into String [Error]
On the other hand, to write codes same as previous one like the follow, it doesn't work before v.11.1.2.
task :dir do
verbose(true) do
sh "pwd", {chdir: "/home"}
end
end
# before rake v.11.1.2 #=> ArgumentError: no such option: chdir [Error]
# after rake v.11.2.0 #=> /home [OK]
Is it spec or bug?
information : About the "TypeError: no implicit conversion of Hash into String"
task :dir do
sh "pwd", {chdir: "/home"}, { vernbose: true }
end
# before rake v.11.1.2 #=> /home
# after rake v.11.2.0 #=> TypeError: no implicit conversion of Hash into String
We have the "TypeError: no implicit conversion of Hash into String" error from v.11.2.0.
Until rake v.11.1.2, we can run sh commands with hash style option, like the follow. But we have "TypeError" now.
On the other hand, to write codes same as previous one like the follow, it doesn't work before v.11.1.2.
Is it spec or bug?
information : About the "TypeError: no implicit conversion of Hash into String"
We have the "TypeError: no implicit conversion of Hash into String" error from v.11.2.0.
The error occurs on the lib/rake/file_utils.rb:56 line.
It looks like to become occur from this code changes.
226b8a0#diff-f7fcb87d482d055b9df1e86fd76ae06fR56
The code use Kernel#system method. After the change, arguments for system method is increasing.
v.11.1.2
v.11.2.0
The text was updated successfully, but these errors were encountered: