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
I used 0.3.0 version of your gem in my projects and everything seemed to be fine, but after upgrade I began to get tons of warnings:
/Users/amikhailov/.rvm/gems/ruby-2.1.5/gems/airbrussh-0.4.0/lib/airbrussh/formatter.rb:230: warning: Capistrano::Configuration::Server::Properties#respond_to?(:marshal_dump) is old fashion which takes only one parameter
/Users/amikhailov/.rvm/gems/ruby-2.1.5/gems/capistrano-3.1.0/lib/capistrano/configuration/server.rb:81: warning: respond_to? is defined here
/Users/amikhailov/.rvm/gems/ruby-2.1.5/gems/airbrussh-0.4.0/lib/airbrussh/formatter.rb:230: warning: Capistrano::Configuration::Server::Properties#respond_to?(:_dump) is old fashion which takes only one parameter
/Users/amikhailov/.rvm/gems/ruby-2.1.5/gems/capistrano-3.1.0/lib/capistrano/configuration/server.rb:81: warning: respond_to? is defined here
After digging into a code I've found out that these warnings are generated by this method in Airbrussh::Formatter:
def deep_copy(obj)
Marshal.load(Marshal.dump(obj))
end
After that I've looked into Capistrano code:
def respond_to?(method)
@properties.has_key?(method)
end
Obviously, these warnings come from old Capistrano which is not suited well to new ruby. I'm not certain if they fixed this in newer versions however. Nevertheless I cannot upgrade to newer Capistrano at this moment (capistrano comes as dependency of internal gem).
I know it is not your fault but maybe there is another way to implement deep_copy stuff having in mind some legacy code (like old capistrano, for instance)?
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue. We are in the process of fixing this. The need to deep copy is now removed in SSHKit master and hopefully @mattbrictson will get a chance to remove the deep_copy method from Airbrussh at some point soon.
@mattbrictson Would it be helpful for me me to do a PR for this?
Hello, hope you're well.
I used 0.3.0 version of your gem in my projects and everything seemed to be fine, but after upgrade I began to get tons of warnings:
After digging into a code I've found out that these warnings are generated by this method in
Airbrussh::Formatter
:After that I've looked into Capistrano code:
Obviously, these warnings come from old Capistrano which is not suited well to new ruby. I'm not certain if they fixed this in newer versions however. Nevertheless I cannot upgrade to newer Capistrano at this moment (capistrano comes as dependency of internal gem).
I know it is not your fault but maybe there is another way to implement
deep_copy
stuff having in mind some legacy code (like old capistrano, for instance)?The text was updated successfully, but these errors were encountered: