Skip to content

Instantly share code, notes, and snippets.

@JoshCheek
Last active September 17, 2016 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshCheek/a74bf1baf7364ba9bedfb61e9da04992 to your computer and use it in GitHub Desktop.
Save JoshCheek/a74bf1baf7364ba9bedfb61e9da04992 to your computer and use it in GitHub Desktop.
SiB Deps
from to strength
SeeingIsBelieving SeeingIsBelieving::SeeingIsBelieving 35
SeeingIsBelieving SeeingIsBelieving::Options 1
SeeingIsBelieving SeeingIsBelieving::EvaluateByMovingFiles 1
SeeingIsBelieving SeeingIsBelieving::EventStream::Handlers::Debug 1
SeeingIsBelieving SeeingIsBelieving::Binary 2
SeeingIsBelieving SeeingIsBelieving::VERSION 1
SeeingIsBelieving SeeingIsBelieving::SeeingIsBelieving::VERSION 1
SeeingIsBelieving SeeingIsBelieving::SeeingIsBelievingError 2
SeeingIsBelieving SeeingIsBelieving::HashStruct 1
SeeingIsBelieving SeeingIsBelieving::NoDefault 2
SeeingIsBelieving::Options SeeingIsBelieving::Options::Options 1
SeeingIsBelieving::Options SeeingIsBelieving::Options::HashStruct 1
SeeingIsBelieving::Options SeeingIsBelieving::Options::EventStream::Handlers::UpdateResult 1
SeeingIsBelieving::Options SeeingIsBelieving::Options::Result 1
SeeingIsBelieving::Options SeeingIsBelieving::Options::Debugger::Null 1
SeeingIsBelieving::Options SeeingIsBelieving::Options::Float::INFINITY 1
SeeingIsBelieving::Options SeeingIsBelieving::Options::WrapExpressionsWithInspect 1
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::Binary 16
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::Config 2
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::Engine 3
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::SUCCESS_STATUS 5
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::SeeingIsBelieving::VERSION 1
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::NONDISPLAYABLE_ERROR_STATUS 3
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::JSON 1
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::DISPLAYABLE_ERROR_STATUS 1
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::RSpec 1
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::MustEvaluateFirst 1
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::Code::Syntax 2
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::SyntaxErrorMessage 1
SeeingIsBelieving::Binary SeeingIsBelieving::Binary::SeeingIsBelieving 1
SeeingIsBelieving::Binary::AlignChunk SeeingIsBelieving::Binary::AlignChunk::AlignChunk 1
SeeingIsBelieving::Binary::AlignChunk SeeingIsBelieving::Binary::AlignChunk::CommentableLines 1
SeeingIsBelieving::Binary::AlignFile SeeingIsBelieving::Binary::AlignFile::AlignFile 1
SeeingIsBelieving::Binary::AlignFile SeeingIsBelieving::Binary::AlignFile::CommentableLines 1
SeeingIsBelieving::Binary::AlignLine SeeingIsBelieving::Binary::AlignLine::AlignLine 1
SeeingIsBelieving::Binary::AnnotateEndOfFile SeeingIsBelieving::Binary::AnnotateEndOfFile::AnnotateEndOfFile 1
SeeingIsBelieving::Binary::AnnotateEndOfFile SeeingIsBelieving::Binary::AnnotateEndOfFile::Code 1
SeeingIsBelieving::Binary::AnnotateEndOfFile SeeingIsBelieving::Binary::AnnotateEndOfFile::FormatComment 5
SeeingIsBelieving::Binary::AnnotateEveryLine SeeingIsBelieving::Binary::AnnotateEveryLine::AnnotateEveryLine 1
SeeingIsBelieving::Binary::AnnotateEveryLine SeeingIsBelieving::Binary::AnnotateEveryLine::CommentLines 1
SeeingIsBelieving::Binary::AnnotateEveryLine SeeingIsBelieving::Binary::AnnotateEveryLine::FormatComment 2
SeeingIsBelieving::Binary::AnnotateEveryLine SeeingIsBelieving::Binary::AnnotateEveryLine::AnnotateEndOfFile 1
SeeingIsBelieving::Binary::AnnotateMarkedLines SeeingIsBelieving::Binary::AnnotateMarkedLines::AnnotateMarkedLines 1
SeeingIsBelieving::Binary::AnnotateMarkedLines SeeingIsBelieving::Binary::AnnotateMarkedLines::Code 1
SeeingIsBelieving::Binary::AnnotateMarkedLines SeeingIsBelieving::Binary::AnnotateMarkedLines::WrapExpressions 1
SeeingIsBelieving::Binary::AnnotateMarkedLines SeeingIsBelieving::Binary::AnnotateMarkedLines::RewriteComments 1
SeeingIsBelieving::Binary::AnnotateMarkedLines SeeingIsBelieving::Binary::AnnotateMarkedLines::FormatComment 5
SeeingIsBelieving::Binary::AnnotateMarkedLines SeeingIsBelieving::Binary::AnnotateMarkedLines::AnnotateEndOfFile 1
SeeingIsBelieving::Binary::CommentLines SeeingIsBelieving::Binary::CommentLines::CommentLines 1
SeeingIsBelieving::Binary::CommentLines SeeingIsBelieving::Binary::CommentLines::CommentableLines 1
SeeingIsBelieving::Binary::CommentableLines SeeingIsBelieving::Binary::CommentableLines::CommentableLines 1
SeeingIsBelieving::Binary::CommentableLines SeeingIsBelieving::Binary::CommentableLines::Code 1
SeeingIsBelieving::Binary::CommentableLines SeeingIsBelieving::Binary::CommentableLines::::AST::Node 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::Config 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::HashStruct 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::Binary::ErrorMessage 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::AnnotateEveryLine 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::Debugger::Null 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::Markers 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::Binary 3
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::SeeingIsBelieving::Options 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::AnnotatorOptions 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::ErrorMessage 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::DeprecatedArgMessage 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::AnnotateMarkedLines 4
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::AlignFile 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::AlignChunk 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::AlignLine 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::EventStream::Handlers::StreamJsonEvents 1
SeeingIsBelieving::Binary::Config SeeingIsBelieving::Binary::Config::Debugger 1
SeeingIsBelieving::Binary::Markers SeeingIsBelieving::Binary::Markers::Markers 1
SeeingIsBelieving::Binary::Markers SeeingIsBelieving::Binary::Markers::HashStruct 1
SeeingIsBelieving::Binary::Markers SeeingIsBelieving::Binary::Markers::Marker 4
SeeingIsBelieving::Binary::Marker SeeingIsBelieving::Binary::Marker::Marker 2
SeeingIsBelieving::Binary::Marker SeeingIsBelieving::Binary::Marker::HashStruct 1
SeeingIsBelieving::Binary::AnnotatorOptions SeeingIsBelieving::Binary::AnnotatorOptions::AnnotatorOptions 1
SeeingIsBelieving::Binary::AnnotatorOptions SeeingIsBelieving::Binary::AnnotatorOptions::HashStruct 1
SeeingIsBelieving::Binary::AnnotatorOptions SeeingIsBelieving::Binary::AnnotatorOptions::AlignChunk 1
SeeingIsBelieving::Binary::AnnotatorOptions SeeingIsBelieving::Binary::AnnotatorOptions::Markers 1
SeeingIsBelieving::Binary::AnnotatorOptions SeeingIsBelieving::Binary::AnnotatorOptions::Float::INFINITY 2
SeeingIsBelieving::Binary::ErrorMessage SeeingIsBelieving::Binary::ErrorMessage::ErrorMessage 1
SeeingIsBelieving::Binary::ErrorMessage SeeingIsBelieving::Binary::ErrorMessage::HashStruct 1
SeeingIsBelieving::Binary::SyntaxErrorMessage SeeingIsBelieving::Binary::SyntaxErrorMessage::SyntaxErrorMessage 1
SeeingIsBelieving::Binary::SyntaxErrorMessage SeeingIsBelieving::Binary::SyntaxErrorMessage::ErrorMessage 1
SeeingIsBelieving::Binary::MustEvaluateFirst SeeingIsBelieving::Binary::MustEvaluateFirst::MustEvaluateFirst 1
SeeingIsBelieving::Binary::MustEvaluateFirst SeeingIsBelieving::Binary::MustEvaluateFirst::SeeingIsBelievingError 1
SeeingIsBelieving::Binary::Engine SeeingIsBelieving::Binary::Engine::Engine 1
SeeingIsBelieving::Binary::Engine SeeingIsBelieving::Binary::Engine::SyntaxErrorMessage 1
SeeingIsBelieving::Binary::Engine SeeingIsBelieving::Binary::Engine::SeeingIsBelieving 1
SeeingIsBelieving::Binary::Engine SeeingIsBelieving::Binary::Engine::Timeout::Error 1
SeeingIsBelieving::Binary::Engine SeeingIsBelieving::Binary::Engine::MustEvaluateFirst 5
SeeingIsBelieving::Binary::Engine SeeingIsBelieving::Binary::Engine::Code 1
SeeingIsBelieving::Binary::Engine SeeingIsBelieving::Binary::Engine::SeeingIsBelieving::EventStream::Handlers::RecordExitEvents 1
SeeingIsBelieving::Binary::Engine SeeingIsBelieving::Binary::Engine::RemoveAnnotations 1
SeeingIsBelieving::Binary::FormatComment SeeingIsBelieving::Binary::FormatComment::FormatComment 1
SeeingIsBelieving::Binary::FormatComment SeeingIsBelieving::Binary::FormatComment::Float::INFINITY 2
SeeingIsBelieving::Binary::RemoveAnnotations SeeingIsBelieving::Binary::RemoveAnnotations::RemoveAnnotations 1
SeeingIsBelieving::Binary::RemoveAnnotations SeeingIsBelieving::Binary::RemoveAnnotations::Code 1
SeeingIsBelieving::Binary::RewriteComments SeeingIsBelieving::Binary::RewriteComments::RewriteComments 1
SeeingIsBelieving::Binary::RewriteComments SeeingIsBelieving::Binary::RewriteComments::HashStruct 1
SeeingIsBelieving::Binary::RewriteComments SeeingIsBelieving::Binary::RewriteComments::Code 1
SeeingIsBelieving::Binary::RewriteComments SeeingIsBelieving::Binary::RewriteComments::Options 1
SeeingIsBelieving::Binary::RewriteComments SeeingIsBelieving::Binary::RewriteComments::CommentableLines 1
SeeingIsBelieving::Binary::RewriteComments SeeingIsBelieving::Binary::RewriteComments::Code::InlineComment 1
SeeingIsBelieving::EventStream::Producer 1
SeeingIsBelieving::VERSION 1
SeeingIsBelieving::Safe::Stream 3
RSpec 7
SeeingIsBelieving::Binary::AlignChunk 2
SeeingIsBelieving::Binary::CommentLines 1
SeeingIsBelieving::Binary::Config 1
RSpec::Matchers 1
SeeingIsBelieving::Binary::Markers 2
Float::INFINITY 5
SeeingIsBelieving::Binary 2
SeeingIsBelieving::Binary::AlignFile 1
SeeingIsBelieving::Binary::AlignLine 1
SeeingIsBelieving::Binary::AnnotateEveryLine 1
SeeingIsBelieving::Binary::AnnotateMarkedLines 2
SeeingIsBelieving::Options 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult 1
SeeingIsBelieving::EventStream::Handlers::StreamJsonEvents 1
SeeingIsBelieving::Binary::FormatComment 1
SeeingIsBelieving::Binary::Marker 1
SeeingIsBelieving::Binary::RemoveAnnotations 1
SeeingIsBelieving::Binary::RewriteComments 1
SeeingIsBelieving::Code SeeingIsBelieving::Code::Code 1
SeeingIsBelieving::Code SeeingIsBelieving::Code::HashStruct 2
SeeingIsBelieving::Code SeeingIsBelieving::Code::Parser::Source::Buffer 1
SeeingIsBelieving::Code SeeingIsBelieving::Code::Parser::Source::Rewriter 1
SeeingIsBelieving::Code SeeingIsBelieving::Code::Parser::Builders::Default 1
SeeingIsBelieving::Code SeeingIsBelieving::Code::Parser::CurrentRuby 2
SeeingIsBelieving::Code SeeingIsBelieving::Code::Syntax 2
SeeingIsBelieving::Code SeeingIsBelieving::Code::Parser::AST::Node 2
SeeingIsBelieving::Code SeeingIsBelieving::Code::Parser::Source::Map::Heredoc 1
SeeingIsBelieving::Code SeeingIsBelieving::Code::InlineComment 1
SeeingIsBelieving::Code SeeingIsBelieving::Code::Parser::Source::Map::Collection 1
SeeingIsBelieving::Debugger SeeingIsBelieving::Debugger::Debugger 1
SeeingIsBelieving::Debugger SeeingIsBelieving::Debugger::CONTEXT_COLOUR 1
SeeingIsBelieving::Debugger SeeingIsBelieving::Debugger::RESET_COLOUR 1
SeeingIsBelieving::TempFileAlreadyExists SeeingIsBelieving::TempFileAlreadyExists::TempFileAlreadyExists 1
SeeingIsBelieving::TempFileAlreadyExists SeeingIsBelieving::TempFileAlreadyExists::SeeingIsBelievingError 1
SeeingIsBelieving::EvaluateByMovingFiles SeeingIsBelieving::EvaluateByMovingFiles::EvaluateByMovingFiles 1
SeeingIsBelieving::EvaluateByMovingFiles SeeingIsBelieving::EvaluateByMovingFiles::Float::INFINITY 1
SeeingIsBelieving::EvaluateByMovingFiles SeeingIsBelieving::EvaluateByMovingFiles::HardCoreEnsure 1
SeeingIsBelieving::EvaluateByMovingFiles SeeingIsBelieving::EvaluateByMovingFiles::TempFileAlreadyExists 1
SeeingIsBelieving::EvaluateByMovingFiles SeeingIsBelieving::EvaluateByMovingFiles::EventStream::Consumer 1
SeeingIsBelieving::EvaluateByMovingFiles SeeingIsBelieving::EvaluateByMovingFiles::Timeout 1
SeeingIsBelieving::EvaluateByMovingFiles SeeingIsBelieving::EvaluateByMovingFiles::Timeout::Error 1
SeeingIsBelieving::EvaluateByMovingFiles SeeingIsBelieving::EvaluateByMovingFiles::Errno::ESRCH 1
SeeingIsBelieving::EvaluateByMovingFiles SeeingIsBelieving::EvaluateByMovingFiles::Errno::ECHILD 1
SeeingIsBelieving::EventStream SeeingIsBelieving::EventStream::EventStream 7
SeeingIsBelieving::EventStream SeeingIsBelieving::EventStream::HashStruct 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Consumer 2
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Encoding::UTF_8 2
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::FinishCriteria 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::Stdout 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::StdoutClosed 2
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::Stderr 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::StderrClosed 2
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::EventStreamClosed 2
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::Exitstatus 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::Timeout 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::NoMoreEvents 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::Finished 2
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Event 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::SeeingIsBelieving::UnknownEvent 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::LineResult 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::ResultsTruncated 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Float::INFINITY 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::MaxLineCaptures 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::NumLines 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::SiBVersion 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::RubyVersion 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::Filename 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::Events::Exec 1
SeeingIsBelieving::EventStream::Consumer SeeingIsBelieving::EventStream::Consumer::UnknownEvent 1
SeeingIsBelieving::EventStream::Consumer::FinishCriteria SeeingIsBelieving::EventStream::Consumer::FinishCriteria::FinishCriteria 1
SeeingIsBelieving::EventStream::Consumer::FinishCriteria SeeingIsBelieving::EventStream::Consumer::FinishCriteria::EventThreadFinished 2
SeeingIsBelieving::EventStream::Consumer::FinishCriteria SeeingIsBelieving::EventStream::Consumer::FinishCriteria::StdoutThreadFinished 2
SeeingIsBelieving::EventStream::Consumer::FinishCriteria SeeingIsBelieving::EventStream::Consumer::FinishCriteria::StderrThreadFinished 2
SeeingIsBelieving::EventStream::Consumer::FinishCriteria SeeingIsBelieving::EventStream::Consumer::FinishCriteria::ProcessExited 3
SeeingIsBelieving::EventStream::Events SeeingIsBelieving::EventStream::Events::Events 1
SeeingIsBelieving::EventStream::Events::Stdout SeeingIsBelieving::EventStream::Events::Stdout::Stdout 1
SeeingIsBelieving::EventStream::Events::Stdout SeeingIsBelieving::EventStream::Events::Stdout::Event 1
SeeingIsBelieving::EventStream::Events::Stderr SeeingIsBelieving::EventStream::Events::Stderr::Stderr 1
SeeingIsBelieving::EventStream::Events::Stderr SeeingIsBelieving::EventStream::Events::Stderr::Event 1
SeeingIsBelieving::EventStream::Events::MaxLineCaptures SeeingIsBelieving::EventStream::Events::MaxLineCaptures::MaxLineCaptures 1
SeeingIsBelieving::EventStream::Events::MaxLineCaptures SeeingIsBelieving::EventStream::Events::MaxLineCaptures::Event 1
SeeingIsBelieving::EventStream::Events::MaxLineCaptures SeeingIsBelieving::EventStream::Events::MaxLineCaptures::Float::INFINITY 1
SeeingIsBelieving::EventStream::Events::Filename SeeingIsBelieving::EventStream::Events::Filename::Filename 1
SeeingIsBelieving::EventStream::Events::Filename SeeingIsBelieving::EventStream::Events::Filename::Event 1
SeeingIsBelieving::EventStream::Events::NumLines SeeingIsBelieving::EventStream::Events::NumLines::NumLines 1
SeeingIsBelieving::EventStream::Events::NumLines SeeingIsBelieving::EventStream::Events::NumLines::Event 1
SeeingIsBelieving::EventStream::Events::SiBVersion SeeingIsBelieving::EventStream::Events::SiBVersion::SiBVersion 1
SeeingIsBelieving::EventStream::Events::SiBVersion SeeingIsBelieving::EventStream::Events::SiBVersion::Event 1
SeeingIsBelieving::EventStream::Events::RubyVersion SeeingIsBelieving::EventStream::Events::RubyVersion::RubyVersion 1
SeeingIsBelieving::EventStream::Events::RubyVersion SeeingIsBelieving::EventStream::Events::RubyVersion::Event 1
SeeingIsBelieving::EventStream::Events::Exitstatus SeeingIsBelieving::EventStream::Events::Exitstatus::Exitstatus 1
SeeingIsBelieving::EventStream::Events::Exitstatus SeeingIsBelieving::EventStream::Events::Exitstatus::Event 1
SeeingIsBelieving::EventStream::Events::Timeout SeeingIsBelieving::EventStream::Events::Timeout::Timeout 1
SeeingIsBelieving::EventStream::Events::Timeout SeeingIsBelieving::EventStream::Events::Timeout::Event 1
SeeingIsBelieving::EventStream::Events::Exec SeeingIsBelieving::EventStream::Events::Exec::Exec 1
SeeingIsBelieving::EventStream::Events::Exec SeeingIsBelieving::EventStream::Events::Exec::Event 1
SeeingIsBelieving::EventStream::Events::LineResult SeeingIsBelieving::EventStream::Events::LineResult::LineResult 1
SeeingIsBelieving::EventStream::Events::LineResult SeeingIsBelieving::EventStream::Events::LineResult::Event 1
SeeingIsBelieving::EventStream::Events::ResultsTruncated SeeingIsBelieving::EventStream::Events::ResultsTruncated::ResultsTruncated 1
SeeingIsBelieving::EventStream::Events::ResultsTruncated SeeingIsBelieving::EventStream::Events::ResultsTruncated::Event 1
SeeingIsBelieving::EventStream::Events::Exception SeeingIsBelieving::EventStream::Events::Exception::Event 1
SeeingIsBelieving::EventStream::Events::StdoutClosed SeeingIsBelieving::EventStream::Events::StdoutClosed::StdoutClosed 1
SeeingIsBelieving::EventStream::Events::StdoutClosed SeeingIsBelieving::EventStream::Events::StdoutClosed::Event 1
SeeingIsBelieving::EventStream::Events::StderrClosed SeeingIsBelieving::EventStream::Events::StderrClosed::StderrClosed 1
SeeingIsBelieving::EventStream::Events::StderrClosed SeeingIsBelieving::EventStream::Events::StderrClosed::Event 1
SeeingIsBelieving::EventStream::Events::EventStreamClosed SeeingIsBelieving::EventStream::Events::EventStreamClosed::EventStreamClosed 1
SeeingIsBelieving::EventStream::Events::EventStreamClosed SeeingIsBelieving::EventStream::Events::EventStreamClosed::Event 1
SeeingIsBelieving::EventStream::Events::Finished SeeingIsBelieving::EventStream::Events::Finished::Finished 1
SeeingIsBelieving::EventStream::Events::Finished SeeingIsBelieving::EventStream::Events::Finished::Event 1
SeeingIsBelieving::EventStream::Handlers SeeingIsBelieving::EventStream::Handlers::Handlers 4
SeeingIsBelieving::EventStream::Handlers::Debug SeeingIsBelieving::EventStream::Handlers::Debug::Debug 1
SeeingIsBelieving::EventStream::Handlers::Debug SeeingIsBelieving::EventStream::Handlers::Debug::Events::Finished 1
SeeingIsBelieving::EventStream::Handlers::RecordExitEvents SeeingIsBelieving::EventStream::Handlers::RecordExitEvents::RecordExitEvents 1
SeeingIsBelieving::EventStream::Handlers::RecordExitEvents SeeingIsBelieving::EventStream::Handlers::RecordExitEvents::Events::Exitstatus 1
SeeingIsBelieving::EventStream::Handlers::RecordExitEvents SeeingIsBelieving::EventStream::Handlers::RecordExitEvents::Events::Timeout 1
SeeingIsBelieving::EventStream::Handlers::StreamJsonEvents SeeingIsBelieving::EventStream::Handlers::StreamJsonEvents::StreamJsonEvents 1
SeeingIsBelieving::EventStream::Handlers::StreamJsonEvents SeeingIsBelieving::EventStream::Handlers::StreamJsonEvents::JSON 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::UpdateResult 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::EventStream::Events 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::LineResult 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::ResultsTruncated 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::Stdout 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::Stderr 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::MaxLineCaptures 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::Exitstatus 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::NumLines 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::SiBVersion 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::RubyVersion 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::Filename 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::Timeout 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::Exec 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::Finished 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::StdoutClosed 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::StderrClosed 1
SeeingIsBelieving::EventStream::Handlers::UpdateResult SeeingIsBelieving::EventStream::Handlers::UpdateResult::EventStreamClosed 1
SeeingIsBelieving::EventStream::Producer SeeingIsBelieving::EventStream::Producer::Producer 1
SeeingIsBelieving::EventStream::Producer SeeingIsBelieving::EventStream::Producer::Safe::Stream 1
SeeingIsBelieving::EventStream::Producer SeeingIsBelieving::EventStream::Producer::Float::INFINITY 1
SeeingIsBelieving::EventStream::Producer SeeingIsBelieving::EventStream::Producer::Errno::EPIPE 1
SeeingIsBelieving::EventStream::Producer SeeingIsBelieving::EventStream::Producer::NullQueue 1
SeeingIsBelieving::EventStream::Producer SeeingIsBelieving::EventStream::Producer::StackErrors 2
SeeingIsBelieving::EventStream::Producer SeeingIsBelieving::EventStream::Producer::Java::JavaLang::StackOverflowError 1
SeeingIsBelieving::EventStream::Producer::NullQueue SeeingIsBelieving::EventStream::Producer::NullQueue::NullQueue 1
SeeingIsBelieving::HardCoreEnsure SeeingIsBelieving::HardCoreEnsure::HardCoreEnsure 1
SeeingIsBelieving::HashStruct SeeingIsBelieving::HashStruct::HashStruct 2
SeeingIsBelieving::HashStruct SeeingIsBelieving::HashStruct::Attr 2
SeeingIsBelieving::HashStruct::Attr SeeingIsBelieving::HashStruct::Attr::Attr 1
SeeingIsBelieving::Result SeeingIsBelieving::Result::Result 1
SeeingIsBelieving::Result SeeingIsBelieving::Result::RecordedException 1
SeeingIsBelieving::Result SeeingIsBelieving::Result::Float::INFINITY 1
SeeingIsBelieving::Safe SeeingIsBelieving::Safe::Safe 1
SeeingIsBelieving::WrapExpressions SeeingIsBelieving::WrapExpressions::WrapExpressions 1
SeeingIsBelieving::WrapExpressions SeeingIsBelieving::WrapExpressions::Code 1
SeeingIsBelieving::WrapExpressions SeeingIsBelieving::WrapExpressions::::AST::Node 3
SeeingIsBelieving::WrapExpressions SeeingIsBelieving::WrapExpressions::Parser::Source::Map::Ternary 1
SeeingIsBelieving::WrapExpressionsWithInspect SeeingIsBelieving::WrapExpressionsWithInspect::WrapExpressionsWithInspect 1
SeeingIsBelieving::WrapExpressionsWithInspect SeeingIsBelieving::WrapExpressionsWithInspect::WrapExpressions 1
git ls-files | ag '\.rb$' | ag 'lib|bin' | xargs cat | ruby ruby_to_deps_csv.rb
at_exit { $! && $stderr.puts("\e[31m#{$_}\e[0m") }
CORE = [:Object, :Module, :Class, :BasicObject, :Kernel, :NilClass, :NIL, :Data, :TrueClass, :TRUE, :FalseClass, :FALSE, :Encoding, :Comparable, :Enumerable, :String, :Symbol, :Exception, :SystemExit, :SignalException, :Interrupt, :StandardError, :TypeError, :ArgumentError, :IndexError, :KeyError, :RangeError, :ScriptError, :SyntaxError, :LoadError, :NotImplementedError, :NameError, :NoMethodError, :RuntimeError, :SecurityError, :NoMemoryError, :EncodingError, :SystemCallError, :Errno, :UncaughtThrowError, :ZeroDivisionError, :FloatDomainError, :Numeric, :Integer, :Fixnum, :Float, :Bignum, :Array, :Hash, :ENV, :Struct, :RegexpError, :Regexp, :MatchData, :Marshal, :Range, :IOError, :EOFError, :IO, :STDIN, :STDOUT, :STDERR, :ARGF, :FileTest, :File, :Dir, :Time, :Random, :Signal, :Proc, :LocalJumpError, :SystemStackError, :Method, :UnboundMethod, :Binding, :Math, :GC, :ObjectSpace, :Enumerator, :StopIteration, :RubyVM, :Thread, :TOPLEVEL_BINDING, :ThreadGroup, :Mutex, :ThreadError, :Process, :Fiber, :FiberError, :Rational, :Complex, :RUBY_VERSION, :RUBY_RELEASE_DATE, :RUBY_PLATFORM, :RUBY_PATCHLEVEL, :RUBY_REVISION, :RUBY_DESCRIPTION, :RUBY_COPYRIGHT, :RUBY_ENGINE, :TracePoint, :ARGV, :Gem, :RbConfig, :CROSS_COMPILING, :ConditionVariable, :Queue, :SizedQueue, :MonitorMixin, :Monitor, :RUBYGEMS_ACTIVATION_MONITOR]
@counts = []
@path = []
def count_deps(ast)
return unless ast.kind_of? AST::Node
if ast.type == :const
@counts << [@path.dup, ast]
elsif ast.type == :class || ast.type == :module
@path.push ast.children[0]
ast.children.each { |c| count_deps c }
@path.pop
else
ast.children.each { |c| count_deps c }
end
end
def to_rows(counts)
normalize(counts).flat_map { |lhs, rhs_counts|
rhs_counts.map { |rhs, count| [lhs, rhs, count] }
}
end
def normalize(counts)
counts.map { |lhs, rhs|
[ normalize_name(nil, lhs),
normalize_name(lhs, rhs),
]
}.group_by(&:first)
.map { |lhs, rhs|
[ lhs.join("::"),
rhs.map(&:last)
.group_by(&:itself)
.reject { |k, _| CORE.include? k.last }
.map { |k, ks| [k.join("::"), ks.length] }
]
}
end
def normalize_name(source, name)
[flatten(source), flatten(name)].flatten
end
def flatten(name)
if name.kind_of? AST::Node
# if name.type == :const
namespace = name.children[0]
constant = name.children[1]
[*flatten(namespace), constant]
elsif name.kind_of? Array
name.flat_map { |c| flatten c }
elsif name == nil
[]
else
raise name.inspect
end
end
require 'parser/ruby23'
require "pp"
count_deps Parser::Ruby23.parse($stdin.read)
puts "from,to,strength"
to_rows(@counts).each do |row|
puts row.join(",")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment