Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def perform_git_commit
end

# Returns an array e.g.: ['open', 'http://example.com']
# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable-next Metrics/CyclomaticComplexity
def browse_cmd(url)
require 'rbconfig'
browser = ENV.fetch('BROWSER') { RbConfig::CONFIG['host_os'].include?('darwin') && 'open' } ||
Expand All @@ -89,7 +89,6 @@ def browse_cmd(url)
abort('ERROR: no web browser detected') unless browser
Array(browser) << url
end
# rubocop:enable Metrics/CyclomaticComplexity

# which('ruby') #=> /usr/bin/ruby
def which(cmd)
Expand Down