ruby - exerb -> 我做错了什么?
问题描述
我正在尝试通过gem 文件编译简单puts "hello world"
的程序。exerb
mkexy test.rb => 这是工作的
exerb test.exy => 这是不工作
我做错了什么?
Traceback (most recent call last):
5: from C:/Ruby26-x64/bin/exerb.bat:196:in `<main>'
4: from C:/Ruby26-x64/bin/exerb.bat:67:in `main'
3: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/exerb/recipe.rb:85:in `create_archive'
2: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/exerb/recipe.rb:85:in `each'
1: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/exerb/recipe.rb:86:in `block in create_archive'
C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/exerb/recipe.rb:146:in `add_file_entry': test.exy: no such file -- C:/Ruby26-x64/lib/ruby/2.6.0/delegate.rb (RuntimeError)
解决方案
该文件test.exy
不是 Ruby 文件,因此会引发错误。仅 Ruby 生态系统支持 Gem。不知道你为什么要尝试完成,exy
但那是行不通的。
推荐阅读
- javascript - 向 html 输入元素添加默认值会冻结递增/递减功能
- php - 在 symfony 中增加会话生命周期
- discord.py - Discord.py move_to
- spring-webflux - WebFlux + RSocket + 弹簧
- java - 为 TemporaryFolder JUnit4 命名
- angular - 背景图像更改后,BackgroundSize 不起作用
- c# - 反序列化 .json 和 .xml 文件并验证它们的结构
- java - 调用 makeFancy("JAVA") 的结果是什么?
- bash - 拆分日期和时间与bash中它们之间的空间冲突
- java - Microsoft Sharepoint 在线列出文件夹中的所有文件