Closed tobidelius closed 2 years ago
It has been fixed by #130, you can use master as a workaround:
# Gemfile
source "https://rubygems.org"
gem "sord", git: "https://github.com/AaronC81/sord", branch: "master"
gemspec
bundle
bundle exec sord --rbs types.rbs
# types.rbs
module MyGem
VERSION: String
end
Unfortunately this can't be placed in the my_gem.gemspec
file until the next release.
@matmorel ohh I saw that PR and also that it was merge so long ago that I just assumed it was released after that. Thx.
Sorry for the delay, everyone - just released Sord 4.0.0 to RubyGems, which includes this fix.
I'll close this issue since that should fix it without needing to use master
, but please ping me if you're still having problems, and I'll get it sorted!
Describe the bug When running sord with:
bundle exec sord --rbs types.rbs
theVERSION
constant gets untyped.To Reproduce
Expected behavior
Actual behavior
Additional information Made the steps above for you https://github.com/iamsandelius/sord-version-constant
Generated .rbs is in
types.rbs
I suspect it has to do with the module being defined twice but that's just swinging blind without diving deeper into it.