github / scientist

:microscope: A Ruby library for carefully refactoring critical paths.
MIT License
7.44k stars 439 forks source link

Fix bug with marshalling experiments #259

Closed ridiculous closed 3 months ago

ridiculous commented 6 months ago

Allows this to work:

Marshal.load(Marshal.dump(Scientist::Default.new("foo")))
#=> ArgumentError: wrong number of arguments (given 1, expected 0)
#=> from /Users/ryan.buckley/.rvm/gems/ruby-2.7.8@envoy-web/gems/scientist-1.6.3/lib/scientist/experiment.rb:334:in `marshal_load'