Open ruby232 opened 7 years ago
Fix add
require 'active_support'
require 'active_support/core_ext'
but i guess it not best solution
Guessing, you're on an older version of ruby?
This was introduced in https://github.com/igrigorik/decisiontree/commit/13aed0b2ae57e994e3366fedf15530d86c47bccd. /cc @cheerfulstoic
My version of ruby is 2.3.1
└─ $ ▶ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
Right, figures... Sum is 2.4+ http://blog.bigbinary.com/2016/11/02/ruby-2-4-introduces-enumerable-sum.html.
@cheerfulstoic I propose we revert the sum update until 2.3 is deprecated.
Yep, sorry about that! Just created #34 and #35
(Was editing in the UI and I couldn't see a way to do it in one PR)
I'm try run examples/simple.rb in master but throw this error:
Try gem version 0.5.0 and work find, maybe it introduced in pull request #32