[ruby-cvs:69245] k0kubun:r62064 (trunk): dumper.rb: stop getting --destdir option value

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Sat Jan 27 10:59:08 JST 2018


k0kubun	2018-01-27 10:59:08 +0900 (Sat, 27 Jan 2018)

  New Revision: 62064

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62064

  Log:
    dumper.rb: stop getting --destdir option value
    
    via current directory. It's kind of a global state and fragile to
    implementation changes in other places, and how the `Dir.getwd` is set
    is not obvious from just reading around `RubyVM::Dumper#initialize` if
    it depends on the global state.
    
    tool/ruby_vm/controllers/application_controller.rb: explicitly pass
    destdir to RubyVM::Dumper.
    
    tool/ruby_vm/scripts/insns2vm.rb: explicitly pass destdir parsed from
    optparse.

  Modified files:
    trunk/tool/ruby_vm/controllers/application_controller.rb
    trunk/tool/ruby_vm/helpers/dumper.rb
    trunk/tool/ruby_vm/scripts/insns2vm.rb


More information about the ruby-cvs mailing list