Ruby Ruby Gem 打包发布问题(多文件模块调用)

Kirisames · March 07, 2021 · Last by Kirisames replied at March 08, 2021 · 324 hits

rake install 成功后,require 无法找到其他辅助模块数据

环境:
Kali 2004 (wsl2)
Ruby 3.0

报错图片:

gemspec:

参考文档

估计跟上一个帖子一样 https://ruby-china.org/topics/40996

lib/const.rb 加到 git 了吗?

Reply to Rei

加了,现在有个新问题,就是这个模块之间的调用不像本地使用那种直接函数名,而是要加 self 前缀是吗? 还有,如果我使用了其他辅助性模块的话,要怎么编写?

You need to Sign in before reply, if you don't have an account, please Sign up first.