修改一下uuid.rb文件的146行。
@state_file = File.expand_path(File.join('~', '.ruby-uuid'))
=>
@state_file = File.expand_path(File.join('D:\uuid_home', '.ruby-uuid'))
“~”需要自定义一下,否则出异常。
如:D:\uuid_home,需要在D:盘下建立一文件夹:uuid_home
修改一下uuid.rb文件的146行。
@state_file = File.expand_path(File.join('~', '.ruby-uuid'))
=>
@state_file = File.expand_path(File.join('D:\uuid_home', '.ruby-uuid'))
“~”需要自定义一下,否则出异常。
如:D:\uuid_home,需要在D:盘下建立一文件夹:uuid_home