Conversation
net-scp.gemspec
Outdated
| spec.add_runtime_dependency(%q<net-ssh>, [">= 2.6.5", "< 8.0.0"]) | ||
| spec.add_development_dependency(%q<test-unit>, [">= 0"]) | ||
| spec.add_development_dependency(%q<mocha>, [">= 0"]) | ||
| spec.add_dependency(%q<mocha>, [">= 0", "<2.1"]) |
There was a problem hiding this comment.
why was it converted to non dev dependency?
There was a problem hiding this comment.
Weird, no idea. hah. Reverted
|
Why should frozen-string-literals be enabled in the CI? I also think it is better to have |
To catch any other places that would fail if frozen strings were enabled. And to also catch regressions
I think this just outputs warnings. In CI we would want actual failures. Looks like the failures are due to net-ssh not yet supporting frozen strings |
|
This is not a good solution to fail all tests as long as Net::SCP didn't fix its frozen string literals, because no CI test will work and we will not be able to see if a PR is OK or not. Frozen string literals will only be default in Ruby 4.0, so we have no rush and out CI will fail against ruby-head as soon as it is make default there. I propose not to enable frozen string literals, and to modify Rakefile to warn about them: Rake::TestTask.new do |t|
t.ruby_opts = ['-W:deprecated']
t.libs = ["lib", "test"]
endThis way, we can see where there is work to do, and we still can use the CI to check against all ruby versions. |
|
Any updates on this? |
|
It would be very helpful to be string-freeze safe.
Let's get ready :-) |
|
Tests are failing due to net-ssh not supporting frozen strings. I have addressed that here: net-ssh/net-ssh#958 |
|
@mfazekas Looks like ready to be merged |
No description provided.