我在终端上,我不知道如何检查我的系统上安装的 sinatra 版本。
这个答案会因以下因素而有很大差异:
简短的答案是:
gem list --local sinatra
一旦需要 gem,您可以使用
Sinatra::VERSION