ruby-deepclone icon indicating copy to clipboard operation
ruby-deepclone copied to clipboard

Native Ruby deep clone implementation

Results 8 ruby-deepclone issues
Sort by recently updated
recently updated
newest added

Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version. Changelog Sourced from rake's changelog. === 12.3.3 ==== Bug fixes Use the application's name in error message if a task...

dependencies

Deep Clone seems to [heavily depend](https://github.com/gmodarelli/ruby-deepclone/blob/465162df3f89c816badec1a1a473e5b2da4c8ec8/ext/deep_clone/deep_clone.h) on internals that MRI itself does not expose. I think the best way to support other Ruby implementations such as TruffleRuby and JRuby would...

https://github.com/gmodarelli/ruby-deepclone/blob/465162df3f89c816badec1a1a473e5b2da4c8ec8/ext/deep_clone/deep_clone.c#L34 https://github.com/gmodarelli/ruby-deepclone/blob/465162df3f89c816badec1a1a473e5b2da4c8ec8/ext/deep_clone/deep_clone.c#L176 So the signature of the function `deep_clone` doesn't match the arity given to `rb_define_module_function`. It should be `VALUE deep_clone(VALUE self, VALUE arg)`. From https://github.com/oracle/truffleruby/issues/2073

Does not support Procs: ```txt [8] pry(Morrow::Console)> h = { proc: proc{} } => {:proc=>#} [9] pry(Morrow::Console)> DeepClone.clone(h) TypeError: allocator undefined for Proc from (pry):9:in `clone' ``` However, Proc#clone should...

For now `ruby_deep_clone` forces windows users to install RIDK on to be able to install this gem (to compile native extension). It's totally ok for developers but sometimes RIDK installation...

I am trying to deep clone a Struct element, but DeepClone does not seem to work as expected. ``` 2.3.1 :001 > require "deep_clone" => true 2.3.1 :002 > AStruct...

Hi! I need to make a depth copy of objects with BigDecimal values. When a try, I get this error. TypeError (can't copy BigDecimal) Thanks.