You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gem está instalada corretamente, mas ao tentar executar o script que está no readme retorna esse erro: .rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in require': cannot load such file -- correios-sro (LoadError)`
Segue código abaixo:
require 'correios-sro'
require 'rubygems'
# Define o código de rastreamento da encomenda
tracking_code = 'XXXXXXXXXXXX'
# Realiza a consulta de rastreamento utilizando a biblioteca correios-sro
result = Correios::SRO::Tracker.new(tracking_code).track
# Exibe o resultado da consulta
puts result.to_json
gem install correios-sro 04:41:45
Successfully installed correios-sro-3.0.0
Parsing documentation for correios-sro-3.0.0
Done installing documentation for correios-sro after 0 seconds
Depois de rodar "bundle install"
Using correios-sro 3.0.0
1 gem installed
The text was updated successfully, but these errors were encountered:
Gem está instalada corretamente, mas ao tentar executar o script que está no readme retorna esse erro:
.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in
require': cannot load such file -- correios-sro (LoadError)`Segue código abaixo:
The text was updated successfully, but these errors were encountered: