Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ruby] Improve the method stubs and type names for dependency #5217

Open
prabhu opened this issue Jan 9, 2025 · 0 comments
Open

[Ruby] Improve the method stubs and type names for dependency #5217

prabhu opened this issue Jan 9, 2025 · 0 comments

Comments

@prabhu
Copy link
Contributor

prabhu commented Jan 9, 2025

From my limited understanding, it appears like the pass is trying to guess the module names for a given gem based on the name casing. Below is a cli one liner that can be used instead to exactly know the module names offered by a given gem and its native extension. Replace sqlite3 with the gem name. Ignore any lines in the output that begins with Ignoring

ruby -e "initial = ObjectSpace.each_object(Module).map(&:name).compact;
require 'sqlite3';
afterwards = ObjectSpace.each_object(Module).map(&:name).compact;
added = afterwards - initial;
puts added.sort"
Delegator
SQLite3
SQLite3::AbortException
SQLite3::AuthorizationException
SQLite3::Backup
SQLite3::Blob
SQLite3::BusyException
SQLite3::CantOpenException
SQLite3::Constants
SQLite3::Constants::ColumnType
SQLite3::Constants::ErrorCode
SQLite3::Constants::Open
SQLite3::Constants::Optimize
SQLite3::Constants::Status
SQLite3::Constants::TextRep
SQLite3::ConstraintException
SQLite3::CorruptException
SQLite3::Database
SQLite3::Database::FunctionProxy
SQLite3::EmptyException
SQLite3::Exception
SQLite3::ForkSafety
SQLite3::ForkSafety::CoreExt
SQLite3::FormatException
SQLite3::FullException
SQLite3::HashResultSet
SQLite3::IOException
SQLite3::InternalException
SQLite3::InterruptException
SQLite3::LockedException
SQLite3::MemoryException
SQLite3::MismatchException
SQLite3::MisuseException
SQLite3::NotADatabaseException
SQLite3::NotFoundException
SQLite3::PermissionException
SQLite3::Pragmas
SQLite3::ProtocolException
SQLite3::RangeException
SQLite3::ReadOnlyException
SQLite3::ResultSet
SQLite3::SQLException
SQLite3::SchemaChangedException
SQLite3::Statement
SQLite3::TooBigException
SQLite3::UnsupportedException
SQLite3::Value
SimpleDelegator
WeakRef
WeakRef::RefError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant