I'm trying to build my own gem but got that error. I think the cause of this is because I change the file name of the gemspec
. At first this is my structure:
myapp/
my-app.gemspec
documentation.docx
// other files
Then I change the name and move files which become like:
myapp/
new-name.gemspec
doc/
documentation.docx
// other files
Note: I already changed all the code including the lib
to fit the new name
Then, when I run gem build new-name.gemspec
I got this error:
ERROR: While executing gem ... (Gem::InvalidSpecificationException)
["my-app.gemspec", "documentation.docx"] are not files
It still recognizing my old structure instead of the new one.
Any solution?
Thanks
Just realized that I must commit my new code to Git first.
Silly me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With