:core => "mruby-sprintf" # Use standard print/puts/p conf.gem :core => "mruby-print" # Use standard Math module conf.gem :core => "mruby-math" # Use standard Time class conf.gem :core => "mruby-time" # Use standard Struct class conf.gem :core => "mruby-struct" Let’s drop mruby-time Tuesday, May 14, 13
our massively awesome rand gem conf.gem :core => ‘mruby-rand’ end vim mrbgems/lrug.gembox # Use Random class # conf.gem :core => "mruby-random" vim mrbgems/default.gembox conf.gembox 'lrug' vim build_config.rb Tuesday, May 14, 13
a Fixnum” do rand.class == Fixnum end assert “rand is positive” do rand >= 0 end ruby minirake clean all test Fail: rand is a Fixnum (mrbgems: mruby-rand) Tuesday, May 14, 13