Gem push error - (Gem :: Package :: FormatError) - There is no such file or directory @rb_sysopen

I tried to click the ruby ​​pearls for the first time on a terrible internet connection. When I first tried to push through, I was able to enter, and then he hung himself there, probably about 10 minutes with no signs of progress, so I decided to just kill him and press ctrl+c , which may have been a bad decision. From the session:

 $ gem push test_config-0.1.0.gem Enter your RubyGems.org credentials. Don't have an account yet? Create one at https://rubygems.org/sign_up Email: myemail@here.com Password: Signed in. ^CERROR: Interrupted 

Now, when I try to click it again (with an improved Internet connection), I get the following:

 ERROR: While executing gem ... (Gem::Package::FormatError) No such file or directory @ rb_sysopen - test_config-0.1.0.gem /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/package.rb:512:in `rescue in verify' /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/package.rb:490:in `verify' /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/package.rb:474:in `spec' /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/commands/push_command.rb:81:in `send_gem' /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/commands/push_command.rb:47:in `execute' /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/command.rb:305:in `invoke_with_build_args' /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/command_manager.rb:167:in `process_args' /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/command_manager.rb:137:in `run' /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/gem_runner.rb:54:in `run' /Users/Scott/.rvm/rubies/ruby-2.1.0/bin/gem:21:in `<main>' 

I tried to pounce on the version and pressed it, and I still get the same error.

Does anyone know how to solve this error? Is this due to the fact that I killed the first attempt to click?

+6
source share
1 answer

Nevermind, I'm an idiot. At first I did not build the gem, so of course there was no file "test_config-0.1.0.gem" to open. First I built a gem, and now it works:

 gem build test_config 
+14
source

Source: https://habr.com/ru/post/972217/


All Articles