Sha256: 2d0fa4dcb303cd6355dabf2b9e0aecbfd8fa9582a9b9de7fbbf1f0c0851cf53c
Contents?: true
Size: 445 Bytes
Versions: 55
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true require "dry/monads" module Gemsmith module Tools # Views a gem within default browser. class Viewer include Import[:executor] include Dry::Monads[:result] def call specification executor.capture3("open", specification.homepage_url).then do |_stdout, stderr, status| status.success? ? Success(specification) : Failure(stderr) end end end end end
Version data entries
55 entries across 55 versions & 1 rubygems