Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building Gem - InvalidSpecificationException [...] are not files

Tags:

ruby

rubygems

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

like image 783
hrsetyono Avatar asked Jul 31 '13 02:07

hrsetyono


1 Answers

Just realized that I must commit my new code to Git first.

Silly me.

like image 153
hrsetyono Avatar answered Oct 20 '22 08:10

hrsetyono