postmodern / chruby

Changes the current Ruby
MIT License
2.85k stars 190 forks source link

chruby mruby failed #368

Closed JuanitoFatas closed 7 years ago

JuanitoFatas commented 7 years ago

I installed mruby via ruby-install mruby 1.2.0, then I try to switch to mruby 1.2.0 in a new Terminal session:

$ chruby mruby
trace:
    [0] -:1
-:1: undefined method 'defined?' for main (NoMethodError)

Any more information you need?

Thanks!

JuanitoFatas commented 7 years ago

However the changed is successful:

$ chruby mruby
trace:
    [0] -:1
-:1: undefined method 'defined?' for main (NoMethodError)

$ ruby -v
mruby 1.2.0 (2015-11-17)
^C

$ irb
mirb - Embeddable Interactive Ruby Shell

> exit
skull-squadron commented 7 years ago

Fixed in #328