Open epeleh opened 2 years ago
method_source - might be helpful for writing tests that validate a solution code
You can read the solution file instead.
You can read the solution file instead.
Yep, you're right!
We can get a solution code by running:
File.read(RUBY_VERSION.to_i >= 3 ? 'lib/solution.rb' : 'solution.txt')
In our case, it should work even better than method(:solution).source
. I updated the Kata - it no longer needs the method_source
gem
Thanks! :+1:
You can read /workspace/solution.txt
in all languages and versions.
I consider that ideally, all the gems available in Ruby 2.5.0 should be available in Ruby 3.0.0 as well.
I strongly disagree. Your list includes transitive dependencies, which we never claimed they're supported.
Please complete the following information about the package:
Following are optional, but will help us consider adding:
Recently I added a new Kata and it works fine on Ruby 2.5.0 but fails validation on Ruby 3.0.0 due to the missing gems. I consider that ideally, all the gems available in Ruby 2.5.0 should be available in Ruby 3.0.0 as well.
Arel is part of Rails - it might be better to add whole Rails, not just Arel. At least, in my opinion, it is worth adding activesupport gem - it can sometimes be useful for solving tasks
~method_source - might be helpful for writing tests that validate a solution code~
Both of these gems are already available in Ruby 2.5.0.
:+1: reaction might help to get this request prioritized.