Sha256: 351ea277ede17dc2eb54db8d0cd52873173c065770c3a959663a4362409c9e01
Contents?: true
Size: 667 Bytes
Versions: 19
Compression:
Stored size: 667 Bytes
Contents
require "rbconfig" require "rugged" extend Rfix::Log extend Rfix::Cmd def git_version cmd("git --version").last.split(/\s+/, 3).last end def ruby_version RbConfig::CONFIG["ruby_version"] || "<unknown>" end def current_os RbConfig::CONFIG["host_os"] || "<unknown>" end helper("help", binding) summary "Display runtime dependencies and their version" run do |_opts, _args| say "Using RuboCop {{info:#{RuboCop::Version.version}}}" say "Using Rugged {{info:#{Rugged::VERSION}}}" say "Using Rfix {{info:#{Rfix::VERSION}}}" say "Using OS {{info:#{current_os}}}" say "Using Git {{info:#{git_version}}}" say "Using Ruby {{info:#{ruby_version}}}" end
Version data entries
19 entries across 19 versions & 1 rubygems