gem which cannot find gem despite it being installed

后端 未结 3 1253
陌清茗
陌清茗 2021-01-12 10:20

I\'ve built my first gem but I don\'t seem to be able to get it to install correctly. I can issue the command

sudo gem install ceilingfish-toto
3条回答
  •  被撕碎了的回忆
    2021-01-12 10:43

    OK, so the problem here appears to be that there was a problem with my gemspec file. From what I can tell there absolutely has to be a file with the name lib/gem-name.rb so in this case I needed lib/ceilingfish-toto.rb.

    This doesn't seem to be true for some other gems to operate correctly. For example mime-types or rest-client, even though they do not show up with gem which, they do actually work.

    I'm not sure this is entirely correct yet, I'm sure there should be a way to get a gem with a hyphen in the name to behave correctly. If I find out I'll post back and let y'all know.

提交回复
热议问题